From cf103be1464ad820c98ef7f6f2e051eab6a7a76a Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Sun, 9 Feb 2025 13:27:11 +0100 Subject: [PATCH] fix(DB/Conditions): Sunwell Gates progress gossip (#21344) Co-authored-by: sudlud Co-authored-by: Rocco Silipo <108557877+Rorschach91@users.noreply.github.com> --- .../rev_1738851147512788113.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1738851147512788113.sql diff --git a/data/sql/updates/pending_db_world/rev_1738851147512788113.sql b/data/sql/updates/pending_db_world/rev_1738851147512788113.sql new file mode 100644 index 000000000..ba66c28c0 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1738851147512788113.sql @@ -0,0 +1,18 @@ +-- +SET +@sunwellnone = 116, +@sunwellfirst = 117, +@sunwellsecond = 118, +@sunwellall = 119; + +-- Vindicator Moorba +-- move menuID entries and conditions from 51004 to 9293 `creature_template.gossip_menu_id` +UPDATE `gossip_menu` SET `MenuID` = 9293 WHERE `MenuID` = 51004 AND `TextID` IN (12602, 12603, 12605); +UPDATE `conditions` SET `SourceGroup` = 9293 WHERE `SourceGroup` = 51004 AND `SourceEntry` IN (12602, 12603, 12605) AND `ConditionTypeOrReference` = 12 AND `ConditionValue1` IN (@sunwellnone, @sunwellfirst, @sunwellsecond); + +DELETE FROM `conditions` WHERE `ConditionTypeOrReference` = 12 AND `ConditionValue1` IN (@sunwellall) AND `SourceGroup` IN (9307, 9293) AND `SourceEntry` IN (12623, 12604); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +-- Exarch Nasuun (Shattrath) +(14, 9307, 12623, 0, 0, 12, 0, @sunwellall, 0, 0, 0, 0, 0, '', 'Show gossip text if the event ''SWP - All Gates Open'' is active'), +-- Vindicator Moorba (SWP) +(14, 9293, 12604, 0, 0, 12, 0, @sunwellall, 0, 0, 0, 0, 0, '', 'Show gossip text if the event ''SWP - All Gates Open'' is active');