From a3dec9068bda1a3145e526eaa69c1e38fa3f2fe3 Mon Sep 17 00:00:00 2001 From: Killyana Date: Thu, 20 Jun 2019 11:51:18 +0200 Subject: DB/Quest: A Visit With The Ancestors Closes #23284 --- src/server/scripts/Outland/zone_nagrand.cpp | 44 ----------------------------- 1 file changed, 44 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Outland/zone_nagrand.cpp b/src/server/scripts/Outland/zone_nagrand.cpp index 1919261ce70..872c2489b5a 100644 --- a/src/server/scripts/Outland/zone_nagrand.cpp +++ b/src/server/scripts/Outland/zone_nagrand.cpp @@ -25,7 +25,6 @@ EndScriptData */ /* ContentData npc_maghar_captive -npc_creditmarker_visit_with_ancestors EndContentData */ #include "ScriptMgr.h" @@ -218,48 +217,6 @@ public: }; -/*###### -## npc_creditmarker_visist_with_ancestors -######*/ - -class npc_creditmarker_visit_with_ancestors : public CreatureScript -{ -public: - npc_creditmarker_visit_with_ancestors() : CreatureScript("npc_creditmarker_visit_with_ancestors") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_creditmarker_visit_with_ancestorsAI(creature); - } - - struct npc_creditmarker_visit_with_ancestorsAI : public ScriptedAI - { - npc_creditmarker_visit_with_ancestorsAI(Creature* creature) : ScriptedAI(creature) { } - - void Reset() override { } - - void JustEngagedWith(Unit* /*who*/) override { } - - void MoveInLineOfSight(Unit* who) override - { - if (!who) - return; - - Player* player = who->ToPlayer(); - if (player && player->GetQuestStatus(10085) == QUEST_STATUS_INCOMPLETE) - { - uint32 creditMarkerId = me->GetEntry(); - if (creditMarkerId >= 18840 && creditMarkerId <= 18843) - { - // 18840: Sunspring, 18841: Laughing, 18842: Garadar, 18843: Bleeding - if (!player->GetReqKillOrCastCurrentCount(10085, creditMarkerId)) - player->KilledMonsterCredit(creditMarkerId, me->GetGUID()); - } - } - } - }; -}; - /*###### ## go_corkis_prison and npc_corki ######*/ @@ -924,7 +881,6 @@ public: void AddSC_nagrand() { new npc_maghar_captive(); - new npc_creditmarker_visit_with_ancestors(); new npc_corki(); new go_corkis_prison(); new npc_kurenai_captive(); -- cgit v1.2.3