Advertisement
Rochet2

deadmega hastitle

Aug 18th, 2012
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. const uint32 TITLEID1 = 1;
  4. const uint32 TITLEID2 = 15;
  5.  
  6. class VIP_NPC : public CreatureScript
  7. {
  8. public:
  9.     VIP_NPC() : CreatureScript("VIP_NPC") {}
  10.  
  11.     bool OnGossipHello(Player* player, Creature* creature)
  12.     {
  13.         if(player->HasTitle(sCharTitlesStore.LookupEntry(TITLEID1) || player->HasTitle(sCharTitlesStore.LookupEntry(TITLEID2)))
  14.         {
  15.             player->GetSession()->SendListInventory(creature->GetGUID());
  16.             return true;
  17.         }
  18.         else
  19.         {
  20.             creature->MonsterWhisper("You do not have enough kills", player->GetGUID());
  21.             return false;
  22.         }
  23.     }
  24. };
  25.  
  26. void AddSC_VIP_NPC()
  27. {
  28.     new VIP_NPC();
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement