Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.78 KB | None | 0 0
  1. /*###########################################
  2.    ### QUEST The Exorcism of Colonel Jules ###
  3.    ###########################################*/
  4. enum eExorcism
  5. {
  6.     QUEST_THE_EXORCISM_OF_COLONEL_JULES   = 10935,
  7.     NPC_ASSISTANT_KLATU                   = 22430,
  8.     NPC_ANCHORITE_BARADA                  = 22431,
  9.     NPC_COLONEL_JULES                     = 22432,
  10.     NPC_DARKNESS_RELEASED                 = 22507,
  11.     SPELL_BARADA_COMMANDS                 = 39277,
  12.     SPELL_BARADA_FALTERS                  = 39278,
  13.     SPELL_JOLES_GO_PRONE                  = 39283,
  14.     SPELL_JOLES_GO_THREATENS              = 39284,
  15.     SPELL_JOLES_GO_UPRIGHT                = 39294,
  16.     SPELL_JOLES_VOMIT_AURA                = 39295,
  17.     SPELL_JOLES_VOMIT                     = 39296,
  18.     ITEM_RITUAL_PRAYER_BEADS              = 31828,
  19.     SAY_START                             =
  20.     SAY_START_WALKING                     =
  21.     SAY_COLONEL_START                     =
  22.     SAY_START_COMMANDS                    =
  23.     SAY_
  24. #define GOSSIP_ITEM_1 "I am ready, Anchorite. Let us begin the exorcism"
  25.  
  26. };
  27. class npc_anchorite_barada : public CreatureScript
  28. {
  29. public:
  30.     npc_anchorite_barada() : CreatureScript("npc_anchorite_barada") { }
  31.     uint32 Timer;
  32.     bool done;
  33.  
  34. void Reset()
  35. {
  36.     timer = 500;//in milisecs
  37.     done = false;
  38. }
  39.  
  40. void UpdateAI(const uint32 diff)
  41. {
  42. if(!done)
  43. {
  44.     if(timer<diff)
  45.     {
  46.         //do things
  47.         done=true;// done,  do not run timers any more
  48.     }else timer-=diff;
  49.    
  50. }
  51. }
  52.  bool OnGossipSelect(Player* pPlayer, Creature* pCreature, Quest const* quest)
  53.     {
  54.         pPlayer->PlayerTalkClass->ClearMenus();
  55.         if (uiAction == GOSSIP_ITEM_1)
  56.         {
  57.             pPlayer->CLOSE_GOSSIP_MENU();
  58.             DoScriptText(SAY_START, me);
  59.            
  60.             mob->GetMotionMaster()->MovePoint(0, -710.922546, 2747.581787, 101.590622);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement