aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMalcrom <malcromdev@gmail.com>2011-05-24 15:33:44 +0200
committerZxBiohazardZx <zxbiohazardzx@gmail.com>2011-05-24 15:33:44 +0200
commitde80829818a3db7fb957222acaf3841c65dd6862 (patch)
treec0fc9085367c7b74d1fcfcb28f82180e20bed55c /sql
parente60464c36b1a2763560fa516b3c6420fe554e884 (diff)
DB/SAI: Shadow Adept <Cult of the Damned> SAI
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/2011_05_24_12_world_sai.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/updates/world/2011_05_24_12_world_sai.sql b/sql/updates/world/2011_05_24_12_world_sai.sql
new file mode 100644
index 00000000000..ae823125626
--- /dev/null
+++ b/sql/updates/world/2011_05_24_12_world_sai.sql
@@ -0,0 +1,15 @@
+-- Shadow Adept <Cult of the Damned> SAI
+SET @ENTRY := 31145; -- NPC entry
+SET @CHANNEL := 58847; -- Spell to cast
+SET @TARGET := 31245; -- Target creature entry
+SET @SPELL1 := 60646; -- Shadow Blast
+SET @SPELL2 := 17238; -- Drain Life
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
+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,1,1000,1000,1000,1000,11,@CHANNEL,2,0,0,0,0,11,@TARGET,30,0,0,0,0,0, 'Shadow Adept - On spawn & reset - Channel Green Cultist Beam on target'),
+(@ENTRY,0,1,0,0,0,100,0,4000,7000,6000,9000,11,@SPELL1,0,0,0,0,0,2,0,0,0,0,0,0,0, 'Shadow Adept - Combat - Cast Shadow Blast on victim'),
+(@ENTRY,0,2,0,2,0,100,0,0,80,20000,30000,11,@SPELL2,0,0,0,0,0,2,0,0,0,0,0,0,0, 'Shadow Adept - Combat - Cast Drain Life on victim');
+-- Invisible Ooze Stalker Fixup and set as trigger
+UPDATE `creature` SET `modelid`=0,`spawndist`=0,`MovementType`=0 WHERE `id`=31245;
+UPDATE `creature_template` SET `InhabitType`=7,`flags_extra`=`flags_extra`|128 WHERE `entry`=31245;