From a02b9ef7eb82b7063d05c5f8a9c22a8425af43f4 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Fri, 17 Sep 2021 13:42:31 +0200 Subject: [PATCH] fix(DB/Quest): Deliver the Plans to An'telas (#7848) --- .../rev_1631541374686335522.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1631541374686335522.sql diff --git a/data/sql/updates/pending_db_world/rev_1631541374686335522.sql b/data/sql/updates/pending_db_world/rev_1631541374686335522.sql new file mode 100644 index 000000000..1a3bfb5a4 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1631541374686335522.sql @@ -0,0 +1,20 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1631541374686335522'); + +-- Inserting lines for Magister Sylastor +DELETE FROM `creature_text` WHERE `CreatureID` = 16237; +INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`COMMENT`) VALUES +(16237,0,0,'Look out... the night elves are back!',12,0,100,0,0,0,12115,0,'Quest Deliver the Plans to An''telas completion'); + +-- Inserting the 2 Night Elf Ambusher to the summon group table +DELETE FROM `creature_summon_groups` WHERE `summonerId` = 16237; +INSERT INTO `creature_summon_groups` (`summonerId`, `summonerType`, `groupId`, `entry`, `position_x`, `position_y`, `position_z`, `orientation`, `summonType`, `summonTime`) VALUES +(16237, 0, 0, 16238, 7448.06, -7268.192, 97.59, 6.14, 4, 60), +(16237, 0, 0, 16238, 7451.11, -7279.82, 95.58, 0.13, 4, 60); + +-- Inserting script +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 16237; +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 16237) AND (`source_type` = 0) AND (`id` IN (0, 1)); +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 +(16237, 0, 0, 0, 20, 0, 100, 0, 9166, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Magister Sylastor - On Quest \'Deliver the Plans to An\'telas\' Finished - Say Line 0'), +(16237, 0, 1, 0, 20, 0, 100, 0, 9166, 0, 0, 0, 0, 107, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Magister Sylastor - On Quest \'Deliver the Plans to An\'telas\' Finished - Summon 2 Night Elf Ambusher'); +