From 9cbd67a3820d5aa24d234b0fbe8038ba906fc115 Mon Sep 17 00:00:00 2001 From: Efymer <79163132+Efymer@users.noreply.github.com> Date: Wed, 7 Jul 2021 17:52:10 +0200 Subject: [PATCH] fix(DB/smart_scripts): Add roleplay for the quest The Divination (#6714) --- .../rev_1625304053277095200.sql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1625304053277095200.sql diff --git a/data/sql/updates/pending_db_world/rev_1625304053277095200.sql b/data/sql/updates/pending_db_world/rev_1625304053277095200.sql new file mode 100644 index 000000000..3bbcdd3b7 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1625304053277095200.sql @@ -0,0 +1,24 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1625304053277095200'); + +-- Quest: The Divination (2992) +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 8022; + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 8022) AND (`source_type` = 0) AND (`id` IN (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 +(8022, 0, 0, 0, 19, 0, 100, 0, 2992, 0, 0, 0, 0, 80, 802200, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - On Quest \'The Divination\' Taken - Run Script'); + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 802200) AND (`source_type` = 9) AND (`id` IN (0, 1, 2, 3, 4, 5)); +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 +(802200, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 83, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - Actionlist - Remove Npc Flags Questgiver'), +(802200, 9, 1, 0, 0, 0, 100, 0, 1000, 1000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - Actionlist - Say Line 0'), +(802200, 9, 2, 0, 0, 0, 100, 0, 6000, 6000, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - Actionlist - Say Line 1'), +(802200, 9, 3, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 50, 144069, 10, 0, 0, 0, 0, 8, 0, 0, 0, 0, -10999, -3484.47, 103.122, 2.52228, 'Thadius Grimshade - Actionlist - Summon Gameobject \'Grimshade\'s Vision\''), +(802200, 9, 4, 0, 0, 0, 100, 0, 10000, 10000, 0, 0, 0, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - Actionlist - Say Line 2'), +(802200, 9, 5, 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, 82, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Thadius Grimshade - Actionlist - Add Npc Flags Questgiver'); + +DELETE FROM `creature_text` WHERE `CreatureID`=8022; +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(8022,0,0,"Make no sound during the ritual. One misstep could spell our doom...",12,0,100,0,0,0,4126,0,"Thadius Grimshade"), +(8022,1,0,"Now, watch...",12,0,100,0,0,0,4127,0,"Thadius Grimshade"), +(8022,2,0,"There. It is done.",12,0,100,0,0,0,4128,0,"Thadius Grimshade"); +