diff options
author | offl <offl@users.noreply.github.com> | 2020-05-17 23:36:34 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-06 00:20:41 +0100 |
commit | b217e5842f82c67a1cd5faac1f2a778c7e34d3d0 (patch) | |
tree | 6172e39031123092c4ef134d48fde9ba0b46f3f6 /src | |
parent | 692163493ca6335b46cec14c45ea50eabec9759a (diff) |
DB/Quest: Convert & update support for 'Finding the Survivors' to SAI
Closes #24636
(cherry picked from commit 2815db52a643bdfa397317b79d5b3f68995b343e)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Outland/zone_nagrand.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/server/scripts/Outland/zone_nagrand.cpp b/src/server/scripts/Outland/zone_nagrand.cpp index 4b166ba9586..5245e967bcd 100644 --- a/src/server/scripts/Outland/zone_nagrand.cpp +++ b/src/server/scripts/Outland/zone_nagrand.cpp @@ -547,50 +547,6 @@ public: } }; -/*###### -## go_warmaul_prison -######*/ - -enum FindingTheSurvivorsData -{ - QUEST_FINDING_THE_SURVIVORS = 9948, - NPC_MAGHAR_PRISONER = 18428, - - SAY_FREE = 0, -}; - -class go_warmaul_prison : public GameObjectScript -{ - public: - go_warmaul_prison() : GameObjectScript("go_warmaul_prison") { } - - struct go_warmaul_prisonAI : public GameObjectAI - { - go_warmaul_prisonAI(GameObject* go) : GameObjectAI(go) { } - - bool GossipHello(Player* player) override - { - me->UseDoorOrButton(); - if (player->GetQuestStatus(QUEST_FINDING_THE_SURVIVORS) != QUEST_STATUS_INCOMPLETE) - return false; - - if (Creature* prisoner = me->FindNearestCreature(NPC_MAGHAR_PRISONER, 5.0f)) - { - player->KilledMonsterCredit(NPC_MAGHAR_PRISONER); - - prisoner->AI()->Talk(SAY_FREE, player); - prisoner->DespawnOrUnsummon(6000); - } - return true; - } - }; - - GameObjectAI* GetAI(GameObject* go) const override - { - return new go_warmaul_prisonAI(go); - } -}; - enum PlantBannerQuests { SPELL_PLANT_WARMAUL_OGRE_BANNER = 32307, @@ -883,7 +839,6 @@ void AddSC_nagrand() new npc_corki(); new go_corkis_prison(); new npc_kurenai_captive(); - new go_warmaul_prison(); new npc_nagrand_banner(); new condition_nagrand_banner(); } |