fix(DB/Conditions): Fix Paelarin race conditions (#17501)

This commit is contained in:
avarishd
2023-10-15 15:55:19 +03:00
committed by GitHub
parent 608f1c92fa
commit 314cabd667

View File

@@ -0,0 +1,10 @@
-- Paelarin
DELETE FROM `gossip_menu` WHERE (`MenuID` = 7311) AND (`TextID` IN (8679));
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(7311, 8679);
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` = 7311) AND (`SourceEntry` = 0);
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 14) AND (`SourceGroup` = 7311) AND (`SourceEntry` = 8679);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 7311, 0, 0, 0, 16, 0, 128, 0, 0, 1, 0, 0, '', 'Show gossip menu 7311 option 0 only if player is not a troll.'),
(14, 7311, 8679, 0, 0, 16, 0, 128, 0, 0, 0, 0, 0, '', 'Show gossip menu 7311, npc text 8679 only if player race is a troll.');