summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsogladev <sogladev@gmail.com>2025-09-20 19:36:11 +0200
committerGitHub <noreply@github.com>2025-09-20 14:36:11 -0300
commit1bda2ea84651a499f7dce79eef03b0e0c752427f (patch)
tree21d4aecc7d2e36dec827baaf01254ab20f6d41ff
parentf884f6489611b99d9747db3507040c9cad5696c0 (diff)
fix(DB/SAI): add AI to some Northrend creatures (#22987)
Co-authored-by: CraftedRO <CraftedRO@users.noreply.github.com> cherry-picked from: https://github.com/TrinityCore/TrinityCore/commit/81a32f89f6a3c07352d228b4651aba7aa6e344cb
-rw-r--r--data/sql/updates/pending_db_world/rev_1758378870340447581.sql25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/sql/updates/pending_db_world/rev_1758378870340447581.sql b/data/sql/updates/pending_db_world/rev_1758378870340447581.sql
new file mode 100644
index 0000000000..47d86d4462
--- /dev/null
+++ b/data/sql/updates/pending_db_world/rev_1758378870340447581.sql
@@ -0,0 +1,25 @@
+--
+-- Frostbrood Spawn
+DELETE FROM `smart_scripts` WHERE `entryorguid` = 31702 AND `source_type` = 0 AND `id` = 7;
+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
+(31702, 0, 7, 0, 0, 0, 100, 0, 0, 5000, 5000, 15000, 11, 60667, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, "Frostbrood Spawn - In Combat - Cast 'Frost Breath'");
+
+-- Savage Proto-Drake
+UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 31265;
+DELETE FROM `smart_scripts` WHERE `entryorguid` = 31265 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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(31265, 0, 0, 0, 0, 0, 100, 0, 5000, 10000, 10000, 15000, 0, 11, 51219, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Savage Proto-Drake - In Combat - Cast 'Flame Breath'"),
+(31265, 0, 1, 0, 0, 0, 100, 0, 10000, 15000, 15000, 25000, 0, 11, 41572, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, "Savage Proto-Drake - In Combat - Cast 'Wing Buffet'");
+
+-- Skoll
+UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 35189;
+DELETE FROM `smart_scripts` WHERE `entryorguid` = 35189 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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(35189, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 12000, 15000, 0, 11, 61184, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Skoll - In Combat - Cast 'Pounce'"),
+(35189, 0, 1, 0, 0, 0, 100, 0, 5000, 9000, 8000, 13000, 0, 11, 61186, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Skoll - In Combat - Cast 'Frozen Bite'");
+
+-- Loque'nahak
+DELETE FROM `smart_scripts` WHERE `entryorguid` = 32517 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`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(32517, 0, 0, 0, 0, 0, 100, 0, 3000, 7000, 12000, 15000, 0, 11, 61184, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Loque'nahak - In Combat - Cast 'Pounce'"),
+(32517, 0, 1, 0, 0, 0, 100, 0, 5000, 9000, 8000, 13000, 0, 11, 61186, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, "Loque'nahak - In Combat - Cast 'Frozen Bite'");