Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1.     bool OnQuestAccept(Player* pPlayer, Creature* pCreature, Quest const* quest)
  2.     {
  3.         if (quest->GetQuestId() == QUEST_AN_END_AND_A_BEGINNING)
  4.         {
  5.             CAST_AI(npc_legion_commander_yorik::npc_legion_commander_yorikAI, pCreature->AI())->PlayerGUID = pPlayer->GetGUID();
  6.             CAST_AI(npc_thelzan_the_duskbringer::npc_thelzan_the_duskbringerAI, pCreature->AI())->PlayerGUID = pPlayer->GetGUID();
  7.             pCreature->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_NONE);
  8.             AnPhase = 0;
  9.             StartEvent = true;
  10.         }
  11.         return true;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement