From 27e20946c201d007dadad4964f0f13fc5b57e44c Mon Sep 17 00:00:00 2001 From: Nay Date: Sat, 26 Feb 2011 02:32:58 +0000 Subject: DB/NPC: Captain Fairmount should not be invisible DB/SAI: Add combat scripts to Captain Fairmount Closes #303 & #699 --- sql/updates/world/2011_02_26_1_world_sai.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sql/updates/world/2011_02_26_1_world_sai.sql (limited to 'sql') 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 -- cgit v1.2.3