From 9036e3b98f569c673ed3a64e8cf4d04f0cdff3a0 Mon Sep 17 00:00:00 2001 From: Nefertumm Date: Sat, 29 Jan 2022 16:08:18 -0300 Subject: [PATCH] fix(DB/Gossips): Show the correct gossip for portal trainers (#10291) --- .../rev_1642779550112004300.sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1642779550112004300.sql diff --git a/data/sql/updates/pending_db_world/rev_1642779550112004300.sql b/data/sql/updates/pending_db_world/rev_1642779550112004300.sql new file mode 100644 index 000000000..a3336b5da --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1642779550112004300.sql @@ -0,0 +1,21 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1642779550112004300'); + +DELETE FROM `gossip_menu` WHERE `MenuID` in (4821, 4824, 4825, 4827) AND `TextID` in (5874, 5880, 5882, 5886); +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(4821, 5874), +(4824, 5880), +(4825, 5882), +(4827, 5886); + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 14 and `SourceGroup` in (4821, 4822, 4824, 4825, 4827) and `ConditionTypeOrReference` = 15 and `SourceEntry` in (5873, 5874, 5875, 5876, 5879, 5880, 5881, 5882, 5885, 5886); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, 4821, 5873, 0, 0, 15, 0, 128, 0, 0, 1, 0, 0, '', 'Portal Trainer - Show gossip menu if player is not a mage'), +(14, 4821, 5874, 0, 0, 15, 0, 128, 0, 0, 0, 0, 0, '', 'Portal Trainer - Show gossip menu if player is a mage'), +(14, 4822, 5875, 0, 0, 15, 0, 128, 0, 0, 1, 0, 0, '', 'Portal Trainer - Show gossip menu if player is not a mage'), +(14, 4822, 5876, 0, 0, 15, 0, 128, 0, 0, 0, 0, 0, '', 'Portal Trainer - Show gossip menu if player is a mage'), +(14, 4824, 5879, 0, 0, 15, 0, 128, 0, 0, 1, 0, 0, '', 'Portal Trainer - Show gossip menu if player is not a mage'), +(14, 4824, 5880, 0, 0, 15, 0, 128, 0, 0, 0, 0, 0, '', 'Portal Trainer - Show gossip menu if player is a mage'), +(14, 4825, 5881, 0, 0, 15, 0, 128, 0, 0, 0, 0, 0, '', 'Portal Trainer - Show gossip menu if player is a mage'), +(14, 4825, 5882, 0, 0, 15, 0, 128, 0, 0, 1, 0, 0, '', 'Portal Trainer - Show gossip menu if player is not a mage'), +(14, 4827, 5885, 0, 0, 15, 0, 128, 0, 0, 1, 0, 0, '', 'Portal Trainer - Show gossip menu if player is not a mage'), +(14, 4827, 5886, 0, 0, 15, 0, 128, 0, 0, 0, 0, 0, '', 'Portal Trainer - Show gossip menu if player is a mage');