Example #1
0
 void WaypointReached(uint32 uiPointId)
 {
     switch(uiPointId)
     {
         case 15:
             DoScriptText(SAY_WYVERN, m_creature);
             DoSpawnWyvern();
             break;
         case 26:
             DoScriptText(SAY_COMPLETE, m_creature);
             break;
         case 27:
             if (Player* pPlayer = GetPlayerForEscort())
                 pPlayer->GroupEventHappens(QUEST_HOMEWARD, m_creature);
             break;
     }
 }
 void WaypointReached(uint32 waypointId) override
 {
     switch (waypointId)
     {
         case 15:
             Talk(SAY_WYVERN);
             DoSpawnWyvern();
             break;
         case 26:
             Talk(SAY_COMPLETE);
             break;
         case 27:
             if (Player* player = GetPlayerForEscort())
                 player->GroupEventHappens(QUEST_HOMEWARD, me);
             break;
     }
 }