void WaypointReached(uint32 uiPointId) { switch(uiPointId) { case 0: DoScriptText(SAY_KAN_START, m_creature); DoSpawnGalak(); break; case 1: if (Player* pPlayer = GetPlayerForEscort()) pPlayer->GroupEventHappens(QUEST_PROTECT_KANATI, m_creature); break; } }
void WaypointReached(uint32 waypointId) override { switch (waypointId) { case 0: Talk(SAY_KAN_START); DoSpawnGalak(); break; case 1: if (Player* player = GetPlayerForEscort()) player->GroupEventHappens(QUEST_PROTECT_KANATI, me); break; } }