From 7b7f6e6559ecdb0abcef5e7396a1b49fc7b259e5 Mon Sep 17 00:00:00 2001 From: Poszer <41213210+poszer@users.noreply.github.com> Date: Mon, 27 May 2019 14:07:25 +0200 Subject: [PATCH] fix(DB/Gameobject): Spire Spider Egg Trap (#1873) * fix(DB/Gameobject): Spire Spider Egg Trap - Related to this quest: https://wotlk.evowow.com/?quest=4862 --- .../rev_1558616423152525700.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1558616423152525700.sql diff --git a/data/sql/updates/pending_db_world/rev_1558616423152525700.sql b/data/sql/updates/pending_db_world/rev_1558616423152525700.sql new file mode 100644 index 000000000..4fdd510df --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1558616423152525700.sql @@ -0,0 +1,27 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1558616423152525700'); + +-- Cast "Summon Spire Spiderling" with a 10% chance if opening "Spire Spider Egg" (IDs 175606 & 175588) +UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` IN (175606,175588); +DELETE FROM `smart_scripts` WHERE `source_type` = 1 AND `entryorguid` IN (175606,175588); +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 +(175606,1,0,0,70,0,10,0,2,0,0,0,0,11,16453,3,0,0,0,0,1,0,0,0,0,0,0,0,0,'Spire Spider Egg - On GO State Changed 2 (10% Chance) - Cast ''Summon Spire Spiderling'''), +(175588,1,0,0,70,0,10,0,2,0,0,0,0,11,16453,3,0,0,0,0,1,0,0,0,0,0,0,0,0,'Spire Spider Egg - On GO State Changed 2 (10% Chance) - Cast ''Summon Spire Spiderling'''); + +-- Linked Trap for "Spire Spider Egg" (ID 175588) is not needed +UPDATE `gameobject_template` SET `Data7` = 0 WHERE `entry` = 175588; + +-- Spire Spiderling SAI (ID 10375) +DELETE FROM `smart_scripts` WHERE `entryorguid`=10375 AND `source_type`=0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=10375; +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`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(10375,0,0,0,1,0,100,0,0,0,0,0,89,15,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spire Spiderling - Out of Combat - Random Move"), +(10375,0,1,0,7,0,100,0,0,0,0,0,41,150,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spire Spiderling - On Evade - Despawn"); + +-- Spire Spider SAI (ID 10374) +DELETE FROM `smart_scripts` WHERE `entryorguid`=10374 AND `source_type`=0; +UPDATE creature_template SET AIName="SmartAI" WHERE entry=10374; +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`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES +(10374,0,0,0,6,0,100,2,0,0,0,0,11,16103,3,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spire Spider - On Death - Cast 'Summon Spire Spiderling'"), +(10374,0,1,0,0,0,100,2,15000,15000,15000,15000,11,16104,0,0,0,0,0,2,0,0,0,0.0,0.0,0.0,0.0,"Spire Spider - In Combat - Cast 'Crystallize'"), +(10374,0,2,0,1,0,100,0,0,0,0,0,89,20,0,0,0,0,0,1,0,0,0,0.0,0.0,0.0,0.0,"Spire Spider - Out of Combat - Random move");