From b357e8e2c4a181c24a82ac1bf710afe027bc04f9 Mon Sep 17 00:00:00 2001 From: Gultask <100873791+Gultask@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:16:03 -0300 Subject: [PATCH] fix(DB/Creature): Add AI to Affray Challenger (#19298) Create rev_1720223739574037500.sql --- .../rev_1720223739574037500.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1720223739574037500.sql diff --git a/data/sql/updates/pending_db_world/rev_1720223739574037500.sql b/data/sql/updates/pending_db_world/rev_1720223739574037500.sql new file mode 100644 index 000000000..a253cc343 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1720223739574037500.sql @@ -0,0 +1,17 @@ +-- +DELETE FROM `creature_text` WHERE (`CreatureID` = 6240); +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(6240, 0, 0, '%s is demoralized and runs!', 16, 0, 100, 0, 0, 0, 2356, 0, 'Affray Challenger'); + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 6240; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 6240); +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`, `event_param6`, `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 +(6240, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Emote'), +(6240, 0, 2, 1, 8, 0, 100, 0, 1160, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 3, 1, 8, 0, 100, 0, 6190, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 4, 1, 8, 0, 100, 0, 11554, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 5, 1, 8, 0, 100, 0, 11555, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 6, 1, 8, 0, 100, 0, 11556, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 7, 1, 8, 0, 100, 0, 25202, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist'), +(6240, 0, 8, 1, 8, 0, 100, 0, 25203, 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Affray Challenger - On Spellhit \'Demoralizing Shout\' - Flee For Assist');