Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- const uint32 TITLEID1 = 1;
- const uint32 TITLEID2 = 15;
- class VIP_NPC : public CreatureScript
- {
- public:
- VIP_NPC() : CreatureScript("VIP_NPC") {}
- bool OnGossipHello(Player* player, Creature* creature)
- {
- if(player->HasTitle(sCharTitlesStore.LookupEntry(TITLEID1) || player->HasTitle(sCharTitlesStore.LookupEntry(TITLEID2)))
- {
- player->GetSession()->SendListInventory(creature->GetGUID());
- return true;
- }
- else
- {
- creature->MonsterWhisper("You do not have enough kills", player->GetGUID());
- return false;
- }
- }
- };
- void AddSC_VIP_NPC()
- {
- new VIP_NPC();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement