diff options
author | Aokromes <Aokromes@users.noreply.github.com> | 2014-02-27 05:27:35 +0100 |
---|---|---|
committer | Aokromes <Aokromes@users.noreply.github.com> | 2014-02-27 05:27:35 +0100 |
commit | dd2746c8dbc95e6803a69b13365f790eb9de52bc (patch) | |
tree | f0387eef69b7c77cc007dab2fe624e7442d436ac | |
parent | 075fa515a4ee40c491fc4519841bf229d99eb20a (diff) |
DB/SAI: The Grimtotem Weapon
by dr-j closes #3119
-rw-r--r-- | sql/updates/world/2014_02_27_04_world_sai.sql | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sql/updates/world/2014_02_27_04_world_sai.sql b/sql/updates/world/2014_02_27_04_world_sai.sql new file mode 100644 index 00000000000..83a46c0adb4 --- /dev/null +++ b/sql/updates/world/2014_02_27_04_world_sai.sql @@ -0,0 +1,32 @@ +-- Captured Totem +DELETE FROM `creature_template_addon` WHERE `entry`=23811; +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(23811, 0, 0, 0, 4097, 0, '42464'); + +-- Mottled Drywallow Crocolisk +UPDATE `creature_template` SET `AIName`= 'SmartAI',`ScriptName`='' WHERE `entry`=4344; + +DELETE FROM `smart_scripts` WHERE `entryorguid` =4344; +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 +(4344, 0, 0, 0, 6, 0,100,0, 0, 0, 0, 0, 11, 42455, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Mottled Drywallow Crocolisk - On Death - Cast Captured Totem Test Credit'), +(4344, 0, 1, 0, 0, 0,100,0, 1000, 6000, 11000, 12000, 11, 3604, 1,0,0,0,0,5,0,0,0,0,0,0,0,'Mottled Drywallow Crocolisk - IC - Cast Tendon Rip'); + +-- Drywallow Daggermaw +UPDATE `creature_template` SET `AIName`= 'SmartAI',`ScriptName`='' WHERE `entry`=4345; + +DELETE FROM `smart_scripts` WHERE `entryorguid` =4345; +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 +(4345, 0, 0, 0, 6, 0, 100, 0, 0, 0, 0, 0, 11, 42455, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Drywallow Daggermaw - On Death - Cast Captured Totem Test Credit'), +(4345, 0, 1, 0, 9, 0, 100, 0, 0, 5, 10000, 10000, 11, 6016, 2, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 'Drywallow Daggermaw - IC - Cast Pierce Armor'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=22 AND `SourceEntry` IN (4344,4345); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(22,1,4344,0,0,1,1,42454,0,0,0,0,'','Captured Totem Quest Credit only if Crocolisk has Captured Totem Aura at Death'), +(22,1,4345,0,0,1,1,42454,0,0,0,0,'','Captured Totem Quest Credit only if Crocolisk has Captured Totem Aura at Death'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=42454; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(13,1,42454,0,0,31,0,3,4344,0,0,0,0,'','Captive Totem Aura targets only Mottled Drywallow Crocolisk'), +(13,1,42454,0,0,36,0,0,0,0,0,0,0,'','Captive Totem Aura targets only alive units'), +(13,1,42454,0,1,31,0,3,4345,0,0,0,0,'','Captive Totem Aura targets only Drywallow Daggermaw'), +(13,1,42454,0,1,36,0,0,0,0,0,0,0,'','Captive Totem Aura targets only alive units'); |