From b217e5842f82c67a1cd5faac1f2a778c7e34d3d0 Mon Sep 17 00:00:00 2001 From: offl Date: Sun, 17 May 2020 23:36:34 +0200 Subject: DB/Quest: Convert & update support for 'Finding the Survivors' to SAI Closes #24636 (cherry picked from commit 2815db52a643bdfa397317b79d5b3f68995b343e) --- src/server/scripts/Outland/zone_nagrand.cpp | 45 ----------------------------- 1 file changed, 45 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3