From 8b3f9106e553c3411f6b07faa604e131aa55106c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Costa?= <54484196+claudiodfc@users.noreply.github.com> Date: Thu, 6 Jan 2022 01:50:01 +0000 Subject: [PATCH] fix(DB): Nathanos quest requirements (#10014) * fix(DB): Nathanos quest requirements - Added quest requirements to his quests * always check your variables --- .../rev_1641335115392148600.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1641335115392148600.sql diff --git a/data/sql/updates/pending_db_world/rev_1641335115392148600.sql b/data/sql/updates/pending_db_world/rev_1641335115392148600.sql new file mode 100644 index 000000000..6c9558b2a --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1641335115392148600.sql @@ -0,0 +1,23 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641335115392148600'); + +SET @QUEST_BOLGORE = 6136; +SET @QUEST_DUSKWING = 6135; +SET @QUEST_CALL_TO_COMMAND = 14349; +SET @QUEST_DEPRECATED_1 = 6144; +SET @QUEST_DEPRECATED_2 = 6145; + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 19) AND (`SourceGroup` = 0) AND (`SourceEntry` IN (@QUEST_BOLGORE, @QUEST_DUSKWING, @QUEST_CALL_TO_COMMAND)); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(19, 0, @QUEST_BOLGORE, 0, 0, 47, 0, 6022, 64, 0, 0, 0, 0, '', 'Display \'The Corpulent One\' if \'To Kill With Purpose\' is rewarded'), +(19, 0, @QUEST_BOLGORE, 0, 0, 47, 0, 6042, 64, 0, 0, 0, 0, '', 'Display \'The Corpulent One\' if \'Un-Life\'s Little Annoyances\' is rewarded'), +(19, 0, @QUEST_BOLGORE, 0, 0, 47, 0, 6133, 64, 0, 0, 0, 0, '', 'Display \'The Corpulent One\' if \'The Ranger Lord\'s Behest\' is rewarded'), +(19, 0, @QUEST_DUSKWING, 0, 0, 47, 0, 6022, 64, 0, 0, 0, 0, '', 'Display \'Duskwing, Oh How I Hate Thee...\' if \'To Kill With Purpose\' is rewarded'), +(19, 0, @QUEST_DUSKWING, 0, 0, 47, 0, 6042, 64, 0, 0, 0, 0, '', 'Display \'Duskwing, Oh How I Hate Thee...\' if \'Un-Life\'s Little Annoyances\' is rewarded'), +(19, 0, @QUEST_DUSKWING, 0, 0, 47, 0, 6133, 64, 0, 0, 0, 0, '', 'Display \'Duskwing, Oh How I Hate Thee...\' if \'The Ranger Lord\'s Behest\' is rewarded'), +(19, 0, @QUEST_CALL_TO_COMMAND, 0, 0, 47, 0, @QUEST_DUSKWING, 64, 0, 0, 0, 0, '', 'Display \'Call to Command\' if \'Duskwing, Oh How I Hate Thee...\' is rewarded'), +(19, 0, @QUEST_CALL_TO_COMMAND, 0, 0, 47, 0, @QUEST_BOLGORE, 64, 0, 0, 0, 0, '', 'Display \'Call to Command\' if \'The Corpulent One\' is rewarded'); + +DELETE FROM `disables` WHERE `entry` IN (@QUEST_DEPRECATED_1, @QUEST_DEPRECATED_2) AND `sourceType` = 1; +INSERT INTO `disables` (`sourceType`, `entry`, `comment`) VALUES +(1, @QUEST_DEPRECATED_1, 'Disable Quest The Call to Command'), +(1, @QUEST_DEPRECATED_2, 'Disable Quest The Crimson Courier');