From fda8b723de4daf35893c02a86ace62e8452928b6 Mon Sep 17 00:00:00 2001 From: ZhengPeiRu21 <98835050+ZhengPeiRu21@users.noreply.github.com> Date: Sun, 6 Mar 2022 10:18:58 -0700 Subject: [PATCH] fix(DB): Odesyus' Landing Gossip Conditions (#10803) --- .../rev_1645633842238335100.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1645633842238335100.sql diff --git a/data/sql/updates/pending_db_world/rev_1645633842238335100.sql b/data/sql/updates/pending_db_world/rev_1645633842238335100.sql new file mode 100644 index 000000000..e2b5e6b2e --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1645633842238335100.sql @@ -0,0 +1,27 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1645633842238335100'); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup` IN (7389, 7398, 7400); +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=7399 AND `SourceEntry` IN (8865, 8892); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, 7398, 8862, 0, 0, 8, 0, 9506, 0, 0, 0, 0, 0, "", "Show gossip text 8862 if quest A Small Start is rewarded"), +(14, 7398, 8862, 0, 0, 8, 0, 9537, 0, 0, 1, 0, 0, "", "Show gossip text 8862 if quest Show Gnomercy is not rewarded"), +(14, 7398, 8862, 0, 0, 16, 0, 1024, 0, 0, 0, 0, 0, "", "Show gossip text 8862 if player is Draenei"), +(14, 7398, 8863, 0, 0, 8, 0, 9506, 0, 0, 0, 0, 0, "", "Show gossip text 8862 if quest A Small Start is rewarded"), +(14, 7398, 8863, 0, 0, 8, 0, 9537, 0, 0, 1, 0, 0, "", "Show gossip text 8862 if quest Show Gnomercy is not rewarded"), +(14, 7398, 8863, 0, 0, 16, 0, 1024, 0, 0, 1, 0, 0, "", "Show gossip text 8862 if player is not Draenei"), +(14, 7398, 8893, 0, 0, 8, 0, 9537, 0, 0, 0, 0, 0, "", "Show gossip text 8893 if quest Show Gnomercy is rewarded"), +(14, 7399, 8865, 0, 0, 8, 0, 9506, 0, 0, 0, 0, 0, "", "Show gossip text 8865 if quest A Small Start is rewarded"), +(14, 7399, 8865, 0, 0, 8, 0, 9537, 0, 0, 1, 0, 0, "", "Show gossip text 8865 if quest Show Gnomercy is not rewarded"), +(14, 7399, 8892, 0, 0, 8, 0, 9537, 0, 0, 0, 0, 0, "", "Show gossip text 8892 if quest Show Gnomercy is rewarded"), +(14, 7400, 8868, 0, 0, 8, 0, 9506, 0, 0, 0, 0, 0, "", "Show gossip text 8868 if quest A Small Start is rewarded"), +(14, 7400, 8868, 0, 0, 8, 0, 9537, 0, 0, 1, 0, 0, "", "Show gossip text 8868 if quest Show Gnomercy is not rewarded"), +(14, 7400, 8892, 0, 0, 8, 0, 9537, 0, 0, 0, 0, 0, "", "Show gossip text 8892 if quest Show Gnomercy is rewarded"), +(14, 7389, 8893, 0, 0, 8, 0, 9537, 0, 0, 0, 0, 0, "", "Show gossip text 8893 if quest Show Gnomercy is rewarded"); + +DELETE FROM `gossip_menu` WHERE `MenuID` IN (7389, 7398, 7399, 7400) AND `TextID` IN (8863, 8892, 8893); +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(7389, 8893), +(7398, 8863), +(7398, 8893), +(7399, 8892), +(7400, 8892);