From d83c5c7adad82bb6a76e63129b37f277b5332db7 Mon Sep 17 00:00:00 2001 From: rorshan <60732320+rorshan@users.noreply.github.com> Date: Fri, 26 Jun 2026 07:21:41 +0200 Subject: [PATCH] fix(DB/Quests): Fix Sleeping Giants quest requirements (#24070) Co-authored-by: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com> Co-authored-by: sudlud Co-authored-by: Claude Opus 4.8 (1M context) --- .../rev_1765118365334046500.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1765118365334046500.sql diff --git a/data/sql/updates/pending_db_world/rev_1765118365334046500.sql b/data/sql/updates/pending_db_world/rev_1765118365334046500.sql new file mode 100644 index 0000000000..373a8113d6 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1765118365334046500.sql @@ -0,0 +1,23 @@ +-- PrevQuestID 11239 to 11231, make Of Keys and Cages the prerequisite, not In Service to the Light +UPDATE `quest_template_addon` SET `PrevQuestID` = 11231 WHERE (`ID` = 11432); + +-- Add Mage-Lieutenant Malister's text +DELETE FROM `creature_text` WHERE (`CreatureID` = 23888) AND (`GroupID` = 0) AND (`ID` = 0); +INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES +(23888, 0, 0, '$n, I would have words with you.', 15, 0, 100, 0, 0, 0, 23634, 0, 'Mage-Lieutenant Malister - Quest 11231'); + +-- Father Levariol - Store player who completes Of Keys and Cages and send to Mage-Lieutenant Malister +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 24038; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 24038); +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 +(24038, 0, 1, 2, 20, 0, 100, 0, 11231, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Father Levariol - Store player who completes Of Keys and Cages - Quest 11231'), +(24038, 0, 2, 3, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 0, 19, 23888, 0, 0, 0, 0, 0, 0, 0, 'Father Levariol - Send stored target to Mage-Lieutenant Malister - Quest 11231'), +(24038, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 0, 19, 23888, 0, 0, 0, 0, 0, 0, 0, 'Father Levariol - DO_ACTION to Mage-Lieutenant Malister - Quest 11231'); + +-- Mage-Lieutenant Malister - On SET_DATA, whisper to stored target +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 23888; + +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 23888) 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`, `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 +(23888, 0, 0, 0, 72, 0, 100, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 'Mage-Lieutenant Malister - On ACTION_DONE whisper to stored target - Quest 11231');