diff options
-rw-r--r-- | sql/updates/world/3.3.5/2020_04_30_01_world_335.sql | 8 | ||||
-rw-r--r-- | src/server/scripts/World/item_scripts.cpp | 24 |
2 files changed, 8 insertions, 24 deletions
diff --git a/sql/updates/world/3.3.5/2020_04_30_01_world_335.sql b/sql/updates/world/3.3.5/2020_04_30_01_world_335.sql new file mode 100644 index 00000000000..4511e6054c0 --- /dev/null +++ b/sql/updates/world/3.3.5/2020_04_30_01_world_335.sql @@ -0,0 +1,8 @@ +-- +UPDATE `item_template` SET `ScriptName` = "" WHERE `entry` = 31742; +UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 22408; +DELETE FROM `smart_scripts` WHERE `entryorguid` = 22408 AND `source_type` = 0; +INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(22408,0,0,0,54,0,100,0,0,0,0,0,0,49,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,"Furious Nether-wraith - On Just Summoned - Start Attacking"), +(22408,0,1,0,0,0,100,0,0,0,3000,5000,0,11,39337,64,0,0,0,0,2,0,0,0,0,0,0,0,0,"Furious Nether-wraith - In Combat - Cast 'Arcane Bolt'"), +(22408,0,2,0,0,0,100,0,10000,15000,22000,28000,0,11,38205,1,0,0,0,0,2,0,0,0,0,0,0,0,0,"Furious Nether-wraith - In Combat - Cast 'Shadow Blast'"); diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp index 6bfd3336926..6a414ea4685 100644 --- a/src/server/scripts/World/item_scripts.cpp +++ b/src/server/scripts/World/item_scripts.cpp @@ -23,7 +23,6 @@ SDCategory: Items EndScriptData */ /* ContentData -item_nether_wraith_beacon(i31742) Summons creatures for quest Becoming a Spellfire Tailor (q10832) item_flying_machine(i34060, i34061) Engineering crafted flying machines item_gor_dreks_ointment(i30175) Protecting Our Own(q10488) item_only_for_flight Items which should only useable while flying @@ -85,29 +84,6 @@ public: }; /*##### -# item_nether_wraith_beacon -#####*/ - -class item_nether_wraith_beacon : public ItemScript -{ -public: - item_nether_wraith_beacon() : ItemScript("item_nether_wraith_beacon") { } - - bool OnUse(Player* player, Item* /*item*/, SpellCastTargets const& /*targets*/) override - { - if (player->GetQuestStatus(10832) == QUEST_STATUS_INCOMPLETE) - { - if (Creature* nether = player->SummonCreature(22408, player->GetPositionX(), player->GetPositionY()+20, player->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000)) - nether->AI()->AttackStart(player); - - if (Creature* nether = player->SummonCreature(22408, player->GetPositionX(), player->GetPositionY()-20, player->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 180000)) - nether->AI()->AttackStart(player); - } - return false; - } -}; - -/*##### # item_gor_dreks_ointment #####*/ |