void OnReachWP(uint32 iWaypointId, bool bForwards)
 {
     if(iWaypointId == 19)
     {
         _unit->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Tell your master that this is where Van Cleef is hiding. I'm outta here!");
         _unit->Despawn(5000,1000);
         sEAS.DeleteWaypoints(_unit);
         if(_unit->m_escorter == NULL)
             return;
         Player* plr = _unit->m_escorter;
         _unit->m_escorter = NULL;
         plr->GetQuestLogForEntry(155)->SendQuestComplete();
     }
 }
Example #2
0
 void OnReachWP(uint32 iWaypointId, bool bForwards)
 {
     if(iWaypointId == 13)
     {
         _unit->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Thanks, these orcs wanted me to weld in the boiler");
         _unit->Despawn(5000,1000);
         EAS::DeleteWaypoints(_unit);
         if(_unit->m_escorter == NULL)
             return;
         Player* plr = _unit->m_escorter;
         _unit->m_escorter = NULL;
         plr->GetQuestLogForEntry(1440)->SendQuestComplete();
     }
 }