fix
-- Path of the Conqueror
-- Path of the Protector
-- Path of the Invoker
UPDATE quest_template_addon SET ExclusiveGroup=8747 WHERE Id IN(8747, 8752, 8757);
UPDATE quest_template_addon SET PrevQuestId=0, SpecialFlags=1 WHERE Id IN(8764, 8765, 8766);
DELETE FROM conditions WHERE SourceTypeOrReferenceId IN(19, 20) AND SourceEntry IN(8764, 8765, 8766);
INSERT INTO conditions VALUES(19, 0, 8764, 0, 0, 2, 0, 21200, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
INSERT INTO conditions VALUES(19, 0, 8765, 0, 0, 2, 0, 21210, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
INSERT INTO conditions VALUES(19, 0, 8766, 0, 0, 2, 0, 21205, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
INSERT INTO conditions VALUES(20, 0, 8764, 0, 0, 2, 0, 21200, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
INSERT INTO conditions VALUES(20, 0, 8765, 0, 0, 2, 0, 21210, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
INSERT INTO conditions VALUES(20, 0, 8766, 0, 0, 2, 0, 21205, 1, 0, 0, 0, 0, '', 'Requires Specific Ring to see quest');
DELETE FROM conditions WHERE SourceTypeOrReferenceId=15 AND SourceGroup=6539;
INSERT INTO conditions VALUES(15, 6539, 1, 0, 0, 14, 0, 8753, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 1, 0, 0, 8, 0, 8752, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 1, 0, 0, 2, 0, 21201, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 2, 0, 0, 14, 0, 8754, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 2, 0, 0, 8, 0, 8753, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 2, 0, 0, 2, 0, 21202, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 3, 0, 0, 14, 0, 8755, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 3, 0, 0, 8, 0, 8754, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 3, 0, 0, 2, 0, 21203, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 4, 0, 0, 14, 0, 8756, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 4, 0, 0, 8, 0, 8755, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 4, 0, 0, 2, 0, 21204, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 13, 0, 0, 8, 0, 8756, 0, 0, 0, 0, 0, '', 'Requires Path of the Conqueror quest');
INSERT INTO conditions VALUES(15, 6539, 13, 0, 0, 2, 0, 21205, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 5, 0, 0, 14, 0, 8758, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 5, 0, 0, 8, 0, 8757, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 5, 0, 0, 2, 0, 21206, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 6, 0, 0, 14, 0, 8759, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 6, 0, 0, 8, 0, 8758, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 6, 0, 0, 2, 0, 21207, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 7, 0, 0, 14, 0, 8760, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 7, 0, 0, 8, 0, 8759, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 7, 0, 0, 2, 0, 21208, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 8, 0, 0, 14, 0, 8761, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 8, 0, 0, 8, 0, 8760, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 8, 0, 0, 2, 0, 21209, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 14, 0, 0, 8, 0, 8761, 0, 0, 0, 0, 0, '', 'Requires Path of the Invoker quest');
INSERT INTO conditions VALUES(15, 6539, 14, 0, 0, 2, 0, 21210, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 9, 0, 0, 14, 0, 8748, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 9, 0, 0, 8, 0, 8747, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 9, 0, 0, 2, 0, 21196, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 10, 0, 0, 14, 0, 8749, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 10, 0, 0, 8, 0, 8748, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 10, 0, 0, 2, 0, 21197, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 11, 0, 0, 14, 0, 8750, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 11, 0, 0, 8, 0, 8749, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 11, 0, 0, 2, 0, 21198, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 12, 0, 0, 14, 0, 8751, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 12, 0, 0, 8, 0, 8750, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 12, 0, 0, 2, 0, 21199, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 15, 0, 0, 8, 0, 8751, 0, 0, 0, 0, 0, '', 'Requires Path of the Protector quest');
INSERT INTO conditions VALUES(15, 6539, 15, 0, 0, 2, 0, 21200, 1, 1, 1, 0, 0, '', 'Requires No Appropriate Item');
INSERT INTO conditions VALUES(15, 6539, 16, 0, 0, 8, 0, 8742, 0, 0, 0, 0, 0, '', 'Requires The Might of the Kalimdor rewarded');
UPDATE creature_template SET gossip_menu_id=6539, AIName="SmartAI" WHERE entry=15192;
DELETE FROM `gossip_menu_option` WHERE `menu_id`=6539;
INSERT INTO `gossip_menu_option` (`menu_id`, `id`, `option_icon`, `option_text`, `option_id`, `npc_option_npcflag`, `action_menu_id`, `action_poi_id`, `box_coded`, `box_money`, `box_text`) VALUES
(6539, 1, 0, 'I\'ve lost my Signet for Path of the Conqueror.', 1, 1, 0, 0, 0, 0, ''),
(6539, 2, 0, 'I\'ve lost my Signet for Path of the Conqueror.', 1, 1, 0, 0, 0, 0, ''),
(6539, 3, 0, 'I\'ve lost my Signet for Path of the Conqueror.', 1, 1, 0, 0, 0, 0, ''),
(6539, 4, 0, 'I\'ve lost my Signet for Path of the Conqueror.', 1, 1, 0, 0, 0, 0, ''),
(6539, 5, 0, 'I\'ve lost my Signet for Path of the Invoker.', 1, 1, 0, 0, 0, 0, ''),
(6539, 6, 0, 'I\'ve lost my Signet for Path of the Invoker.', 1, 1, 0, 0, 0, 0, ''),
(6539, 7, 0, 'I\'ve lost my Signet for Path of the Invoker.', 1, 1, 0, 0, 0, 0, ''),
(6539, 8, 0, 'I\'ve lost my Signet for Path of the Invoker.', 1, 1, 0, 0, 0, 0, ''),
(6539, 9, 0, 'I\'ve lost my Signet for Path of the Protector.', 1, 1, 0, 0, 0, 0, ''),
(6539, 10, 0, 'I\'ve lost my Signet for Path of the Protector.', 1, 1, 0, 0, 0, 0, ''),
(6539, 11, 0, 'I\'ve lost my Signet for Path of the Protector.', 1, 1, 0, 0, 0, 0, ''),
(6539, 12, 0, 'I\'ve lost my Signet for Path of the Protector.', 1, 1, 0, 0, 0, 0, ''),
(6539, 13, 0, 'I\'ve lost my Signet for Path of the Conqueror.', 1, 1, 0, 0, 0, 0, ''),
(6539, 14, 0, 'I\'ve lost my Signet for Path of the Invoker.', 1, 1, 0, 0, 0, 0, ''),
(6539, 15, 0, 'I\'ve lost my Signet for Path of the Protector.', 1, 1, 0, 0, 0, 0, ''),
(6539, 16, 0, 'I am ready, Anachronos. Please grant me the Scepter of the Shifting Sands.', 1, 1, 0, 0, 0, 0, '');
DELETE FROM smart_scripts WHERE entryorguid=15192 AND source_type=0;
INSERT INTO smart_scripts VALUES (15192, 0, 0, 15, 62, 0, 100, 0, 6539, 1, 0, 0, 56, 21201, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 1, 15, 62, 0, 100, 0, 6539, 2, 0, 0, 56, 21202, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 2, 15, 62, 0, 100, 0, 6539, 3, 0, 0, 56, 21203, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 3, 15, 62, 0, 100, 0, 6539, 4, 0, 0, 56, 21204, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 4, 15, 62, 0, 100, 0, 6539, 5, 0, 0, 56, 21206, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 5, 15, 62, 0, 100, 0, 6539, 6, 0, 0, 56, 21207, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 6, 15, 62, 0, 100, 0, 6539, 7, 0, 0, 56, 21208, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 7, 15, 62, 0, 100, 0, 6539, 8, 0, 0, 56, 21209, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 8, 15, 62, 0, 100, 0, 6539, 9, 0, 0, 56, 21196, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 9, 15, 62, 0, 100, 0, 6539, 10, 0, 0, 56, 21197, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 10, 15, 62, 0, 100, 0, 6539, 11, 0, 0, 56, 21198, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 11, 15, 62, 0, 100, 0, 6539, 12, 0, 0, 56, 21199, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 12, 15, 62, 0, 100, 0, 6539, 13, 0, 0, 56, 21205, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 13, 15, 62, 0, 100, 0, 6539, 14, 0, 0, 56, 21210, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 14, 15, 62, 0, 100, 0, 6539, 15, 0, 0, 56, 21200, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 15, 0, 61, 0, 100, 0, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip linked close gossip");
INSERT INTO smart_scripts VALUES (15192, 0, 16, 15, 62, 0, 100, 0, 6539, 16, 0, 0, 56, 21175, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "On gossip select add item");
INSERT INTO smart_scripts VALUES (15192, 0, 17, 18, 2, 0, 100, 1, 0, 20, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Anachronos - Between Health 0-20% - Talk");
INSERT INTO smart_scripts VALUES (15192, 0, 18, 0, 61, 0, 100, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Anachronos - Between Health 0-20% - Despawn");