From 7d5c222314133bf15be8e0eef42b3aa1f14c3be6 Mon Sep 17 00:00:00 2001 From: sudlud Date: Mon, 4 Mar 2024 21:03:30 +0100 Subject: [PATCH] Fix(DB/SAI) update quest 6002 poi and text (#18465) * Fix(DB/SAI) update quest 6002 Co-authored-by: pedrohfm9 <122452427+Dr-Arayashiki@users.noreply.github.com> * update quest flag according to sniff - thanks bench! --------- Co-authored-by: pedrohfm9 <122452427+Dr-Arayashiki@users.noreply.github.com> --- .../rev_1709299008995982200.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1709299008995982200.sql diff --git a/data/sql/updates/pending_db_world/rev_1709299008995982200.sql b/data/sql/updates/pending_db_world/rev_1709299008995982200.sql new file mode 100644 index 000000000..b343e05e4 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1709299008995982200.sql @@ -0,0 +1,23 @@ +-- Update Quest 6002 +-- Update SAI NPC Lunaclaw +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 12138) AND (`source_type` = 0) AND (`id` IN (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`, `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 +(12138, 0, 5, 0, 101, 0, 100, 0, 1, 10, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 10, 0, 0, 0, 0, 0, 0, 0, 'Lunaclaw - On Respawn - Attack Start Player'); + +-- Update Quest Flag +UPDATE `quest_template` SET `Flags` = 2 WHERE (`ID` = 6002); + +-- Update Quest Request itens +DELETE FROM `quest_request_items` WHERE (`ID` = 6002); +INSERT INTO `quest_request_items` (`ID`, `EmoteOnComplete`, `EmoteOnIncomplete`, `CompletionText`, `VerifiedBuild`) VALUES +(6002, 1, 0, 'When you have faced the challenge that lies before you, your understanding of strength of body and strength of heart will be fully realized. Until that time, I cannot help you further.', 52237); + +-- Update POi +UPDATE `quest_poi` SET `WorldMapAreaId` = 1639 WHERE (`QuestID` = 6002) AND (`id` = 0); +UPDATE `quest_poi` SET `WorldMapAreaId` = 1156 WHERE (`QuestID` = 6002) AND (`id` = 1); + +-- Update Poi Points OK +DELETE FROM `quest_poi_points` WHERE `QuestID` = 6002; +INSERT INTO `quest_poi_points` (`QuestID`, `Idx1`, `Idx2`, `X`, `Y`, `VerifiedBuild`) VALUES +(6002, 0, 0, -1039, -282, 52237), +(6002, 1, 0, -2446, -1646, 52237);