aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHobbilis <hobbilis@trinity.contrib>2013-07-06 17:07:50 +0200
committerZxBiohazardZx <zxbiohazardzx@gmail.com>2013-07-06 17:07:50 +0200
commit0c911af24c263c4e931c7264242c9755074d270d (patch)
treec4f61c1445863368a3a7dffa5d333fad0e1783fd
parentf5fe0c28cc69a58533a7c47663091abc46cd13a8 (diff)
DB/SAI: Converting Axtroz EventAI to SmartAI
Closes #9610
-rw-r--r--sql/updates/world/2013_07_06_04_world_sai.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/updates/world/2013_07_06_04_world_sai.sql b/sql/updates/world/2013_07_06_04_world_sai.sql
new file mode 100644
index 00000000000..77bd130d8b6
--- /dev/null
+++ b/sql/updates/world/2013_07_06_04_world_sai.sql
@@ -0,0 +1,9 @@
+SET @AXTROZ := 12899;
+DELETE FROM `creature_ai_scripts` WHERE `creature_id` = @AXTROZ;
+UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = @AXTROZ;
+-- SAI for Axtroz
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@AXTROZ 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`,`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
+(@AXTROZ,0,0,0,0,0,100,0,6100,7100,16200,16200,11,20712,0,0,0,0,0,2,0,0,0,0,0,0,0, 'Axtroz - In Combat - Cast Flame Breath'),
+(@AXTROZ,0,1,0,0,0,100,0,8300,13300,7700,11400,11,16095,0,0,0,0,0,2,0,0,0,0,0,0,0, 'Axtroz - In Combat - Cast Vicious Rend'),
+(@AXTROZ,0,2,0,0,0,90,0,4600,5200,6400,11800,11,20714,0,0,0,0,0,2,0,0,0,0,0,0,0, 'Axtroz - In Combat - Cast Fireball');