fix(DB/Gossips): Earthcaller gossips (#11792)

- created missing gossip menus for npc and changed his flags to allow
  gossips.
- Conditions for when player has either bindings or is on quest 7786
This commit is contained in:
Hanabi
2022-05-17 19:45:13 +01:00
committed by GitHub
parent 7870f3d1b3
commit 5dea6b6d1c

View File

@@ -0,0 +1,19 @@
-- Gossips where already on the database, just not linked to each other
DELETE FROM `gossip_menu` WHERE `MenuID` IN (5812, 5813, 5814, 5815, 5816);
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(5812, 6985),
(5813, 6986),
(5814, 6987),
(5815, 6988),
(5816, 6989);
-- Conditions to display the first gossip menu option
DELETE FROM `conditions` WHERE (`SourceTypeOrReferenceId` = 15) AND (`SourceGroup` = 5812) AND (`SourceEntry` = 0) AND (`SourceId` = 0) AND (`ConditionTypeOrReference` IN (2, 47));
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 5812, 0, 0, 5, 2, 0, 18563, 1, 0, 0, 0, 0, '', 'If player has \'Bindings of the Windseeker\' Left half in inventory'),
(15, 5812, 0, 0, 4, 2, 0, 18563, 1, 1, 0, 0, 0, '', 'If player has \'Bindings of the Windseeker\' Left half in bank'),
(15, 5812, 0, 0, 2, 2, 0, 18563, 1, 0, 0, 0, 0, '', 'If player has \'Bindings of the Windseeker\' Left half in inventory'),
(15, 5812, 0, 0, 3, 2, 0, 18564, 1, 1, 0, 0, 0, '', 'If player has \'Bindings of the Windseeker\' Left half in bank'),
(15, 5812, 0, 0, 1, 47, 0, 7786, 74, 0, 0, 0, 0, '', 'If player has quest \'Thunderaan the Windseeker\'');
UPDATE `creature_template` SET `gossip_menu_id` = 5812, `npcflag` = 3 WHERE (`entry` = 14348);