From a9456f9123157f474e927bdfdfeb76cf9e870017 Mon Sep 17 00:00:00 2001 From: avarishd <46330494+avarishd@users.noreply.github.com> Date: Wed, 11 Oct 2023 02:24:49 +0300 Subject: [PATCH] fix(DB/Conditions): Mrs. Dalson's Diary gossip & Outhouse Key (#17469) * fix(DB/Conditions): Mrs. Dalson's Diary gossip & Outhouse Key * ocd flag --- .../updates/pending_db_world/rev_1696867624332424400.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1696867624332424400.sql diff --git a/data/sql/updates/pending_db_world/rev_1696867624332424400.sql b/data/sql/updates/pending_db_world/rev_1696867624332424400.sql new file mode 100644 index 000000000..c0252e11b --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1696867624332424400.sql @@ -0,0 +1,8 @@ +-- Mrs. Dalson's Diary +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 1) AND (`SourceGroup` = 10816) AND (`SourceEntry` = 12738); +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = 3001) AND (`SourceEntry` = 3694); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(1, 10816, 12738, 0, 0, 8, 0, 5058, 0, 0, 0, 0, 0, '', 'Drop Dalson Outhouse Key from Wandering Skeletons only if quest Mrs. Dalson\'s Diary has been rewarded.'), +(14, 3001, 3694, 0, 0, 8, 0, 5058, 0, 0, 0, 0, 0, '', 'Show Mrs. Dalson\'s Diary\'s gossip menu only if quest Mrs. Dalson\'s Diary has been rewarded.'); +-- Repeatable flag (also messes with condition quest_rewarded for some reason) +UPDATE `quest_template_addon` SET `SpecialFlags` = `SpecialFlags`&~1 WHERE (`ID` = 5058);