diff options
author | Killyana <morphone1@gmail.com> | 2019-06-09 21:44:37 +0200 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2019-06-09 21:44:37 +0200 |
commit | d7375ad33f9d23325346281c8635633db62521ac (patch) | |
tree | dc3bcf586f4994e0baffffb6051789e8d51b355a /src | |
parent | 12de860b4aefc02cc77b7487ef218fb584cdb552 (diff) |
DB/Quest: Protect Kanati Greycloud
Closes #7501
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Kalimdor/zone_thousand_needles.cpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/server/scripts/Kalimdor/zone_thousand_needles.cpp b/src/server/scripts/Kalimdor/zone_thousand_needles.cpp index 377433924c8..79700dc087a 100644 --- a/src/server/scripts/Kalimdor/zone_thousand_needles.cpp +++ b/src/server/scripts/Kalimdor/zone_thousand_needles.cpp @@ -24,7 +24,6 @@ SDCategory: Thousand Needles EndScriptData */ /* ContentData -npc_kanati npc_lakota_windsong npc_swiftmountain npc_enraged_panther @@ -38,69 +37,6 @@ EndContentData */ #include "ScriptedEscortAI.h" #include "ScriptedGossip.h" -/*##### -# npc_kanati -######*/ - -enum Kanati -{ - SAY_KAN_START = 0, - QUEST_PROTECT_KANATI = 4966, - NPC_GALAK_ASS = 10720 -}; - -Position const GalakLoc = {-4867.387695f, -1357.353760f, -48.226f, 0.0f}; - -class npc_kanati : public CreatureScript -{ -public: - npc_kanati() : CreatureScript("npc_kanati") { } - - struct npc_kanatiAI : public EscortAI - { - npc_kanatiAI(Creature* creature) : EscortAI(creature) { } - - void Reset() override { } - - void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override - { - switch (waypointId) - { - case 0: - Talk(SAY_KAN_START); - DoSpawnGalak(); - break; - case 1: - if (Player* player = GetPlayerForEscort()) - player->GroupEventHappens(QUEST_PROTECT_KANATI, me); - break; - } - } - - void DoSpawnGalak() - { - for (int i = 0; i < 3; ++i) - me->SummonCreature(NPC_GALAK_ASS, GalakLoc, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 25000); - } - - void JustSummoned(Creature* summoned) override - { - summoned->AI()->AttackStart(me); - } - - void QuestAccept(Player* player, Quest const* quest) override - { - if (quest->GetQuestId() == QUEST_PROTECT_KANATI) - Start(false, false, player->GetGUID(), quest, true); - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_kanatiAI(creature); - } -}; - /*###### # npc_lakota_windsong ######*/ @@ -335,7 +271,6 @@ public: void AddSC_thousand_needles() { - new npc_kanati(); new npc_lakota_windsong(); new npc_paoka_swiftmountain(); new npc_enraged_panther(); |