From 0826bc6b63e58bc7f7258ce1a6e733bb17941422 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 16 Dec 2018 03:12:33 +0100 Subject: [PATCH] DB/TB: added some smart scripts for Tol'Barad Peninsula npc's --- .../custom/custom_2018_12_16_00_world.sql | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sql/updates/world/custom/custom_2018_12_16_00_world.sql diff --git a/sql/updates/world/custom/custom_2018_12_16_00_world.sql b/sql/updates/world/custom/custom_2018_12_16_00_world.sql new file mode 100644 index 00000000000..6561a65c8da --- /dev/null +++ b/sql/updates/world/custom/custom_2018_12_16_00_world.sql @@ -0,0 +1,45 @@ +-- Creature Darkwood Lurker 46508 SAI +SET @ENTRY := 46508; +UPDATE `creature_template` SET `AIName`="SmartAI", `DamageModifier`= 8 WHERE `entry`= @ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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 +(@ENTRY, 0, 0, 0, 0, 0, 100, 1, 4000, 5000, 0, 0, 11, 12023, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 4000 and 5000 ms (and later repeats every 0 and 0 ms) - Self: Cast spell 12023 on Victim // "); + +-- Creature Darkwood Broodmother 46507 SAI +SET @ENTRY := 46507; +UPDATE `creature_template` SET `AIName`="SmartAI", `DamageModifier`= 8 WHERE `entry`= @ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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 +(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 4000, 5000, 7000, 8000, 11, 79607, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 4000 and 5000 ms (and later repeats every 7000 and 8000 ms) - Self: Cast spell 79607 on Victim // "), +(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 10000, 11000, 0, 0, 11, 77517, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 10000 and 11000 ms (and later repeats every 0 and 0 ms) - Self: Cast spell 77517 on Victim // "), +(@ENTRY, 0, 2, 3, 2, 0, 100, 1, 0, 30, 0, 0, 11, 18501, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When health between 0% and 30% (check every 0 - 0 ms) - Self: Cast spell 18501 on Self // "), +(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, " Linked - Self: Talk 0 // "); + +-- Creature Overlook Spirit 47181 SAI +SET @ENTRY := 47181; +UPDATE `creature_template` SET `AIName`="SmartAI", `DamageModifier`= 8 WHERE `entry`= @ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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 +(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 0, 0, 3400, 3400, 11, 77721, 64, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 0 and 0 ms (and later repeats every 3400 and 3400 ms) - Self: Cast spell 77721 on Victim // "), +(@ENTRY, 0, 1, 0, 0, 0, 100, 0, 3000, 3000, 7000, 7000, 11, 31976, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 3000 and 3000 ms (and later repeats every 7000 and 7000 ms) - Self: Cast spell 31976 on Self // "); + +-- Creature Ghastly Worker 47183 SAI +SET @ENTRY := 47183; +UPDATE `creature_template` SET `AIName`="SmartAI", `DamageModifier`= 8, `flags_extra`= 2048 WHERE `entry`= @ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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 +(@ENTRY, 0, 0, 0, 0, 0, 100, 0, 5000, 6000, 8000, 9000, 11, 86085, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 5000 and 6000 ms (and later repeats every 8000 and 9000 ms) - Self: Cast spell 86085 on Victim // "); + +-- Rustberg Bandit 47627 +UPDATE `creature_template` SET `DamageModifier`= 8, `flags_extra`= 2048 WHERE `entry`= 47627; + +-- Creature Apprehensive Worker 47659 SAI +SET @ENTRY := 47659; +UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`= @ENTRY; +DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY 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 +(@ENTRY, 0, 0, 0, 0, 0, 100, 1, 100, 100, 0, 0, 11, 78894, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "When in combat and timer at the begining between 100 and 100 ms (and later repeats every 0 and 0 ms) - Self: Cast spell 78894 on Victim // "); + +DELETE FROM `creature_text` WHERE `CreatureID` IN (46507); +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `comment`) VALUES +(46507, 0, 0, '%s goes into a frenzy!', 16, 0, 100, 0, 0, 0, 1191, 'Darkwood Broodmother - Enrage');