aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2011-02-26 02:32:58 +0000
committerNay <dnpd.dd@gmail.com>2011-02-26 02:33:48 +0000
commit27e20946c201d007dadad4964f0f13fc5b57e44c (patch)
tree0898768a1c42b3cae942f45e8b2303af22a06677
parent3fb3b18b61ada660ff6f4079c3563286d57ddc44 (diff)
DB/NPC: Captain Fairmount should not be invisible
DB/SAI: Add combat scripts to Captain Fairmount Closes #303 & #699
-rw-r--r--sql/updates/world/2011_02_26_1_world_sai.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/updates/world/2011_02_26_1_world_sai.sql b/sql/updates/world/2011_02_26_1_world_sai.sql
new file mode 100644
index 00000000000..6735f217dd1
--- /dev/null
+++ b/sql/updates/world/2011_02_26_1_world_sai.sql
@@ -0,0 +1,9 @@
+SET @Fairmount = 3393; -- Captain Fairmount
+DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@Fairmount; -- three scripts
+DELETE FROM `smart_scripts` WHERE (`entryorguid`=@Fairmount 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
+(@Fairmount,0,0,0,4,0,100,0,0,0,0,0,11,9128,0,0,0,0,0,1,0,0,0,0,0,0,0,'Captain Fairmount: On aggro cast Battle Shout self'),
+(@Fairmount,0,1,0,2,0,100,1,0,30,0,0,11,19134,0,0,0,0,0,2,0,0,0,0,0,0,0,'Captain Fairmount: At 30% hp cast Frightening Shout'),
+(@Fairmount,0,2,0,13,0,100,0,5000,5000,0,0,11,12555,0,0,0,0,0,2,0,0,0,0,0,0,0,'Captain Fairmount: On enemy casting cast Pummel');
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@Fairmount;
+UPDATE `creature_model_info` SET `modelid_other_gender`=0 WHERE `modelid`=1855; -- correct wrong model data, thanks Kaelima