From 228fe7274b2ffff00fea14f223ba23de04e38225 Mon Sep 17 00:00:00 2001 From: The GhostRider Date: Wed, 30 Aug 2023 19:39:51 +0100 Subject: [PATCH] fix(DB/Conditions): quests 8353-8355-8356-8357-8311 (#17031) --- .../pending_db_world/rev_1692366711663255300.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1692366711663255300.sql diff --git a/data/sql/updates/pending_db_world/rev_1692366711663255300.sql b/data/sql/updates/pending_db_world/rev_1692366711663255300.sql new file mode 100644 index 000000000..435ebf168 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1692366711663255300.sql @@ -0,0 +1,10 @@ +-- Table Condition - Fix Quests - 8353 - 8355 - 8356 - 8357 - 8311 -- + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 19) AND (`SourceGroup` = 0) AND (`SourceEntry` IN (8353, 8355, 8356, 8357, 8311)) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 12) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = 12) AND (`ConditionValue2` = 0) AND (`ConditionValue3` = 0); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 19) AND (`SourceGroup` = 0) AND (`SourceEntry` IN (8353, 8355, 8356, 8357)) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 47) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = 8311) AND (`ConditionValue2` = 64) AND (`ConditionValue3` = 0); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(19, 0, 8356, 0, 0, 47, 0, 8311, 64, 0, 1, 0, 0, '', 'Prevents quest from being available after completing quest Hallows End Treats for Jespers'), +(19, 0, 8355, 0, 0, 47, 0, 8311, 64, 0, 1, 0, 0, '', 'Prevents quest from being available after completing quest Hallows End Treats for Jespers'), +(19, 0, 8353, 0, 0, 47, 0, 8311, 64, 0, 1, 0, 0, '', 'Prevents quest from being available after completing quest Hallows End Treats for Jespers'), +(19, 0, 8357, 0, 0, 47, 0, 8311, 64, 0, 1, 0, 0, '', 'Prevents quest from being available after completing quest Hallows End Treats for Jespers');