aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorkaelima <jeppo_meyer@msn.com>2011-05-07 17:34:18 +0200
committerkaelima <jeppo_meyer@msn.com>2011-05-07 17:34:18 +0200
commitb82ae5ad0d85990c31405dc489432083330a4b79 (patch)
tree3c9031c54766a938b21752e569d4abb56d8f28a8 /sql
parent985c85f44e8ebf60c6ef4ba9a2fb8f14cc6b8dfd (diff)
Scripts/Dustwallow Marsh: Fix quest 11174 (Corrosion Prevention)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/2011_05_07_06_world_sai.sql25
-rw-r--r--sql/updates/world/2011_05_07_06_world_spell_script_names.sql5
2 files changed, 30 insertions, 0 deletions
diff --git a/sql/updates/world/2011_05_07_06_world_sai.sql b/sql/updates/world/2011_05_07_06_world_sai.sql
new file mode 100644
index 00000000000..6face4a4fd1
--- /dev/null
+++ b/sql/updates/world/2011_05_07_06_world_sai.sql
@@ -0,0 +1,25 @@
+-- Zeppelin Power Core
+SET @ENTRY := 23832;
+-- Remove aura hack
+DELETE FROM `creature_template_addon` WHERE `entry`=@ENTRY;
+DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id`=@ENTRY);
+INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
+(@ENTRY,0,0,1,0, NULL); -- Zeppelin Power Core
+
+-- Remove random movement
+UPDATE `creature` SET `spawndist`=0,`MovementType`=0 WHERE `id`=@ENTRY;
+
+-- SmartAI for Zeppelin Power Core
+UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@ENTRY*100;
+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
+(@ENTRY,0,0,0,1,0,100,0,1000,60000,90000,120000,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Zeppelin Power Core - OOC - Load script every 1.5-2 min'),
+(@ENTRY*100,9,0,0,0,0,100,0,1000,1000,0,0,11,42491,2,0,0,0,0,1,0,0,0,0,0,0,0, 'Zeppelin Power Core - Script - Cast Energized Periodic on self'),
+(@ENTRY*100,9,1,0,0,0,100,0,60000,90000,0,0,28,42491,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Zeppelin Power Core - Script - After 1 - 1.5 min, remove Energized Periodic on self');
+
+-- Add condition for Ooze Buster (item 33108, spell 42489)
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=18 AND `SourceEntry`=33108;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(18,0,33108,0,24,1,4394,0,0, '', 'Item 33108 can target Bubbling Swamp Ooze'),
+(18,0,33108,1,24,1,4393,0,0, '', 'Item 33108 can target Acidic Swamp Ooze');
diff --git a/sql/updates/world/2011_05_07_06_world_spell_script_names.sql b/sql/updates/world/2011_05_07_06_world_spell_script_names.sql
new file mode 100644
index 00000000000..b614c5fe56d
--- /dev/null
+++ b/sql/updates/world/2011_05_07_06_world_spell_script_names.sql
@@ -0,0 +1,5 @@
+DELETE FROM `spell_script_names` WHERE `spell_id` IN (42489,42485,42492);
+INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
+(42489, 'spell_ooze_zap'),
+(42485, 'spell_ooze_zap_channel_end'),
+(42492, 'spell_energize_aoe');