From c028d074846163f01778b5a600367c7f0dec7b16 Mon Sep 17 00:00:00 2001 From: avarishd <46330494+avarishd@users.noreply.github.com> Date: Tue, 4 Apr 2023 06:19:54 +0300 Subject: [PATCH] fix(DB/Conditions): Jesse Masters selling items without quest completion (#15777) * fix(DB/Conditions): Jesse Masters selling items without quest completion. * require only 12212 to show gossip * comment --- .../pending_db_world/rev_1680412607015816900.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1680412607015816900.sql diff --git a/data/sql/updates/pending_db_world/rev_1680412607015816900.sql b/data/sql/updates/pending_db_world/rev_1680412607015816900.sql new file mode 100644 index 000000000..24fbd14f2 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1680412607015816900.sql @@ -0,0 +1,12 @@ +-- Jesse Masters +DELETE FROM `gossip_menu` WHERE `MenuID` = 9798 AND `TextID` = 13502; +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(9798, 13502); + +DELETE FROM `conditions` WHERE `SourceGroup` = 9798 AND `SourceTypeOrReferenceId` IN (14,15); +DELETE FROM `conditions` WHERE `SourceGroup` = 29244 AND `SourceTypeOrReferenceId` = 23; + +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, 9798, 13503, 0, 0, 8, 0, 12212, 0, 0, 0, 0, 0, '', 'Jesse Masters - Show gossip menu 9798 VENDOR only if quest 12212 have been rewarded.'), +(15, 9798, 0, 0, 0, 8, 0, 12212, 0, 0, 0, 0, 0, '', 'Jesse Masters - Show gossip menu 9798 option VENDOR only if quest 12212 have been rewarded.'), +(23, 29244, 40202, 0, 0, 8, 0, 12216, 0, 0, 0, 0, 0, '', 'Jesse Masters - Sell Sizzling Grizzly Flank only if quest 12216 has been rewarded.');