diff options
author | illfated <38162891+illfated@users.noreply.github.com> | 2018-07-11 05:13:59 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-14 00:09:17 +0200 |
commit | 550513ba65772535b07f38175e151d980e4fc084 (patch) | |
tree | 48d863f15c8cbd991814def4736f22d09d269c8b /src | |
parent | 4cdbcb6ff9a08ab72a5d8da6f61f0f5c4a6bd2a4 (diff) |
Creature/Script: remove obsolete script npc_skywing (#22147)
- replaced with SAI script for the same quest and creature (Skywing)
Ref. https://github.com/TrinityCore/TrinityCore/issues/22078#issuecomment-399760597
(cherry picked from commit 0004531081058a2a4d7a1fbe94545e9328ce7d61)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Outland/zone_terokkar_forest.cpp | 66 |
1 files changed, 1 insertions, 65 deletions
diff --git a/src/server/scripts/Outland/zone_terokkar_forest.cpp b/src/server/scripts/Outland/zone_terokkar_forest.cpp index 41dd22b902f..3c47cb154f3 100644 --- a/src/server/scripts/Outland/zone_terokkar_forest.cpp +++ b/src/server/scripts/Outland/zone_terokkar_forest.cpp @@ -18,15 +18,13 @@ /* ScriptData SDName: Terokkar_Forest SD%Complete: 85 -SDComment: Quest support: 9889, 10898, 10052, 10051. +SDComment: Quest support: 9889, 10051, 10052. SDCategory: Terokkar Forest EndScriptData */ /* ContentData npc_unkor_the_ruthless npc_isla_starmane -npc_skywing -npc_akuno EndContentData */ #include "ScriptMgr.h" @@ -162,67 +160,6 @@ public: }; /*###### -## npc_skywing -######*/ - -enum Skywing -{ - QUEST_SKYWING = 10898 -}; - -class npc_skywing : public CreatureScript -{ -public: - npc_skywing() : CreatureScript("npc_skywing") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_skywingAI(creature); - } - - struct npc_skywingAI : public EscortAI - { - public: - npc_skywingAI(Creature* creature) : EscortAI(creature) { } - - void WaypointReached(uint32 waypointId, uint32 /*pathId*/) override - { - Player* player = GetPlayerForEscort(); - if (!player) - return; - - switch (waypointId) - { - case 8: - player->AreaExploredOrEventHappens(QUEST_SKYWING); - break; - } - } - - void JustEngagedWith(Unit* /*who*/) override { } - - void MoveInLineOfSight(Unit* who) override - - { - if (HasEscortState(STATE_ESCORT_ESCORTING)) - return; - - Player* player = who->ToPlayer(); - if (player && player->GetQuestStatus(QUEST_SKYWING) == QUEST_STATUS_INCOMPLETE) - if (me->IsWithinDistInMap(who, 10.0f)) - Start(false, false, who->GetGUID()); - } - - void Reset() override { } - - void UpdateAI(uint32 diff) override - { - EscortAI::UpdateAI(diff); - } - }; -}; - -/*###### ## npc_isla_starmane ######*/ enum IslaStarmaneData @@ -322,5 +259,4 @@ void AddSC_terokkar_forest() { new npc_unkor_the_ruthless(); new npc_isla_starmane(); - new npc_skywing(); } |