diff --git a/data/sql/updates/pending_db_world/rev_1623924645868172900.sql b/data/sql/updates/pending_db_world/rev_1623924645868172900.sql new file mode 100644 index 000000000..2d3aaed78 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1623924645868172900.sql @@ -0,0 +1,18 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1623924645868172900'); + +SET @GOSSIP_MENU = 6573; +SET @TEXT_QUEST_INCOMPLETE = 7788; +SET @TEXT_QUEST_COMPLETE = 7821; +SET @QUEST_COMPLETING_THE_DELIVERY = 8350; + +DELETE FROM `gossip_menu` WHERE (`MenuID` = @GOSSIP_MENU) AND (`TextID` IN (@TEXT_QUEST_INCOMPLETE)); +INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES +(@GOSSIP_MENU, @TEXT_QUEST_INCOMPLETE); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = @GOSSIP_MENU) AND (`SourceEntry` = @TEXT_QUEST_INCOMPLETE) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 8) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = @QUEST_COMPLETING_THE_DELIVERY) AND (`ConditionValue2` = 0) AND (`ConditionValue3` = 0); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, @GOSSIP_MENU, @TEXT_QUEST_INCOMPLETE, 0, 0, 8, 0, @QUEST_COMPLETING_THE_DELIVERY, 0, 0, 1, 0, 0, '', 'Display npc text on gossip menu if quest \'Completing the delivery\' is incomplete'); + +DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = @GOSSIP_MENU) AND (`SourceEntry` = @TEXT_QUEST_COMPLETE) AND (`SourceId` = 0) AND (`ElseGroup` = 0) AND (`ConditionTypeOrReference` = 8) AND (`ConditionTarget` = 0) AND (`ConditionValue1` = @QUEST_COMPLETING_THE_DELIVERY) AND (`ConditionValue2` = 0) AND (`ConditionValue3` = 0); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(14, @GOSSIP_MENU, @TEXT_QUEST_COMPLETE, 0, 0, 8, 0, @QUEST_COMPLETING_THE_DELIVERY, 0, 0, 0, 0, 0, '', 'Display this gossip menu text when quest \'Completing the delivery\' was rewarded.');