aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2013-03-26 21:50:20 +0100
committerGacko <gacko28@gmx.de>2013-03-26 21:52:00 +0100
commitb78885622078bcf56b21694b39964c25ae4794f6 (patch)
tree22b0107c5a2a10bd26414805a328916b713adacc
parente635ba5b813464797ea834f845b723c54cfc469b (diff)
SAI/Quest: A Hero's Headgear (Thanks @untaught)
Solves: #9452
-rw-r--r--sql/updates/world/2013_03_26_00_world_a_heros_headgear.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/updates/world/2013_03_26_00_world_a_heros_headgear.sql b/sql/updates/world/2013_03_26_00_world_a_heros_headgear.sql
new file mode 100644
index 00000000000..9a0ccd58fb2
--- /dev/null
+++ b/sql/updates/world/2013_03_26_00_world_a_heros_headgear.sql
@@ -0,0 +1,14 @@
+UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=28877;
+
+DELETE FROM `creature_ai_scripts` WHERE `creature_id`=28877;
+
+DELETE FROM `smart_scripts` WHERE `entryorguid`=28877 AND `source_type`=0;
+INSERT INTO `smart_scripts`(`entryorguid`,`id`,`link`,`event_type`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`target_type`,`comment`) VALUES
+(28877,0,0,0,3000,5000,3000,5000,11,32018,2,'Stormwatcher - In combat - Cast Call Lightning'),
+(28877,1,2,8,53145,0,0,0,11,53162,1,'Stormwatcher - On spellhit - Summon Stormwatchers Head'),
+(28877,2,0,61,0,0,0,0,41,0,1,'Stormwatcher - Linked with id 1 - Despawn');
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=17 AND `SourceEntry`=53145;
+INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`NegativeCondition`,`Comment`) VALUES
+(17,53145,31,1,3,28877,0,'Target needs to be Stormwatcher'),
+(17,53145,36,1,0,0,1,'Target needs to be dead');