aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGacko <gacko28@gmx.de>2013-06-29 16:56:52 +0200
committerGacko <gacko28@gmx.de>2013-06-29 17:01:35 +0200
commit2691defd1e6afd19b0740dc3614e35351706ad93 (patch)
treeeafece60d50705d0ad81a81cfbbfed7593e6e3fc
parent13208ff25706bf23b428a67452d1b5fa26c7ceec (diff)
DB/SAI: Convert Felblood Initiate to SAI and fix runtime warning
-rw-r--r--sql/updates/world/2013_06_29_00_world_misc.sql14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/updates/world/2013_06_29_00_world_misc.sql b/sql/updates/world/2013_06_29_00_world_misc.sql
new file mode 100644
index 00000000000..175f37041e2
--- /dev/null
+++ b/sql/updates/world/2013_06_29_00_world_misc.sql
@@ -0,0 +1,14 @@
+SET @ENTRY = 24918;
+DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@ENTRY;
+UPDATE `creature_template` SET `AIName`='SmartAI',`ScriptName`='' WHERE `entry`=@ENTRY;
+
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
+INSERT INTO `smart_scripts`(`entryorguid`,`id`,`event_type`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`target_type`,`comment`) VALUES
+(@ENTRY,0,0,4000,6000,7000,9000,11,14873,0,2,'Felblood Initiate - Cast Sinister Strike'),
+(@ENTRY,1,0,17000,22000,20000,26000,11,29098,1,2,'Felblood Initiate - Cast Bitter Withdrawal'),
+(@ENTRY,2,0,8000,12000,18000,22000,11,35871,1,2,'Felblood Initiate - Cast Spellbreaker'),
+(@ENTRY,3,8,44937,0,0,0,36,24955,1,1,'Felblood Initiate - Changes Template to Emaciated Felblood After Using Fel Siphon (Quest: 11515)');
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceGroup`=4 AND `SourceEntry`=@ENTRY AND `SourceId`=0;
+INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ConditionTarget`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`NegativeCondition`,`Comment`) VALUE
+(22,4,@ENTRY,0,1,31,3,24955,1,'Felblood Initiate may not already be transformed to template entry 24955 when trying to update template to 24955');