diff options
| author | Malcrom <malcromdev@gmail.com> | 2013-12-24 17:56:38 -0330 |
|---|---|---|
| committer | Malcrom <malcromdev@gmail.com> | 2013-12-24 17:56:38 -0330 |
| commit | b8e626199c9a894464eb7a71f030e8c6d75348cf (patch) | |
| tree | 88a1fecb2f67609f6624b0f4c76ccde625e899ac /src/server/scripts/Outland | |
| parent | 20a2b691785b66a8a265f691c5ffd8affd6298f0 (diff) | |
Scripting/Multi: Some cleanup.
Diffstat (limited to 'src/server/scripts/Outland')
| -rw-r--r-- | src/server/scripts/Outland/zone_hellfire_peninsula.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/src/server/scripts/Outland/zone_hellfire_peninsula.cpp b/src/server/scripts/Outland/zone_hellfire_peninsula.cpp index 01f0f938501..5e70b7f9fc4 100644 --- a/src/server/scripts/Outland/zone_hellfire_peninsula.cpp +++ b/src/server/scripts/Outland/zone_hellfire_peninsula.cpp @@ -238,6 +238,15 @@ public: summoned->AI()->AttackStart(me); } + void sQuestAccept(Player* player, Quest const* quest) + { + if (quest->GetQuestId() == QUEST_ROAD_TO_FALCON_WATCH) + { + me->setFaction(FACTION_FALCON_WATCH_QUEST); + npc_escortAI::Start(true, false, player->GetGUID()); + } + } + void WaypointReached(uint32 waypointId) OVERRIDE { Player* player = GetPlayerForEscort(); @@ -273,20 +282,6 @@ public: } }; - bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) OVERRIDE - { - if (quest->GetQuestId() == QUEST_ROAD_TO_FALCON_WATCH) - { - if (npc_escortAI* pEscortAI = CAST_AI(npc_wounded_blood_elf::npc_wounded_blood_elfAI, creature->AI())) - pEscortAI->Start(true, false, player->GetGUID()); - - // Change faction so mobs attack - creature->setFaction(FACTION_FALCON_WATCH_QUEST); - } - - return true; - } - CreatureAI* GetAI(Creature* creature) const OVERRIDE { return new npc_wounded_blood_elfAI(creature); |
