From 7204bb35e37bd148a18c7c3e7ce40537fb8702a1 Mon Sep 17 00:00:00 2001 From: Wyreth <32145860+Wyreth@users.noreply.github.com> Date: Sat, 21 Oct 2017 11:54:12 +0200 Subject: Scripts/World: move Leviroth's item_script to SAI (cherry picked from commit 17143938d7f5126b8c8e6ed5fc1229b6c2665ec3) --- src/server/scripts/World/item_scripts.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src') diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp index b06f1aae0f7..2979c83bf6d 100644 --- a/src/server/scripts/World/item_scripts.cpp +++ b/src/server/scripts/World/item_scripts.cpp @@ -361,33 +361,6 @@ public: } }; -enum TheEmissary -{ - QUEST_THE_EMISSARY = 11626, - NPC_LEVIROTH = 26452 -}; - -class item_trident_of_nazjan : public ItemScript -{ -public: - item_trident_of_nazjan() : ItemScript("item_Trident_of_Nazjan") { } - - bool OnUse(Player* player, Item* item, SpellCastTargets const& /*targets*/, ObjectGuid /*castId*/) override - { - if (player->GetQuestStatus(QUEST_THE_EMISSARY) == QUEST_STATUS_INCOMPLETE) - { - if (Creature* pLeviroth = player->FindNearestCreature(NPC_LEVIROTH, 10.0f)) // spell range - { - pLeviroth->AI()->AttackStart(player); - return false; - } else - player->SendEquipError(EQUIP_ERR_OUT_OF_RANGE, item, nullptr); - } else - player->SendEquipError(EQUIP_ERR_CLIENT_LOCKED_OUT, item, nullptr); - return true; - } -}; - enum CapturedFrog { QUEST_THE_PERFECT_SPIES = 25444, @@ -449,7 +422,6 @@ void AddSC_item_scripts() new item_pile_fake_furs(); new item_petrov_cluster_bombs(); new item_dehta_trap_smasher(); - new item_trident_of_nazjan(); new item_captured_frog(); new item_generic_limit_chance_above_60(); } -- cgit v1.2.3