DB/Gossip: implement Troll-only gossip for NPC Paelarin

Closes #20826
This commit is contained in:
Wyreth
2017-11-08 23:41:35 +01:00
committed by Killyana
parent 0f0c91c327
commit 30c2a96f16

View File

@@ -0,0 +1,12 @@
--
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14, 15) AND `SourceGroup`=7311;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14, 7311, 8679, 0, 0, 16, 0, 128, 0, 0, 0, 0, 0, "", "Show gossip text 19894 if player is a Troll"),
(15, 7311, 0, 0, 0, 16, 0, 128, 0, 0, 1, 0, 0, "", "Show gossip option 0 if player is NOT a Troll");
DELETE FROM `npc_text` WHERE `ID`=8679;
INSERT INTO `npc_text` (`ID`, `text0_0`, `BroadcastTextID0`) VALUES
(8679, "Be gone filthy creature! Why anyone would tolerate your filth is beyond me.", 12789);
DELETE FROM `gossip_menu` WHERE `MenuID`=7311 AND `TextID`=8679;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES
(7311, 8679, 0);