From ee7d54b7c39ff6d3efc1ef58dca09593350775e8 Mon Sep 17 00:00:00 2001 From: "v.tihomirov" Date: Tue, 1 Jun 2021 15:31:52 +0300 Subject: [PATCH] fix(DB/smart_scripts): play small event on noble brew part 2 completion (#6038) --- .../rev_1621933074448445073.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1621933074448445073.sql diff --git a/data/sql/updates/pending_db_world/rev_1621933074448445073.sql b/data/sql/updates/pending_db_world/rev_1621933074448445073.sql new file mode 100644 index 000000000..15a544f75 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1621933074448445073.sql @@ -0,0 +1,17 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1621933074448445073'); + +-- Lord Baurles K. Wishock +SET @ENTRY := 1439; + +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = @ENTRY; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ENTRY); +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 +(@ENTRY, 0, 0, 1, 20, 0, 100, 0, 336, 0, 0, 0, 0, 5, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Quest \'A Noble Brew\' Finished - Play Emote 7'), +(@ENTRY, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 67, 1, 2000, 2000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Quest \'A Noble Brew\' Finished - Create Timed Event'), +(@ENTRY, 0, 2, 3, 59, 0, 100, 0, 1, 0, 0, 0, 0, 1, 0, 3000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Timed Event 1 Triggered - Say Line 0'), +(@ENTRY, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 17, 64, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Timed Event 1 Triggered - Set Emote State 64'), +(@ENTRY, 0, 4, 5, 52, 0, 100, 0, 0, @ENTRY, 0, 0, 0, 1, 1, 8000, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Text 0 Over - Say Line 1'), +(@ENTRY, 0, 5, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 67, 2, 5000, 5000, 0, 0, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Text 0 Over - Create Timed Event'), +(@ENTRY, 0, 6, 0, 59, 0, 100, 0, 2, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Timed Event 2 Triggered - Kill Self'), +(@ENTRY, 0, 7, 0, 11, 0, 100, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Lord Baurles K. Wishock - On Respawn - Set Emote State 0');