Fix several SQL issues and update scripts for some of Vanilla progression

This commit is contained in:
郑佩茹
2022-04-07 14:05:33 -06:00
parent 8a1929c7bc
commit 62da879808
13 changed files with 1347 additions and 469 deletions

View File

@@ -27,6 +27,7 @@ INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `position_x`, `posit
DELETE FROM `reference_loot_template` WHERE `Entry` = 60000;
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(60000, 17111, 0, 0, 0, 1, 1, 1, 1, NULL),
(60000, 17112, 0, 0, 0, 1, 1, 1, 1, NULL),
(60000, 17113, 0, 0, 0, 1, 1, 1, 1, NULL),
(60000, 18204, 0, 0, 0, 1, 1, 1, 1, NULL),
(60000, 18543, 0, 0, 0, 1, 1, 1, 1, NULL),
@@ -40,4 +41,4 @@ DELETE FROM `creature_loot_template` WHERE `Entry` = 12397 AND `Reference` = 600
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(12397, 1, 60000, 100, 0, 1, 1, 2, 2, NULL);
DELETE FROM `creature_loot_template` WHERE `Entry` = 12397 AND `Item` IN (19133, 19134, 19135, 18546, 18544, 18543, 18204, 17113, 17112, 17111);
DELETE FROM `creature_loot_template` WHERE `Entry` = 12397 AND `Item` IN (19133, 19134, 19135, 18546, 18544, 18543, 18204, 17113, 17112, 17111);

View File

@@ -0,0 +1,285 @@
-- Nefarian
DELETE FROM `creature_loot_template` WHERE `Entry` = 11583;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(11583, 19002, 0, 100.0, 0, 1, 0, 1, 1),
(11583, 19003, 0, 100.0, 0, 1, 0, 1, 1),
(11583, 21138, 0, 100.0, 1, 1, 0, 1, 1),
(11583, 21142, 0, 100.0, 1, 1, 0, 1, 1),
(11583, 30044, 30044, 0.05, 0, 1, 0, 1, 1),
(11583, 30089, 30089, 1.0, 0, 1, 5, 1, 1),
(11583, 30105, 30105, 0.05, 0, 1, 0, 1, 1),
(11583, 30171, 30171, 0.05, 0, 1, 0, 1, 1),
(11583, 30172, 30172, 100.0, 0, 1, 0, 1, 1),
(11583, 30173, 30173, 100.0, 0, 1, 0, 1, 1),
(11583, 30330, 30330, 0.05, 0, 1, 0, 1, 1),
(11583, 30486, 30486, 100.0, 0, 1, 0, 1, 2),
(11583, 30487, 30487, 100.0, 0, 1, 0, 1, 1),
(11583, 30551, 30551, 100.0, 0, 1, 0, 1, 1);
DELETE FROM `reference_loot_template` WHERE `Entry` IN (34009, 30105, 30044, 30089, 30172, 30173, 30330, 30486, 30487, 30551, 30171);
INSERT INTO `reference_loot_template`(`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(30044, 2564, 0, 0.0, 0, 1, 1, 1,1),
(30044, 7734, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13009, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13030, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13046, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13065, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13066, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13085, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13125, 0, 0.0, 0, 1, 1, 1,1),
(30044, 13139, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10135, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10143, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10151, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10157, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10158, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10246, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10252, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10254, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10262, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10264, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10266, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10271, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10273, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10367, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10384, 0, 0.0, 0, 1, 1, 1,1),
(30089, 10389, 0, 0.0, 0, 1, 1, 1,1),
(30089, 11980, 0, 0.0, 0, 1, 1, 1,1),
(30089, 12017, 0, 0.0, 0, 1, 1, 1,1),
(30089, 12048, 0, 0.0, 0, 1, 1, 1,1),
(30089, 12058, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14328, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14332, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14336, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14456, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14464, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14680, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14811, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14812, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14975, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14979, 0, 0.0, 0, 1, 1, 1,1),
(30089, 14982, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15221, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15240, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15247, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15258, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15283, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15289, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15439, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15442, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15680, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15684, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15687, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15941, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15942, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15968, 0, 0.0, 0, 1, 1, 1,1),
(30089, 15989, 0, 0.0, 0, 1, 1, 1,1),
(30171, 1203, 0, 0.0, 0, 1, 1, 1,1),
(30171, 1973, 0, 0.0, 0, 1, 1, 1,1),
(30171, 2564, 0, 0.0, 0, 1, 1, 1,1),
(30171, 4696, 0, 0.0, 0, 1, 1, 1,1),
(30171, 5266, 0, 0.0, 0, 1, 1, 1,1),
(30171, 5267, 0, 0.0, 0, 1, 1, 1,1),
(30171, 6622, 0, 0.0, 0, 1, 1, 1,1),
(30171, 7734, 0, 0.0, 0, 1, 1, 1,1),
(30171, 7976, 0, 0.0, 0, 1, 1, 1,1),
(30171, 7991, 0, 0.0, 0, 1, 1, 1,1),
(30171, 8028, 0, 0.0, 0, 1, 1, 1,1),
(30171, 9402, 0, 0.0, 0, 1, 1, 1,1),
(30171, 10605, 0, 0.0, 0, 1, 1, 1,1),
(30171, 10608, 0, 0.0, 0, 1, 1, 1,1),
(30171, 11302, 0, 0.0, 0, 1, 1, 1,1),
(30171, 12698, 0, 0.0, 0, 1, 1, 1,1),
(30171, 12711, 0, 0.0, 0, 1, 1, 1,1),
(30171, 12717, 0, 0.0, 0, 1, 1, 1,1),
(30171, 12720, 0, 0.0, 0, 1, 1, 1,1),
(30171, 12728, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13000, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13001, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13002, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13003, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13004, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13006, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13007, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13008, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13009, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13013, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13015, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13030, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13036, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13040, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13047, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13053, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13060, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13066, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13067, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13070, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13072, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13073, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13075, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13077, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13083, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13085, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13091, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13096, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13107, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13111, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13113, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13116, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13118, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13120, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13123, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13125, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13126, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13130, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13133, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13135, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13144, 0, 0.0, 0, 1, 1, 1,1),
(30171, 13146, 0, 0.0, 0, 1, 1, 1,1),
(30171, 14501, 0, 0.0, 0, 1, 1, 1,1),
(30171, 14509, 0, 0.0, 0, 1, 1, 1,1),
(30171, 14511, 0, 0.0, 0, 1, 1, 1,1),
(30171, 17413, 0, 0.0, 0, 1, 1, 1,1),
(30171, 17414, 0, 0.0, 0, 1, 1, 1,1),
(30171, 17682, 0, 0.0, 0, 1, 1, 1,1),
(30171, 17683, 0, 0.0, 0, 1, 1, 1,1),
(30171, 18600, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22388, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22389, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22390, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22393, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22890, 0, 0.0, 0, 1, 1, 1,1),
(30171, 22891, 0, 0.0, 0, 1, 1, 1,1),
(30172, 9297, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10246, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10247, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10248, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10249, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10250, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10251, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10252, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10253, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10254, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10255, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10256, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10257, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10258, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10259, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10260, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10261, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10262, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10263, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10264, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10265, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10266, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10267, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10268, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10269, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10270, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10272, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10273, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10274, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10367, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10384, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10385, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10386, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10387, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10388, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10389, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10390, 0, 0.0, 0, 1, 1, 1,1),
(30172, 10391, 0, 0.0, 0, 1, 1, 1,1),
(30172, 11224, 0, 0.0, 0, 1, 1, 1,1),
(30172, 11226, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12017, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12048, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12682, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12683, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12684, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12685, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12689, 0, 0.0, 0, 1, 1, 1,1),
(30172, 12702, 0, 0.0, 0, 1, 1, 1,1),
(30172, 13486, 0, 0.0, 0, 1, 1, 1,1),
(30172, 13487, 0, 0.0, 0, 1, 1, 1,1),
(30172, 13488, 0, 0.0, 0, 1, 1, 1,1),
(30172, 13489, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14328, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14329, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14330, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14331, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14332, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14333, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14334, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14335, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14336, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14337, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14975, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14976, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14977, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14978, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14979, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14980, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14981, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14982, 0, 0.0, 0, 1, 1, 1,1),
(30172, 14983, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15221, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15229, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15240, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15247, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15258, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15267, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15273, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15278, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15283, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15289, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15325, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15434, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15435, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15436, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15437, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15438, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15439, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15440, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15441, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15442, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15678, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15679, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15680, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15681, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15682, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15683, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15684, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15685, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15686, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15687, 0, 0.0, 0, 1, 1, 1,1),
(30172, 15942, 0, 0.0, 0, 1, 1, 1,1),
(30172, 16044, 0, 0.0, 0, 1, 1, 1,1),
(30172, 16055, 0, 0.0, 0, 1, 1, 1,1),
(30172, 16253, 0, 0.0, 0, 1, 1, 1,1),
(30173, 17962, 0, 0.0, 0, 1, 1, 1,1),
(30173, 17963, 0, 0.0, 0, 1, 1, 1,1),
(30173, 17964, 0, 0.0, 0, 1, 1, 1,1),
(30173, 17965, 0, 0.0, 0, 1, 1, 1,1),
(30173, 17969, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16897, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16905, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16916, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16923, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16931, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16942, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16950, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16958, 0, 0.0, 0, 1, 1, 1,1),
(30486, 16966, 0, 0.0, 0, 1, 1, 1,1),
(30487, 19360, 0, 10.0,0, 1, 1, 1,1),
(30487, 19363, 0, 10.0,0, 1, 1, 1,1),
(30487, 19375, 0, 0.0, 0, 1, 1, 1,1),
(30487, 19376, 0, 0.0, 0, 1, 1, 1,1),
(30487, 19377, 0, 0.0, 0, 1, 1, 1,1),
(30487, 19378, 0, 0.0, 0, 1, 1, 1,1),
(30551, 19356, 0, 10.0,0, 1, 1, 1,1),
(30551, 19364, 0, 10.0,0, 1, 1, 1,1),
(30551, 19379, 0, 0.0, 0, 1, 1, 1,1),
(30551, 19380, 0, 0.0, 0, 1, 1, 1,1),
(30551, 19381, 0, 0.0, 0, 1, 1, 1,1),
(30551, 19382, 0, 0.0, 0, 1, 1, 1,1),
(30330, 30171, 30171, 100.0, 0, 1, 0, 1, 1),
(30105, 30044, 30044, 100.0, 0, 1, 0, 1 ,1);

View File

@@ -55,7 +55,7 @@ INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_
(13278, 0, 0, 1, 62, 0, 100, 0, 5065, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Duke Hydraxis - On Gossip Option 0 Selected - Close Gossip'),
(13278, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 56, 17333, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Duke Hydraxis - On Link - Add item \'Aqual Quintessence\''),
(13278, 0, 2, 3, 62, 0, 100, 0, 5065, 1, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Duke Hydraxis - On Gossip Option 1 Selected - Close Gossip'),
(13278, 0, 3, 0, 61, 0, 100, 0, 0, 1, 0, 0, 0, 56, 22754, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Duke Hydraxis - On Link - Add item \' Eternal Quintessence\'');
(13278, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 56, 22754, 1, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Duke Hydraxis - On Link - Add item \' Eternal Quintessence\'');
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 5065 AND `OptionID` IN (0, 1);
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
@@ -64,5 +64,3 @@ INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionTex
-- MC - Require dusing the runes
UPDATE `gameobject_template` SET `ScriptName` = 'go_firelord_rune' WHERE `entry` IN (176956, 176957, 176955, 176953, 176952, 176954, 176951);

View File

@@ -1,15 +1,3 @@
-- Entering the raid requires the Drakefire Amulet
DELETE
FROM `dungeon_access_requirements`
WHERE `dungeon_access_id` = 15;
INSERT INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`,
`requirement_note`, `faction`, `comment`)
VALUES (15, 2, 16309, 'You must be part of a Raid group, at least level 50 and have the Drakefire Amulet in your inventory to enter.', 2, 'Onyxia\'s Lair');
-- Set the min level to enter the raid to 50
DELETE FROM `dungeon_access_template` WHERE `map_id`=249;
INSERT INTO `dungeon_access_template` (`id`, `map_id`, `min_level`, `max_level`, `min_avg_item_level`, `comment`) VALUES (15, 249, 50, 60, 0, 'Onyxia\'s Lair');
-- Onyxia
UPDATE `creature_template` SET `minlevel` = 63, `maxlevel` = 63, `lootid` = 54003, `DamageModifier` = 13 WHERE `entry` = 10184;
@@ -18,10 +6,7 @@ UPDATE `creature_template` SET `minlevel` = 60, `maxlevel` = 60, `lootid` = 0, `
DELETE FROM `reference_loot_template` WHERE `Entry` IN (54000, 54001);
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(54000, 17064, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Shard of the Scale'),
(54000, 17067, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Ancient Cornerstone Grimoire'),
(54000, 17068, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Deathbringer'),
(54000, 17075, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Viskag the Bloodletter'),
(54000, 17078, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Sapphiron Drape'),
(54000, 18205, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Eskhandar Collar'),
(54000, 18813, 0, 0, 0, 1, 1, 1, 1, 'Onyxia Ref - Ring of Binding');
@@ -39,13 +24,21 @@ INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `
DELETE FROM `creature_loot_template` WHERE `Entry` = 54003;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(54003, 1, 54000, 100, 0, 1, 0, 1, 2, 'Onyxia - Reference Loot - Trinkets & Misc'),
(54003, 1, 54000, 100, 0, 1, 0, 1, 1, 'Onyxia - Reference Loot - Trinkets'),
(54003, 2, 54001, 100, 0, 1, 0, 1, 2, 'Onyxia - Reference Loot - Tier Pieces'),
(54003, 17966, 0, 100, 0, 1, 0, 1, 1, 'Onyxia - Onyxia Hide Backpack'),
(54003, 17966, 0, 100, 0, 1, 2, 1, 2, 'Onyxia - Onyxia Hide Backpack'),
(54003, 17966, 0, 20, 0, 1, 3, 1, 2, 'Onyxia - Onyxia Hide Backpack'),
(54003, 18422, 0, 100, 0, 1, 0, 1, 1, 'Onyxia - Head of Onyxia'),
(54003, 18423, 0, 100, 0, 1, 0, 1, 1, 'Onyxia - Head of Onyxia'),
(54003, 18705, 0, 100, 1, 1, 0, 1, 1, 'Onyxia - Mature Black Dragon Sinew'),
(54003, 21108, 0, 100, 0, 1, 0, 1, 1, 'Onyxia - Draconic for Dummies');
(54003, 18705, 0, 40, 1, 1, 0, 1, 1, 'Onyxia - Mature Black Dragon Sinew'),
(54003, 21108, 0, 100, 0, 1, 0, 1, 1, 'Onyxia - Draconic for Dummies'),
(54003, 17064, 0, 8.0, 0, 1, 1, 1, 1, 'Onyxia Ref - Shard of the Scale'),
(54003, 17075, 0, 8.0, 0, 1, 1, 1, 1, 'Onyxia Ref - Viskag the Bloodletter'),
(54003, 17068, 0, 8.0, 0, 1, 1, 1, 1, 'Onyxia Ref - Deathbringer');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 1 AND `SourceGroup` = 54003 AND `SourceEntry` = 21108;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(1, 54003, 21108, 0, 0, 9, 0, 8620, 0, 0, 0, 0, 0, '', 'Draconic for Dummies Chapter VI will drop only when a player have The Only Prescription (8620) in their quest log');
DELETE FROM `disables` WHERE `entry` IN (12565, 12566, 12564, 12558) AND `sourceType` = 4;
INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`, `comment`) VALUES
@@ -54,6 +47,16 @@ INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`,
(4, 12564, 0, 0, 0, 'Disable More dots! (10) achievement'),
(4, 12558, 0, 0, 0, 'Disable Onyxia Lair (10) achievement');
DELETE FROM `dungeon_access_requirements` WHERE `dungeon_access_id` = 15;
INSERT INTO `dungeon_access_requirements` (`dungeon_access_id`, `requirement_type`, `requirement_id`, `requirement_note`, `faction`, `priority`, `leader_only`, `comment`) VALUES
(15, 2, 16309, 'You must have the Drakefire Amulet in your inventory before entering Onyxia\'s Lair.', 2, NULL, 0, '');
UPDATE `dungeon_access_template` SET `min_level` = 50 WHERE `map_id` = 249 AND `difficulty` = 0;
DELETE FROM `mapdifficulty_dbc` WHERE `MapID` = 249;
INSERT INTO `mapdifficulty_dbc` (`ID`, `MapID`, `Difficulty`, `RaidDuration`, `MaxPlayers`, `Difficultystring`) VALUES
(26, 249, 0, 604800, 25, 'RAID_DIFFICULTY_25PLAYER');
UPDATE `achievement_criteria_data` SET `value1` = 0 WHERE `criteria_id` IN (12567, 12568, 12569);
-- Victory for the Alliance - Varian
@@ -171,426 +174,3 @@ INSERT INTO spell_linked_spell (spell_trigger, spell_effect, TYPE, COMMENT) VALU
(22905, 22906, 0, 'quelserrar');
UPDATE `quest_template_addon` SET `SpecialFlags` = 0 WHERE `id` = 7509;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4182, 4183) AND `id` = 9562;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4184, 4223) AND `id` = 344;
DELETE FROM `creature_queststarter` WHERE `quest` = 4185 AND `id` = 29611;
DELETE FROM `creature_queststarter` WHERE `quest` = 4186 AND `id` = 1748;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4224, 4241, 4264) AND `id` = 9560;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4242, 4282, 4322) AND `id` = 9023;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(9562, 4182), -- Dragon Menace, Helendis Riverhorn
(9562, 4183), -- True Masters [1], Helendis Riverhorn
(344, 4184), -- True Masters [2], Magistrate Solomon
(29611, 4185), -- True Masters [3], Varian Wrynn
(1748, 4186), -- True Masters [4], Highlord Bolvar Fordragon
(344, 4223), -- True Masters [5], Magistrate Solomon
(9560, 4224), -- True Masters [6], Marshal Maxwell
(9560, 4241), -- 'Marshal Windsor', Marshal Maxwell
(9023, 4242), -- Abandon Hope, Marshal Windsor
(9023, 4282), -- A Shred of Hope, Marshal Windsor
(9023, 4322); -- Jail Break!, Marshal Windsor
DELETE FROM `creature_questender` WHERE `quest` = 4182 AND `id` = 9562;
DELETE FROM `creature_questender` WHERE `quest` IN (4183, 4186) AND `id` = 344;
DELETE FROM `creature_questender` WHERE `quest` = 4184 AND `id` = 29611;
DELETE FROM `creature_questender` WHERE `quest` = 4185 AND `id` = 1748;
DELETE FROM `creature_questender` WHERE `quest` IN (4223, 4224, 4242) AND `id` = 9560;
DELETE FROM `creature_questender` WHERE `quest`IN (4241, 4264, 4282) AND `id` = 9023;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(9562, 4182), -- Dragon Menace, Helendis Riverhorn
(344, 4183), -- True Masters [1], Magistrate Solomon
(29611, 4184), -- True Masters [2], Varian Wrynn
(1748, 4185), -- True Masters [3], Highlord Bolvar Fordragon
(344, 4186), -- True Masters [4], Magister Solomon
(9560, 4223), -- True Masters [5], Marshal Maxwell
(9560, 4224), -- True Masters [6], Marshal Maxwell
(9023, 4241), -- 'Marshal Windsor', Marshal Windsor
(9560, 4242), -- Abandon Hope, Marshal Maxwell
(9023, 4264), -- A Crumpled Up Note, Marshal Windsor
(9023, 4282); -- A Shred of Hope, Marshal Windsor
-- True Masters quests
DELETE FROM `disables` WHERE `entry` IN (4183, 4184, 4185, 4186, 4223, 4224) AND `sourceType` = 1;
DELETE FROM `creature_questender` WHERE `quest` = 4322 AND `id` = 9560;
DELETE FROM `creature_questender` WHERE `quest` = 6402 AND `id` = 17804;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(17804, 6402),
(9560, 4322);
DELETE FROM `creature_queststarter` WHERE `quest` = 6402 AND `id` = 9560;
DELETE FROM `creature_queststarter` WHERE `quest` = 6403 AND `id` = 12580;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(9560, 6402),
(12580, 6403);
DELETE FROM `creature_text` WHERE `CreatureID` = 466 AND `GroupID` > 0;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(466, 1, 0, 'Reginald, you know that I cannot let you pass.', 12, 0, 100, 0, 0, 0, 8121, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_1'),
(466, 2, 0, '%s appears lost in contemplation.', 16, 0, 100, 0, 0, 0, 8124, 0, 'Marcus Jonathan - EMOTE_CONTEMPLATE'),
(466, 3, 0, 'I am ashamed, old friend. I know not what I do anymore. It is not you that would dare bring shame to the heroes of legend - it is I. It is I and the rest of these corrupt politicians. They fill our lives with empty promises, unending lies.', 12, 0, 100, 0, 0, 0, 8125, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_2'),
(466, 4, 0, 'We shame our ancestors. We shame those lost to us... forgive me, Reginald.', 12, 0, 100, 0, 0, 0, 8132, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_3'),
(466, 5, 0, 'Stand down! Can you not see that heroes walk among us?', 12, 0, 100, 0, 0, 0, 8127, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_1'),
(466, 6, 0, 'Move aside! Let them pass!', 12, 0, 100, 0, 0, 0, 8128, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_2'),
(466, 7, 0, 'Reginald Windsor is not to be harmed! He shall pass through untouched!', 14, 0, 100, 0, 0, 0, 8129, 3, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_3'),
(466, 8, 0, 'Go, Reginald. May the light guide your hand.', 12, 0, 100, 66, 0, 0, 8130, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_4');
UPDATE `creature_template` SET `ScriptName` = 'npc_squire_rowe' WHERE `entry` = 17804;
UPDATE `creature_template` SET `ScriptName` = 'npc_reginald_windsor' WHERE `entry` = 12580;
UPDATE `creature_template` SET `ScriptName` = 'npc_royal_stormwind_guard' WHERE `entry` = 1756;
UPDATE `creature_template` SET `ScriptName` = 'npc_marshal_windsor' WHERE `entry` = 9023;
UPDATE `creature_template` SET `ScriptName` = 'npc_jail_break_dughal_or_seecher' WHERE `entry` IN (9022, 9679);
DELETE FROM `gossip_menu` WHERE `MenuID` = 12580 AND `TextID` = 5633;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(12580, 5633);
UPDATE `creature_template` SET `gossip_menu_id` = 12580 WHERE `entry` = 12580;
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 12580;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextId`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextId`) VALUES
(12580, 0, 0, 'I am ready, as are my forces. Let us end this masquerade!', 8256, 1, 1, 0, 0, 0, 0, '', 0);
SET @ENTRY := 12580;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Yawww!', 12, 0, 100, 0, 0, 0, 8091, 0, 'Reginald Windsor - SAY_REGINALD_SHOO_HORSE'),
(@ENTRY, 1, 0, 'I knew you would come, $n. It is good to see you again, friend.', 12, 0, 100, 0, 0, 0, 8090, 0, 'Reginald Windsor - SAY_REGINALD_END_INTRO'),
(@ENTRY, 2, 0, 'On guard, friend. The lady dragon will not give in without a fight.', 12, 0, 100, 0, 0, 0, 8107, 0, 'Reginald Windsor - SAY_REGINALD_MASQUERADE_1'),
(@ENTRY, 3, 0, 'As was fated a lifetime ago in Karazhan, monster - I come - and with me I bring justice.', 14, 0, 100, 0, 0, 0, 8109, 3, 'Reginald Windsor - SAY_REGINALD_MASQUERADE_2'),
(@ENTRY, 4, 0, 'You must do what you think is right, Marcus. We served together under Turalyon. He made us both the men that we are today. Did he err with me? Do you truly believe my intent is to cause harm to our alliance? Would I shame our heroes?', 12, 0, 100, 0, 0, 0, 8123, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_1'),
(@ENTRY, 5, 0, 'Holding me here is not the right decision, Marcus.', 12, 0, 100, 0, 0, 0, 8133, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_2'),
(@ENTRY, 6, 0, 'Dear friend, you honor them with your vigilant watch. You are steadfast in your allegiance. I do not doubt for a moment that you would not give as great a sacrifice for your people as any of the heroes you stand under.', 12, 0, 100, 0, 0, 0, 8126, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_3'),
(@ENTRY, 7, 0, 'Now, it is time to bring her reign to an end, Marcus. Stand down, friend.', 12, 0, 100, 0, 0, 0, 8134, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_4'),
(@ENTRY, 8, 0, 'Thank you, old friend. You have done the right thing.', 12, 0, 100, 0, 0, 0, 8205, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_5'),
(@ENTRY, 9, 0, 'Follow me, friends. To Stormwind Keep!', 12, 0, 100, 0, 0, 0, 8206, 0, 'Reginald Windsor - SAY_MASQUERADE_3'),
(@ENTRY, 10, 0, 'Be brave, friends. The reptile will thrash wildly. It is an act of desperation. When you are ready, give me the word.', 12, 0, 100, 0, 0, 0, 8207, 0, 'Reginald Windsor - SAY_STORMWIND_BEFORE_KEEP'),
(@ENTRY, 11, 0, 'Onward!', 12, 0, 100, 0, 0, 0, 8208, 0, 'Reginald Windsor - SAY_MOVE_IN_KEEP'),
(@ENTRY, 12, 0, 'Majesty, run while you still can. She is not what you think her to be...', 12, 0, 100, 0, 0, 0, 8210, 0, 'Reginald Windsor - SAY_REGINALD_TO_ANDUINN'),
(@ENTRY, 13, 0, 'The masquerade is over, Lady Prestor. Or should I call you by your true name... Onyxia...', 12, 0, 100, 0, 0, 0, 8211, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA'),
(@ENTRY, 14, 0, 'You will not escape your fate, Onyxia. It has been prophesied - a vision resonating from the great halls of Karazhan. It ends now...', 12, 0, 100, 0, 0, 0, 8218, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA_2'),
(@ENTRY, 15, 0, 'The Dark Irons thought these tablets to be encoded. This is not any form of coding, it is the tongue of ancient dragon.', 12, 0, 100, 0, 0, 0, 8227, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA_3'),
(@ENTRY, 16, 0, 'Listen, dragon. Let the truth resonate throughout these halls.', 12, 0, 100, 0, 0, 0, 8219, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA'),
(@ENTRY, 17, 0, '%s reads from the tablets. Unknown, unheard sounds flow through your consciousness.', 16, 0, 100, 0, 0, 0, 8228, 0, 'Reginald Windsor - EMOTE_READ_TABLET'),
(@ENTRY, 18, 0, 'DO NOT LET HER ESCAPE!', 12, 0, 100, 0, 0, 0, 8247, 0, 'Reginald Windsor - SAY_REGINALD_TO_GUARDS'),
(@ENTRY, 19, 0, 'Bol... Bolvar... the medallion... use...', 12, 0, 100, 0, 0, 0, 8250, 0, 'Reginald Windsor - SAY_REGINALD_TO_BOLVAR'),
(@ENTRY, 20, 0, '%s dies.', 16, 0, 100, 0, 0, 0, 8251, 0, 'Reginald Windsor - EMOTE_WINDSOR_DIES'),
(@ENTRY, 21, 0, '%s reaches into his pack and pulls out the encoded tablets.', 16, 0, 100, 0, 0, 0, 8226, 0, 'Reginald Windsor - EMOTE_WINDSOR_TABLETS');
SET @ENTRY := 1749;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Seize him! Seize the worthless criminal and his allies!', 14, 0, 100, 0, 0, 0, 8119, 3, 'Lady Katrana Prestor - SAY_KATRANA_1'),
(@ENTRY, 1, 0, '%s laughs.', 16, 0, 100, 0, 0, 0, 8214, 0, 'Lady Katrana Prestor - EMOTE_KATRANA_LAUGH'),
(@ENTRY, 2, 0, 'You will be incarcerated and tried for treason, Windsor. I shall watch with glee as they hand down a guilty verdict and sentence you to death by hanging...', 12, 0, 100, 0, 0, 0, 8215, 0, 'Lady Katrana Prestor - SAY_KATRANA_2'),
(@ENTRY, 3, 0, 'And as your limp body dangles from the rafters, I shall take pleasure in knowing that a mad man has been put to death. After all, what proof do you have? Did you expect to come in here and point your fingers at royalty and leave unscathed?', 12, 0, 100, 0, 0, 0, 8216, 0, 'Lady Katrana Prestor - SAY_KATRANA_3');
SET @ENTRY := 1748;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'To the safe hall, your majesty.', 12, 0, 100, 0, 0, 0, 8212, 0, 'Highlord Bolvar Fordragon - SAY_BOLVAR_TO_ANDUINN'),
(@ENTRY, 1, 0, '%s gasps.', 16, 0, 100, 0, 0, 0, 8236, 0, 'Highlord Bolvar Fordragon - EMOTE_BOLVAR_GASP'),
(@ENTRY, 2, 0, 'Dragon filth! Guards! Guards! Seize this monster!', 14, 0, 100, 0, 0, 0, 8237, 3, 'Highlord Bolvar Fordragon - SAY_BOLVAR_TO_GUARDS'),
(@ENTRY, 3, 0, 'Reginald... I... I am sorry.', 12, 0, 100, 0, 0, 0, 8249, 0, 'Highlord Bolvar Fordragon - SAY_BOLVAR_REGINALD_DIES');
SET @ENTRY := 12756;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Curious... Windsor, in this vision, did you survive? I only ask because one thing that I can and will assure is your death. Here and now.', 12, 0, 100, 0, 0, 0, 8235, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR'),
(@ENTRY, 1, 0, 'Yesss... Guards, come to your lord\'s aid!', 12, 0, 100, 0, 0, 0, 8239, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_2'),
(@ENTRY, 2, 0, 'Was this fated, Windsor? If it was death that you came for, then the prophecy has been fulfilled. May your consciousness rot in the Twisting Nether. Finish the rest of these meddlesome insects, children. Bolvar, you have been a pleasurable puppet.', 12, 0, 100, 0, 0, 0, 8246, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_3'),
(@ENTRY, 3, 0, 'You have failed him, mortalsss... Farewell!', 12, 0, 100, 0, 0, 0, 8248, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_4');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=20465;
INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`Comment`) VALUES
(13,1,20465,31,3,12580,'Windsor Death hit only Reginald Windsor');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=20358;
INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`Comment`) VALUES
(13,1,20358,31,3,1749,'Windsor Read Table hit only Katrana Prestor');
SET @ENTRY := 68;
SET @ENTRY2 := 1756;
SET @ENTRY3 := 1976;
DELETE FROM `creature_text` WHERE `CreatureID` IN (68, 1756, 1976) AND `GroupID` = 10;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, ''),
(@ENTRY2, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY2, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY2, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY2, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY2, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY2, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY2, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, ''),
(@ENTRY3, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY3, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY3, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY3, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY3, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY3, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY3, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, '');
DELETE FROM `creature_questender` WHERE `quest` = 6402 AND `id` = 12580;
INSERT INTO `creature_questender` VALUES
(12580, 6402);
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 7480;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextId`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextId`) VALUES
(7480, 0, 0, 'Let Marshal Windsor know that I am ready.', 14388, 1, 1, 0, 0, 0, 0, '', 0);
DELETE FROM `creature_text` WHERE `CreatureID` = 17804;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(17804, 0, 0, 'The signal has been sent. He should be arriving shortly.', 12, 7, 100, 0, 0, 0, 14389, 0, '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 7480;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 7480, 0, 0, 0, 8, 0, 6403, 0, 0, 1, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 0, 8, 0, 6402, 0, 0, 0, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 1, 8, 0, 6403, 0, 0, 1, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 1, 28, 0, 6402, 0, 0, 0,0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous');
DELETE FROM `gossip_menu` WHERE `MenuID` = 51749 AND `TextID` = 2693;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51750 AND `TextID` = 2694;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51751 AND `TextID` = 2695;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51752 AND `TextID` = 2696;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(51749, 2693),
(51750, 2694),
(51751, 2695),
(51752, 2696);
UPDATE `creature_template` SET `gossip_menu_id` = 51749 WHERE `entry` = 1749;
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (51749, 51750, 51751, 51752);
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcasttextId`) VALUES
(51749, 0, 0, 'Pardon the intrustion, Lady Prestor, but Highlord Bolvar suggested that I seek your advice.', 4991, 1, 1, 51750, 0, 0, 0, '', 0),
(51750, 0, 0, 'My apologies, Lady Prestor.', 4993, 1, 1, 51751, 0, 0, 0, '', 0),
(51751, 0, 0, 'Begging your pardon, Lady Prestor. That was not my intent.', 4995, 1, 1, 51752, 0, 0, 0, '', 0),
(51752, 0, 0, 'Thank you for your time, Lady Prestor.', 4997, 1, 1, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `sourcetypeorreferenceId` = 14 AND `sourcegroup` = 51749;
DELETE FROM `conditions` WHERE `sourcetypeorreferenceId` = 15 AND `sourcegroup` = 51749;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
('14','51749','2693','0','0','9','0','4185','0','0','0','0','0','','Lady Prestor, require True Masters (3)'),
('15','51749','0','0','0','9','0','4185','0','0','0','0','0','','Lady Prestor, Require True Masters (3)');
DELETE FROM `gossip_menu` WHERE `MenuID` BETWEEN 59563 AND 59575 AND `TextID` BETWEEN 2713 AND 2725;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(59563, 2713),
(59564, 2714),
(59565, 2715),
(59566, 2716),
(59567, 2717),
(59568, 2718),
(59569, 2719),
(59570, 2720),
(59571, 2721),
(59572, 2722),
(59573, 2723),
(59574, 2725);
UPDATE `creature_template` SET `gossip_menu_id` = 59563 WHERE `entry` = 9563;
DELETE FROM `gossip_menu_option` WHERE `MenuID` BETWEEN 59563 AND 59575;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcasttextId`) VALUES
(59563, 0, 0, 'Official business, John. I need some information about Marshal Windsor. Tell me about the last time you saw him.', 5007, 1, 1, 59564, 0, 0, 0, '', 0),
(59564, 0, 0, 'So what did you do?', 5010, 1, 1, 59565, 0, 0, 0, '', 0),
(59565, 0, 0, 'Start making sense, dwarf. I don\'t want to have anything to do with your cracker, your pappy, or any sort of \'discreditin.\'', 5013, 1, 1, 59566, 0, 0, 0, '', 0),
(59566, 0, 0, 'Ironfoe?', 5015, 1, 1, 59567, 0, 0, 0, '', 0),
(59567, 0, 0, 'Interesting... continue, John.', 5017, 1, 1, 59568, 0, 0, 0, '', 0),
(59568, 0, 0, 'So that\'s how Windsor died...', 5019, 1, 1, 59569, 0, 0, 0, '', 0),
(59569, 0, 0, 'So how did he die?', 5021, 1, 1, 59570, 0, 0, 0, '', 0),
(59570, 0, 0, 'Ok, so where the hell is he? Wait a minute! Are you drunk?', 5024, 1, 1, 59571, 0, 0, 0, '', 0),
(59571, 0, 0, 'WHY is he in Blackrock Depths?', 5027, 1, 1, 59572, 0, 0, 0, '', 0),
(59572, 0, 0, '300? So the Dark Irons killed him and dragged him into the Depths?', 5030, 1, 1, 59573, 0, 0, 0, '', 0),
(59573, 0, 0, 'Ahhh... Ironfoe.', 5034, 1, 1, 59574, 0, 0, 0, '', 0),
(59574, 0, 0, 'Thanks, Ragged John. Your story was very uplifting and informative.', 5038, 1, 1, 0, 0, 0, 0, '', 0);
UPDATE `smart_scripts` SET `event_param1` = 59574 WHERE `entryorguid` = 9563 AND `id` = 3 AND `event_type` = 62; -- Ragged John quest credit
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 59563;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15,59563,0,0,0,9,0,4224,0,0,0,0,0,'','Ragged John - Require True Masters (6)');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 1749;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 1749 AND `Source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) values
(1749, 0, 0, 1, 62, 0, 100, 0, 51752, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Lady Katrana Prestor - On Gossip Option Select - Close Gossip'),
(1749, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 15, 4185, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Lady Katrana Prestor - On Gossip Option Select - Complete Quest - The True Masters');
-- Spawn Lady Katrana Prestor
-- Positions are hand-made. There's a huge throne where she used to be spawned in classic...
DELETE FROM `creature` WHERE `guid` = 500800 AND `id1` = 1749;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(500800, 1749, 0, 0, 0, 1, 1, 1, -8435, 335.559, 122.163, 2.56468, 300, 0, 3497, 2568, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 30 AND `SourceEntry` = 1749;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(30, 0, 1749, 0, 0, 47, 0, 4182, 64, 0, 0, 0, 0, '', 'Lady Katrana Prestor - Visibility - Require quest Dragonkin Menace rewarded.'),
(30, 0, 1749, 0, 0, 47, 0, 6403, 64, 0, 1, 0, 0, '', 'Lady Katrana Prestor - Visibility - Require quest The Great Masquerade NOT rewarded.');
UPDATE `item_template` SET `startquest` = 4264 WHERE `entry` = 11446; -- A crumpled up note
DELETE FROM `creature` WHERE `guid` = 500801 AND `id1` = 1748;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(500801, 1748, 0, 0, 0, 1, 1, 1, -8445.01, 329.85, 122.163, 2.12562, 300, 0, 1055700, 67740, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 30 AND `SourceEntry` = 1748;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(30, 0, 1748, 0, 0, 47, 0, 4182, 64, 0, 0, 0, 0, '', 'Highlord Bolvar Fordring - Visibility - Require quest Dragonkin Menace rewarded.');
DELETE FROM `script_waypoint` WHERE `entry` = 9023;
INSERT INTO `script_waypoint` (`entry`, `pointid`, `location_x`, `location_y`, `location_z`, `waittime`, `point_comment`) VALUES
(9023, 1, 316.336, -225.528, -77.7258, 2000, 'SAY_WINDSOR_START'),
(9023, 2, 322.96, -207.13, -77.87, 0, ''),
(9023, 3, 281.05, -172.16, -75.12, 0, ''),
(9023, 4, 272.19, -139.14, -70.61, 0, ''),
(9023, 5, 283.62, -116.09, -70.21, 0, ''),
(9023, 6, 296.18, -94.3, -74.08, 0, ''),
(9023, 7, 294.57, -93.11, -74.08, 0, 'escort paused - SAY_WINDSOR_CELL_DUGHAL_1'),
(9023, 8, 294.57, -93.11, -74.08, 10000, ''),
(9023, 9, 294.57, -93.11, -74.08, 3000, 'SAY_WINDSOR_CELL_DUGHAL_3'),
(9023, 10, 314.31, -74.31, -76.09, 0, ''),
(9023, 11, 360.22, -62.93, -66.77, 0, ''),
(9023, 12, 383.38, -69.4, -63.25, 0, ''),
(9023, 13, 389.99, -67.86, -62.57, 0, ''),
(9023, 14, 400.98, -72.01, -62.31, 0, 'SAY_WINDSOR_EQUIPMENT_1'),
(9023, 15, 404.22, -62.3, -63.5, 2000, ''),
(9023, 16, 404.22, -62.3, -63.5, 1500, 'open supply door'),
(9023, 17, 407.65, -51.86, -63.96, 0, ''),
(9023, 18, 403.61, -51.71, -63.92, 1000, 'SAY_WINDSOR_EQUIPMENT_2'),
(9023, 19, 403.61, -51.71, -63.92, 2000, ''),
(9023, 20, 403.61, -51.71, -63.92, 1000, 'open supply crate'),
(9023, 21, 403.61, -51.71, -63.92, 1000, 'update entry to Reginald Windsor'),
(9023, 22, 403.61, -52.71, -63.92, 4000, 'SAY_WINDSOR_EQUIPMENT_3'),
(9023, 23, 403.61, -52.71, -63.92, 4000, 'SAY_WINDSOR_EQUIPMENT_4'),
(9023, 24, 406.33, -54.87, -63.95, 0, ''),
(9023, 25, 403.86, -73.88, -62.02, 0, ''),
(9023, 26, 428.8, -81.34, -64.91, 0, ''),
(9023, 27, 557.03, -119.71, -61.83, 0, ''),
(9023, 28, 573.4, -124.39, -65.07, 0, ''),
(9023, 29, 593.91, -130.29, -69.25, 0, ''),
(9023, 30, 593.21, -132.16, -69.25, 0, 'escort paused - SAY_WINDSOR_CELL_JAZ_1'),
(9023, 31, 593.21, -132.16, -69.25, 1000, ''),
(9023, 32, 593.21, -132.16, -69.25, 3000, 'SAY_WINDSOR_CELL_JAZ_2'),
(9023, 33, 622.81, -135.55, -71.92, 0, ''),
(9023, 34, 634.68, -151.29, -70.32, 0, ''),
(9023, 35, 635.06, -153.25, -70.32, 0, 'escort paused - SAY_WINDSOR_CELL_SHILL_1'),
(9023, 36, 635.06, -153.25, -70.32, 3000, ''),
(9023, 37, 635.06, -153.25, -70.32, 5000, 'SAY_WINDSOR_CELL_SHILL_2'),
(9023, 38, 635.06, -153.25, -70.32, 2000, 'SAY_WINDSOR_CELL_SHILL_3'),
(9023, 39, 655.25, -172.39, -73.72, 0, ''),
(9023, 40, 654.79, -226.3, -83.06, 0, ''),
(9023, 41, 622.85, -268.85, -83.96, 0, ''),
(9023, 42, 579.45, -275.56, -80.44, 0, ''),
(9023, 43, 561.19, -266.85, -75.59, 0, ''),
(9023, 44, 547.91, -253.92, -70.34, 0, ''),
(9023, 45, 549.2, -252.4, -70.34, 0, 'escort paused - SAY_WINDSOR_CELL_CREST_1'),
(9023, 46, 549.2, -252.4, -70.34, 1000, ''),
(9023, 47, 549.2, -252.4, -70.34, 4000, 'SAY_WINDSOR_CELL_CREST_2'),
(9023, 48, 555.33, -269.16, -74.4, 0, ''),
(9023, 49, 554.31, -270.88, -74.4, 0, 'escort paused - SAY_WINDSOR_CELL_TOBIAS_1'),
(9023, 50, 554.31, -270.88, -74.4, 10000, ''),
(9023, 51, 554.31, -270.88, -74.4, 4000, 'SAY_WINDSOR_CELL_TOBIAS_2'),
(9023, 52, 536.1, -249.6, -67.47, 0, ''),
(9023, 53, 520.94, -216.65, -59.28, 0, ''),
(9023, 54, 505.99, -148.74, -62.17, 0, ''),
(9023, 55, 484.21, -56.24, -62.43, 0, ''),
(9023, 56, 470.39, -6.01, -70.1, 0, ''),
(9023, 57, 452.45, 29.85, -70.37, 1500, 'SAY_WINDSOR_FREE_1'),
(9023, 58, 452.45, 29.85, -70.37, 15000, 'SAY_WINDSOR_FREE_2');
DELETE FROM `creature_text` WHERE `CreatureID` = 9023;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9023, 0, 0, 'You locked up the wrong Marshal, $n. Prepare to be destroyed!', 12, 0, 100, 0, 0, 0, 5253, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 1, 'I bet you\'re sorry now, aren\'nt you!?!', 12, 0, 100, 0, 0, 0, 5252, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 2, 'You better hold me back or $n is going to feel some prison house beatings.', 12, 0, 100, 0, 0, 0, 5250, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 3, 'Administering fists of fury on $n!', 12, 0, 100, 0, 0, 0, 5249, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 1, 0, 'Let\'s get a move on. My gear should be in the storage area up this way...', 12, 0, 100, 0, 0, 0, 5205, 0, 'Marshal Windsor - SAY_START_ESCORT'),
(9023, 2, 0, 'Check that cell, $n. If someone is alive in there, we need to get them out.', 12, 0, 100, 0, 0, 0, 5207, 0, 'Marshal Windsor - SAY_DUGHAL_CELL_1'),
(9023, 3, 0, 'Good work! We\'re almost there! This way.', 12, 0, 100, 0, 0, 0, 5213, 0, 'Marshal Windsor - SAY_DUGHAL_CELL_2'),
(9023, 4, 0, 'This is it, $n. My stuff should be in that room. Cover me, I\'m going in!', 12, 0, 100, 0, 0, 0, 5214, 0, 'Marshal Windsor - SAY_EQUIPMENT_1'),
(9023, 5, 0, 'Ah, there it is!', 12, 0, 100, 0, 0, 0, 5215, 0, 'Marshal Windsor - SAY_EQUIPMENT_2');
-- Windsor, armored up.
DELETE FROM `creature_text` WHERE `CreatureID` = 9682;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9682, 0, 0, 'You locked up the wrong Marshal, $n. Prepare to be destroyed!', 12, 0, 100, 0, 0, 0, 5253, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 1, 'I bet you\'re sorry now, aren\'nt you!?!', 12, 0, 100, 0, 0, 0, 5252, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 2, 'You better hold me back or $n is going to feel some prison house beatings.', 12, 0, 100, 0, 0, 0, 5250, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 3, 'Administering fists of fury on $n!', 12, 0, 100, 0, 0, 0, 5249, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 6, 0, 'Can you feel the power, $n??? It\'s time to ROCK!', 12, 0, 100, 0, 0, 0, 5216, 0, 'Reginald Windsor - SAY_EQUIPMENT_3'),
(9682, 7, 0, 'Now we just have to free Tobias and we can get out of here. This way!', 12, 0, 100, 0, 0, 0, 5217, 0, 'Reginald Windsor - SAY_EQUIPMENT_4'),
(9682, 8, 0, 'Open it.', 12, 0, 100, 0, 0, 0, 5222, 0, 'Reginald Windsor - SAY_JAZ_CELL_1'),
(9682, 9, 0, 'I never did like those two. Let\'s get moving.', 12, 0, 100, 0, 0, 0, 5223, 0, 'Reginald Windsor - SAY_JAZ_CELL2'),
(9682, 10, 0, 'Open it and be careful this time!', 12, 0, 100, 0, 0, 0, 5224, 0, 'Reginald Windsor - SAY_SHILL_CELL_1'),
(9682, 11, 0, 'That intolerant dirtbag finally got what was coming to him. Good riddance!', 12, 0, 100, 0, 0, 0, 5225, 0, 'Reginald Windsor - SAY_SHILL_CELL_2'),
(9682, 12, 0, 'Alright, let\'s go.', 12, 0, 100, 0, 0, 0, 5227, 0, 'Reginald Windsor - SAY_SHILL_CELL_3'),
(9682, 13, 0, 'Open it. We need to hurry up. I can smell those Dark Irons coming a mile away and I can tell you one thing, they\'re COMING!', 12, 0, 100, 0, 0, 0, 5228, 0, 'Reginald Windsor - SAY_CREST_CELL_1'),
(9682, 14, 0, 'He has to be in the last cell. Unless... they killed him.', 12, 0, 100, 0, 0, 0, 5229, 0, 'Reginald Windsor - SAY_CREST_CELL_2'),
(9682, 15, 0, 'Get him out of there!', 12, 0, 100, 0, 0, 0, 5230, 0, 'Reginald Windsor - SAY_TOBIAS_CELL_1'),
(9682, 16, 0, 'Excellent work, $n. Let\'s find the exit. I think I know the way. Follow me!', 12, 0, 100, 0, 0, 0, 5221, 0, 'Reginald Windsor - SAY_TOBIAS_CELL_2'),
(9682, 17, 0, 'We made it!', 12, 0, 100, 0, 0, 0, 5231, 0, 'Reginald Windsor - SAY_FREE_1'),
(9682, 18, 0, 'Meet me at Maxwell\'s encampment. We\'ll go over the next stages of the plan there and figure out a way to decode my tablets without the decryption ring.', 12, 0, 100, 0, 0, 0, 5232, 0, 'Reginald Windsor - SAY_FREE_2');
DELETE FROM `creature_text` WHERE `CreatureID` = 9022;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9022, 0, 0, 'Thank you, $n! I\'m free!!!', 12, 0, 100, 0, 0, 0, 5210, 0,'Dughal Stormwing - On Gossip Select');
DELETE FROM `creature_text` WHERE `CreatureID` = 9679;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9679, 0, 0, 'Finally!! I can leave this dump.', 12, 0, 100, 0, 0, 0, 5218, 0,'Tobias Seecher - SAY_FREED');
-- The Great Masquerade
DELETE FROM `creature_questender` WHERE `id` = 1748 AND `quest` = 6403;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(1748, 6403);
-- Disable mmaps for Reginald in stormwind
UPDATE `creature_template` SET `flags_extra` = `flags_extra` |536870912 WHERE `entry` = 12580;
DELETE FROM `creature_queststarter` WHERE `quest` = 6501;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(1748, 6501);
DELETE FROM `creature_queststarter` WHERE `quest` = 6501;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(1748, 6501);
DELETE FROM `creature_queststarter` WHERE `quest` = 6502;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(10929, 6502);
DELETE FROM `creature_questender` WHERE `quest` = 6501;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(10929, 6501);
DELETE FROM `creature_questender` WHERE `quest` = 6502;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(10929, 6502);
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 1748 AND GroupID = 2;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 1749 AND GroupID = 0;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 12580 AND GroupID = 3;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 466 AND GroupID = 7;
UPDATE `creature_template` SET `npcflag` = `npcflag` |1|2 WHERE `entry` = 1749;
UPDATE `quest_template` SET `flags` = `flags`|2|8 WHERE `id` = 6403; -- The Great Masquerade, shareable & escort flag
-- Adjust quest Mother's Milk gossip option to work with changed Ragged John gossip menu
DELETE FROM `gossip_menu_option` WHERE `MenuID`=59563 AND `OptionID`=1;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES (59563, 1, 0, 'Milk me, John.', 5833, 1, 1, 2062, 0, 0, 0, '', 0, 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=59563 AND `SourceEntry`=1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 59563, 1, 0, 1, 1, 0, 16468, 0, 0, 0, 0, 0, '', 'Show Gossip 59563 option 1 only if player has aura 16468'),
(15, 59563, 1, 0, 1, 9, 0, 4866, 0, 0, 0, 0, 0, '', 'Show gossip 59563 option 1 if player does have quest 4866 taken');

View File

@@ -1,3 +1,11 @@
-- Alter AzerothCore table to support Vanilla negative resistance values
ALTER TABLE item_template MODIFY fire_res SMALLINT;
ALTER TABLE item_template MODIFY holy_res SMALLINT;
ALTER TABLE item_template MODIFY nature_res SMALLINT;
ALTER TABLE item_template MODIFY frost_res SMALLINT;
ALTER TABLE item_template MODIFY shadow_res SMALLINT;
ALTER TABLE item_template MODIFY arcane_res SMALLINT;
-- Restore rep requirement to Mantle of the Dawn
UPDATE item_template SET RequiredReputationFaction=529, RequiredReputationRank=6 WHERE entry IN (18169, 18170, 18171, 18172, 18173);
UPDATE item_template SET RequiredReputationFaction=529, RequiredReputationRank=7 WHERE entry=18182;
@@ -4054,9 +4062,6 @@ UPDATE item_template SET Quality = 3 WHERE entry=13335;
/* Crystal of Zin-Malor */
UPDATE item_template SET Quality = 2 WHERE entry=13347;
/* Recipe: Transmute Water to Air */
UPDATE item_template SET RequiredReputationRank = 0 WHERE entry=13485;
/* Zergling Leash */
UPDATE item_template SET Quality = 1 WHERE entry=13582;
@@ -4081,24 +4086,6 @@ UPDATE item_template SET Quality = 4 WHERE entry=16339;
/* Red Moro'gai Gem */
UPDATE item_template SET Quality = 2 WHERE entry=18153;
/* Flame Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18169;
/* Frost Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18170;
/* Arcane Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18171;
/* Nature Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18172;
/* Shadow Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18173;
/* Chromatic Mantle of the Dawn */
UPDATE item_template SET RequiredReputationFaction = 0, RequiredReputationRank = 0 WHERE entry=18182;
/* Sleeveless T-Shirt */
UPDATE item_template SET Quality = 0 WHERE entry=18231;

View File

@@ -0,0 +1,125 @@
-- Ancient Core Hound
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11673) AND (`Item` IN (16838, 16840, 16857, 16858));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11673, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Ancient Core Hound - Earthfury Belt'),
(11673, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Ancient Core Hound - Earthfury Bracers'),
(11673, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Ancient Core Hound - Lawbringer Bracers'),
(11673, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Ancient Core Hound - Lawbringer Belt');
-- Firelord
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11668) AND (`Item` IN (16838, 16840, 16858));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11668, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Firelord - Earthfury Belt'),
(11668, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Firelord - Earthfury Bracers'),
(11668, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Firelord - Lawbringer Belt');
-- Firewalker
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11666) AND (`Item` IN (16838, 16840, 16857, 16858, 16861, 16864));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11666, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Firewalker - Earthfury Belt'),
(11666, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Firewalker - Earthfury Bracers'),
(11666, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Firewalker - Lawbringer Bracers'),
(11666, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Firewalker - Lawbringer Belt'),
(11666, 16861, 0, 0.34, 0, 1, 0, 1, 1, 'Firewalker - Bracers of Might'),
(11666, 16864, 0, 0.34, 0, 1, 0, 1, 1, 'Firewalker - Belt of Might');
-- Flameguard
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11667) AND (`Item` IN (16819, 16838, 16840, 16857));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11667, 16819, 0, 0.32, 0, 1, 0, 1, 1, 'Flameguard - Vambraces of Prophecy'),
(11667, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Flameguard - Earthfury Belt'),
(11667, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flameguard - Earthfury Bracers'),
(11667, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Flameguard - Lawbringer Bracers');
-- Flamewaker
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11661) AND (`Item` IN (16804, 16838, 16840, 16857, 16858, 16864));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11661, 16804, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker - Felheart Bracers'),
(11661, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker - Earthfury Belt'),
(11661, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker - Earthfury Bracers'),
(11661, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker - Lawbringer Bracers'),
(11661, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker - Lawbringer Belt'),
(11661, 16864, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker - Belt of Might');
-- Flamewaker Priest
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11662) AND (`Item` IN (16802, 16806, 16827, 16828, 16830, 16838, 16840, 16857, 16858, 16861, 16864));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11662, 16802, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Arcanist Belt'),
(11662, 16806, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Felheart Belt'),
(11662, 16827, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Nightslayer Belt'),
(11662, 16828, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Cenarion Belt'),
(11662, 16830, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Priest - Cenarion Bracers'),
(11662, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Earthfury Belt'),
(11662, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Priest - Earthfury Bracers'),
(11662, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Priest - Lawbringer Bracers'),
(11662, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Lawbringer Belt'),
(11662, 16861, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Priest - Bracers of Might'),
(11662, 16864, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Priest - Belt of Might');
-- Flamewaker Healer
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11663) AND (`Item` IN (16799, 16828, 16838, 16840, 16851, 16858));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11663, 16799, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Healer - Arcanist Bindings'),
(11663, 16828, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Healer - Cenarion Belt'),
(11663, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Healer - Earthfury Belt'),
(11663, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Healer - Earthfury Bracers'),
(11663, 16851, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Healer - Giantstalker\'s Belt'),
(11663, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Healer - Lawbringer Belt');
-- Flamewaker Elite
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11664) AND (`Item` IN (16817, 16838, 16840, 16851, 16857, 16858, 16861));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11664, 16817, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Elite - Girdle of Prophecy'),
(11664, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Elite - Earthfury Belt'),
(11664, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Elite - Earthfury Bracers'),
(11664, 16851, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Elite - Giantstalker\'s Belt'),
(11664, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Elite - Lawbringer Bracers'),
(11664, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Elite - Lawbringer Belt'),
(11664, 16861, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Elite - Bracers of Might');
-- Flamewaker Protector
DELETE FROM `creature_loot_template` WHERE (`Entry` = 12119) AND (`Item` IN (16802, 16804, 16806, 16817, 16827, 16840));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(12119, 16802, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Protector - Arcanist Belt'),
(12119, 16804, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Protector - Felheart Bracers'),
(12119, 16806, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Protector - Felheart Belt'),
(12119, 16817, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Protector - Girdle of Prophecy'),
(12119, 16827, 0, 0.34, 0, 1, 0, 1, 1, 'Flamewaker Protector - Nightslayer Belt'),
(12119, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Flamewaker Protector - Earthfury Bracers');
-- Lava Elemental
DELETE FROM `creature_loot_template` WHERE (`Entry` = 12076) AND (`Item` IN (16838, 16840, 16858));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(12076, 16838, 0, 0.2, 0, 1, 0, 1, 1, 'Lava Elemental - Earthfury Belt'),
(12076, 16840, 0, 0.2, 0, 1, 0, 1, 1, 'Lava Elemental - Earthfury Bracers'),
(12076, 16858, 0, 0.2, 0, 1, 0, 1, 1, 'Lava Elemental - Lawbringer Belt');
-- Lava Reaver
DELETE FROM `creature_loot_template` WHERE (`Entry` = 12100) AND (`Item` IN (16806, 16838, 16840, 16857, 16858));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(12100, 16806, 0, 0.34, 0, 1, 0, 1, 1, 'Lava Reaver - Felheart Belt'),
(12100, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Lava Reaver - Earthfury Belt'),
(12100, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Lava Reaver - Earthfury Bracers'),
(12100, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Lava Reaver - Lawbringer Bracers'),
(12100, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Lava Reaver - Lawbringer Belt');
-- Lava Surger
DELETE FROM `creature_loot_template` WHERE (`Entry` = 12101) AND (`Item` IN (16838, 16840, 16857, 16858, 16864));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(12101, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Lava Surger - Earthfury Belt'),
(12101, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Lava Surger - Earthfury Bracers'),
(12101, 16857, 0, 0.32, 0, 1, 0, 1, 1, 'Lava Surger - Lawbringer Bracers'),
(12101, 16858, 0, 0.34, 0, 1, 0, 1, 1, 'Lava Surger - Lawbringer Belt'),
(12101, 16864, 0, 0.3, 0, 1, 0, 1, 1, 'Lava Surger - Belt of Might');
-- Molten Destroyer
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11659) AND (`Item` IN (16840));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11659, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Molten Destroyer - Earthfury Bracers');
-- Molten Giant
DELETE FROM `creature_loot_template` WHERE (`Entry` = 11658) AND (`Item` IN (16838, 16840));
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES
(11658, 16838, 0, 0.34, 0, 1, 0, 1, 1, 'Molten Giant - Earthfury Belt'),
(11658, 16840, 0, 0.32, 0, 1, 0, 1, 1, 'Molten Giant - Earthfury Bracers');

View File

@@ -1,12 +1,16 @@
-- Missing Diplomat Quests
UPDATE quest_template SET RewardNextQuest=11222 WHERE ID=11142;
UPDATE quest_template SET RewardNextQuest=11223 WHERE ID=11222;
DELETE FROM creature_queststarter WHERE id = 4968 and quest = 11222;
DELETE FROM creature_queststarter WHERE id = 1748 and quest = 11224;
INSERT INTO creature_queststarter(id, quest) VALUES (4968, 11222);
INSERT INTO creature_queststarter(id, quest) VALUES (1748, 11223);
UPDATE quest_offer_reward SET RewardText="<Lady Jaina listens intently as you report the results of your aerial survey.>$B$BA rune circle, dragonkin? The Defias have allied themselves with HER? The traitor?$B$BAnd why would the black dragonkin be interested in an island full of naga? There are many unanswered questions, but I one thing is for certain: the Defias have a powerful ally in upper echelons of the Alliance."
WHERE ID=11142;
UPDATE quest_template SET LogTitle="Warn Bolvar!", LogDescription="Speak to Highlord Bolvar Fordragon in Stormwind Keep.", QuestDescription="Although we don't have all the answers we might like, it's imperative that you bring our findings to Highlord Bolvar Fordragon right away! He needs to know that the Defias have a powerful patron in Stormwind and that they're involved in the disappearance of King Varian!$B$BI can use my magic to expedite your trip to Stormwind. Just speak to me when you're prepared to go, $N." WHERE ID=11222;
UPDATE quest_template_addon SET NextQuestID=11223 WHERE ID=11222;
DELETE FROM creature_questender WHERE id = 1748 and quest = 11222;
DELETE FROM creature_questender WHERE id = 4968 and quest = 11223;
INSERT INTO creature_questender(id, quest) VALUES (1748, 11222);
INSERT INTO creature_questender(id, quest) VALUES (4968, 11223);

View File

@@ -0,0 +1,423 @@
DELETE FROM `creature_queststarter` WHERE `quest` IN (4182, 4183) AND `id` = 9562;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4184, 4223) AND `id` = 344;
DELETE FROM `creature_queststarter` WHERE `quest` = 4185 AND `id` = 29611;
DELETE FROM `creature_queststarter` WHERE `quest` = 4186 AND `id` = 1748;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4224, 4241, 4264) AND `id` = 9560;
DELETE FROM `creature_queststarter` WHERE `quest` IN (4242, 4282, 4322) AND `id` = 9023;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(9562, 4182), -- Dragon Menace, Helendis Riverhorn
(9562, 4183), -- True Masters [1], Helendis Riverhorn
(344, 4184), -- True Masters [2], Magistrate Solomon
(29611, 4185), -- True Masters [3], Varian Wrynn
(1748, 4186), -- True Masters [4], Highlord Bolvar Fordragon
(344, 4223), -- True Masters [5], Magistrate Solomon
(9560, 4224), -- True Masters [6], Marshal Maxwell
(9560, 4241), -- 'Marshal Windsor', Marshal Maxwell
(9023, 4242), -- Abandon Hope, Marshal Windsor
(9023, 4282), -- A Shred of Hope, Marshal Windsor
(9023, 4322); -- Jail Break!, Marshal Windsor
DELETE FROM `creature_questender` WHERE `quest` = 4182 AND `id` = 9562;
DELETE FROM `creature_questender` WHERE `quest` IN (4183, 4186) AND `id` = 344;
DELETE FROM `creature_questender` WHERE `quest` = 4184 AND `id` = 29611;
DELETE FROM `creature_questender` WHERE `quest` = 4185 AND `id` = 1748;
DELETE FROM `creature_questender` WHERE `quest` IN (4223, 4224, 4242) AND `id` = 9560;
DELETE FROM `creature_questender` WHERE `quest`IN (4241, 4264, 4282) AND `id` = 9023;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(9562, 4182), -- Dragon Menace, Helendis Riverhorn
(344, 4183), -- True Masters [1], Magistrate Solomon
(29611, 4184), -- True Masters [2], Varian Wrynn
(1748, 4185), -- True Masters [3], Highlord Bolvar Fordragon
(344, 4186), -- True Masters [4], Magister Solomon
(9560, 4223), -- True Masters [5], Marshal Maxwell
(9560, 4224), -- True Masters [6], Marshal Maxwell
(9023, 4241), -- 'Marshal Windsor', Marshal Windsor
(9560, 4242), -- Abandon Hope, Marshal Maxwell
(9023, 4264), -- A Crumpled Up Note, Marshal Windsor
(9023, 4282); -- A Shred of Hope, Marshal Windsor
-- True Masters quests
DELETE FROM `disables` WHERE `entry` IN (4183, 4184, 4185, 4186, 4223, 4224) AND `sourceType` = 1;
DELETE FROM `creature_questender` WHERE `quest` = 4322 AND `id` = 9560;
DELETE FROM `creature_questender` WHERE `quest` = 6402 AND `id` = 17804;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(17804, 6402),
(9560, 4322);
DELETE FROM `creature_queststarter` WHERE `quest` = 6402 AND `id` = 9560;
DELETE FROM `creature_queststarter` WHERE `quest` = 6403 AND `id` = 12580;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(9560, 6402),
(12580, 6403);
DELETE FROM `creature_text` WHERE `CreatureID` = 466 AND `GroupID` > 0;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(466, 1, 0, 'Reginald, you know that I cannot let you pass.', 12, 0, 100, 0, 0, 0, 8121, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_1'),
(466, 2, 0, '%s appears lost in contemplation.', 16, 0, 100, 0, 0, 0, 8124, 0, 'Marcus Jonathan - EMOTE_CONTEMPLATE'),
(466, 3, 0, 'I am ashamed, old friend. I know not what I do anymore. It is not you that would dare bring shame to the heroes of legend - it is I. It is I and the rest of these corrupt politicians. They fill our lives with empty promises, unending lies.', 12, 0, 100, 0, 0, 0, 8125, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_2'),
(466, 4, 0, 'We shame our ancestors. We shame those lost to us... forgive me, Reginald.', 12, 0, 100, 0, 0, 0, 8132, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_3'),
(466, 5, 0, 'Stand down! Can you not see that heroes walk among us?', 12, 0, 100, 0, 0, 0, 8127, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_1'),
(466, 6, 0, 'Move aside! Let them pass!', 12, 0, 100, 0, 0, 0, 8128, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_2'),
(466, 7, 0, 'Reginald Windsor is not to be harmed! He shall pass through untouched!', 14, 0, 100, 0, 0, 0, 8129, 3, 'Marcus Jonathan - SAY_JONATHAN_TO_GUARDS_3'),
(466, 8, 0, 'Go, Reginald. May the light guide your hand.', 12, 0, 100, 66, 0, 0, 8130, 0, 'Marcus Jonathan - SAY_JONATHAN_TO_MARCUS_4');
UPDATE `creature_template` SET `ScriptName` = 'npc_squire_rowe' WHERE `entry` = 17804;
UPDATE `creature_template` SET `ScriptName` = 'npc_reginald_windsor' WHERE `entry` = 12580;
UPDATE `creature_template` SET `ScriptName` = 'npc_royal_stormwind_guard' WHERE `entry` = 1756;
UPDATE `creature_template` SET `ScriptName` = 'npc_marshal_windsor' WHERE `entry` = 9023;
UPDATE `creature_template` SET `ScriptName` = 'npc_jail_break_dughal_or_seecher' WHERE `entry` IN (9022, 9679);
DELETE FROM `gossip_menu` WHERE `MenuID` = 12580 AND `TextID` = 5633;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(12580, 5633);
UPDATE `creature_template` SET `gossip_menu_id` = 12580 WHERE `entry` = 12580;
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 12580;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextId`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextId`) VALUES
(12580, 0, 0, 'I am ready, as are my forces. Let us end this masquerade!', 8256, 1, 1, 0, 0, 0, 0, '', 0);
SET @ENTRY := 12580;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Yawww!', 12, 0, 100, 0, 0, 0, 8091, 0, 'Reginald Windsor - SAY_REGINALD_SHOO_HORSE'),
(@ENTRY, 1, 0, 'I knew you would come, $n. It is good to see you again, friend.', 12, 0, 100, 0, 0, 0, 8090, 0, 'Reginald Windsor - SAY_REGINALD_END_INTRO'),
(@ENTRY, 2, 0, 'On guard, friend. The lady dragon will not give in without a fight.', 12, 0, 100, 0, 0, 0, 8107, 0, 'Reginald Windsor - SAY_REGINALD_MASQUERADE_1'),
(@ENTRY, 3, 0, 'As was fated a lifetime ago in Karazhan, monster - I come - and with me I bring justice.', 14, 0, 100, 0, 0, 0, 8109, 3, 'Reginald Windsor - SAY_REGINALD_MASQUERADE_2'),
(@ENTRY, 4, 0, 'You must do what you think is right, Marcus. We served together under Turalyon. He made us both the men that we are today. Did he err with me? Do you truly believe my intent is to cause harm to our alliance? Would I shame our heroes?', 12, 0, 100, 0, 0, 0, 8123, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_1'),
(@ENTRY, 5, 0, 'Holding me here is not the right decision, Marcus.', 12, 0, 100, 0, 0, 0, 8133, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_2'),
(@ENTRY, 6, 0, 'Dear friend, you honor them with your vigilant watch. You are steadfast in your allegiance. I do not doubt for a moment that you would not give as great a sacrifice for your people as any of the heroes you stand under.', 12, 0, 100, 0, 0, 0, 8126, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_3'),
(@ENTRY, 7, 0, 'Now, it is time to bring her reign to an end, Marcus. Stand down, friend.', 12, 0, 100, 0, 0, 0, 8134, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_4'),
(@ENTRY, 8, 0, 'Thank you, old friend. You have done the right thing.', 12, 0, 100, 0, 0, 0, 8205, 0, 'Reginald Windsor - SAY_REGINALD_TO_MARCUS_5'),
(@ENTRY, 9, 0, 'Follow me, friends. To Stormwind Keep!', 12, 0, 100, 0, 0, 0, 8206, 0, 'Reginald Windsor - SAY_MASQUERADE_3'),
(@ENTRY, 10, 0, 'Be brave, friends. The reptile will thrash wildly. It is an act of desperation. When you are ready, give me the word.', 12, 0, 100, 0, 0, 0, 8207, 0, 'Reginald Windsor - SAY_STORMWIND_BEFORE_KEEP'),
(@ENTRY, 11, 0, 'Onward!', 12, 0, 100, 0, 0, 0, 8208, 0, 'Reginald Windsor - SAY_MOVE_IN_KEEP'),
(@ENTRY, 12, 0, 'Majesty, run while you still can. She is not what you think her to be...', 12, 0, 100, 0, 0, 0, 8210, 0, 'Reginald Windsor - SAY_REGINALD_TO_ANDUINN'),
(@ENTRY, 13, 0, 'The masquerade is over, Lady Prestor. Or should I call you by your true name... Onyxia...', 12, 0, 100, 0, 0, 0, 8211, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA'),
(@ENTRY, 14, 0, 'You will not escape your fate, Onyxia. It has been prophesied - a vision resonating from the great halls of Karazhan. It ends now...', 12, 0, 100, 0, 0, 0, 8218, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA_2'),
(@ENTRY, 15, 0, 'The Dark Irons thought these tablets to be encoded. This is not any form of coding, it is the tongue of ancient dragon.', 12, 0, 100, 0, 0, 0, 8227, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA_3'),
(@ENTRY, 16, 0, 'Listen, dragon. Let the truth resonate throughout these halls.', 12, 0, 100, 0, 0, 0, 8219, 0, 'Reginald Windsor - SAY_REGINALD_TO_KATRANA'),
(@ENTRY, 17, 0, '%s reads from the tablets. Unknown, unheard sounds flow through your consciousness.', 16, 0, 100, 0, 0, 0, 8228, 0, 'Reginald Windsor - EMOTE_READ_TABLET'),
(@ENTRY, 18, 0, 'DO NOT LET HER ESCAPE!', 12, 0, 100, 0, 0, 0, 8247, 0, 'Reginald Windsor - SAY_REGINALD_TO_GUARDS'),
(@ENTRY, 19, 0, 'Bol... Bolvar... the medallion... use...', 12, 0, 100, 0, 0, 0, 8250, 0, 'Reginald Windsor - SAY_REGINALD_TO_BOLVAR'),
(@ENTRY, 20, 0, '%s dies.', 16, 0, 100, 0, 0, 0, 8251, 0, 'Reginald Windsor - EMOTE_WINDSOR_DIES'),
(@ENTRY, 21, 0, '%s reaches into his pack and pulls out the encoded tablets.', 16, 0, 100, 0, 0, 0, 8226, 0, 'Reginald Windsor - EMOTE_WINDSOR_TABLETS');
SET @ENTRY := 1749;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Seize him! Seize the worthless criminal and his allies!', 14, 0, 100, 0, 0, 0, 8119, 3, 'Lady Katrana Prestor - SAY_KATRANA_1'),
(@ENTRY, 1, 0, '%s laughs.', 16, 0, 100, 0, 0, 0, 8214, 0, 'Lady Katrana Prestor - EMOTE_KATRANA_LAUGH'),
(@ENTRY, 2, 0, 'You will be incarcerated and tried for treason, Windsor. I shall watch with glee as they hand down a guilty verdict and sentence you to death by hanging...', 12, 0, 100, 0, 0, 0, 8215, 0, 'Lady Katrana Prestor - SAY_KATRANA_2'),
(@ENTRY, 3, 0, 'And as your limp body dangles from the rafters, I shall take pleasure in knowing that a mad man has been put to death. After all, what proof do you have? Did you expect to come in here and point your fingers at royalty and leave unscathed?', 12, 0, 100, 0, 0, 0, 8216, 0, 'Lady Katrana Prestor - SAY_KATRANA_3');
SET @ENTRY := 1748;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'To the safe hall, your majesty.', 12, 0, 100, 0, 0, 0, 8212, 0, 'Highlord Bolvar Fordragon - SAY_BOLVAR_TO_ANDUINN'),
(@ENTRY, 1, 0, '%s gasps.', 16, 0, 100, 0, 0, 0, 8236, 0, 'Highlord Bolvar Fordragon - EMOTE_BOLVAR_GASP'),
(@ENTRY, 2, 0, 'Dragon filth! Guards! Guards! Seize this monster!', 14, 0, 100, 0, 0, 0, 8237, 3, 'Highlord Bolvar Fordragon - SAY_BOLVAR_TO_GUARDS'),
(@ENTRY, 3, 0, 'Reginald... I... I am sorry.', 12, 0, 100, 0, 0, 0, 8249, 0, 'Highlord Bolvar Fordragon - SAY_BOLVAR_REGINALD_DIES');
SET @ENTRY := 12756;
DELETE FROM `creature_text` WHERE `CreatureID` = @ENTRY;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 0, 0, 'Curious... Windsor, in this vision, did you survive? I only ask because one thing that I can and will assure is your death. Here and now.', 12, 0, 100, 0, 0, 0, 8235, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR'),
(@ENTRY, 1, 0, 'Yesss... Guards, come to your lord\'s aid!', 12, 0, 100, 0, 0, 0, 8239, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_2'),
(@ENTRY, 2, 0, 'Was this fated, Windsor? If it was death that you came for, then the prophecy has been fulfilled. May your consciousness rot in the Twisting Nether. Finish the rest of these meddlesome insects, children. Bolvar, you have been a pleasurable puppet.', 12, 0, 100, 0, 0, 0, 8246, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_3'),
(@ENTRY, 3, 0, 'You have failed him, mortalsss... Farewell!', 12, 0, 100, 0, 0, 0, 8248, 0, 'Lady Onyxia - SAY_ONYXIA_TO_WINDSOR_4');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=20465;
INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`Comment`) VALUES
(13,1,20465,31,3,12580,'Windsor Death hit only Reginald Windsor');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=20358;
INSERT INTO `conditions`(`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`Comment`) VALUES
(13,1,20358,31,3,1749,'Windsor Read Table hit only Katrana Prestor');
SET @ENTRY := 68;
SET @ENTRY2 := 1756;
SET @ENTRY3 := 1976;
DELETE FROM `creature_text` WHERE `CreatureID` IN (68, 1756, 1976) AND `GroupID` = 10;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(@ENTRY, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, ''),
(@ENTRY2, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY2, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY2, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY2, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY2, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY2, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY2, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, ''),
(@ENTRY3, 10, 0, 'Light be with you, sir.', 12, 0, 100, 0, 0, 0, 8167, 0, ''),
(@ENTRY3, 10, 1, 'We are but dirt beneath your feet, sir.', 12, 0, 100, 0, 0, 0, 8177, 0, ''),
(@ENTRY3, 10, 2, '...nerves of thorium.', 12, 0, 100, 0, 0, 0, 8183, 0, ''),
(@ENTRY3, 10, 3, 'Make way!', 12, 0, 100, 0, 0, 0, 8175, 0, ''),
(@ENTRY3, 10, 4, 'A living legend...', 12, 0, 100, 0, 0, 0, 8184, 0, ''),
(@ENTRY3, 10, 5, 'A moment I shall remember for always.', 12, 0, 100, 0, 0, 0, 8180, 0, ''),
(@ENTRY3, 10, 6, 'You are an inspiration to us all, sir.', 12, 0, 100, 0, 0, 0, 8170, 0, '');
DELETE FROM `creature_questender` WHERE `quest` = 6402 AND `id` = 12580;
INSERT INTO `creature_questender` VALUES
(12580, 6402);
DELETE FROM `gossip_menu_option` WHERE `MenuID` = 7480;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextId`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextId`) VALUES
(7480, 0, 0, 'Let Marshal Windsor know that I am ready.', 14388, 1, 1, 0, 0, 0, 0, '', 0);
DELETE FROM `creature_text` WHERE `CreatureID` = 17804;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(17804, 0, 0, 'The signal has been sent. He should be arriving shortly.', 12, 7, 100, 0, 0, 0, 14389, 0, '');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 7480;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 7480, 0, 0, 0, 8, 0, 6403, 0, 0, 1, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 0, 8, 0, 6402, 0, 0, 0, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 1, 8, 0, 6403, 0, 0, 1, 0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous'),
(15, 7480, 0, 0, 1, 28, 0, 6402, 0, 0, 0,0, 0, '', 'Squire Rowe - Require Stormwind Rendezvous');
DELETE FROM `gossip_menu` WHERE `MenuID` = 51749 AND `TextID` = 2693;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51750 AND `TextID` = 2694;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51751 AND `TextID` = 2695;
DELETE FROM `gossip_menu` WHERE `MenuID` = 51752 AND `TextID` = 2696;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(51749, 2693),
(51750, 2694),
(51751, 2695),
(51752, 2696);
UPDATE `creature_template` SET `gossip_menu_id` = 51749 WHERE `entry` = 1749;
DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (51749, 51750, 51751, 51752);
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcasttextId`) VALUES
(51749, 0, 0, 'Pardon the intrustion, Lady Prestor, but Highlord Bolvar suggested that I seek your advice.', 4991, 1, 1, 51750, 0, 0, 0, '', 0),
(51750, 0, 0, 'My apologies, Lady Prestor.', 4993, 1, 1, 51751, 0, 0, 0, '', 0),
(51751, 0, 0, 'Begging your pardon, Lady Prestor. That was not my intent.', 4995, 1, 1, 51752, 0, 0, 0, '', 0),
(51752, 0, 0, 'Thank you for your time, Lady Prestor.', 4997, 1, 1, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `sourcetypeorreferenceId` = 14 AND `sourcegroup` = 51749;
DELETE FROM `conditions` WHERE `sourcetypeorreferenceId` = 15 AND `sourcegroup` = 51749;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
('14','51749','2693','0','0','9','0','4185','0','0','0','0','0','','Lady Prestor, require True Masters (3)'),
('15','51749','0','0','0','9','0','4185','0','0','0','0','0','','Lady Prestor, Require True Masters (3)');
DELETE FROM `gossip_menu` WHERE `MenuID` BETWEEN 59563 AND 59575 AND `TextID` BETWEEN 2713 AND 2725;
INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES
(59563, 2713),
(59564, 2714),
(59565, 2715),
(59566, 2716),
(59567, 2717),
(59568, 2718),
(59569, 2719),
(59570, 2720),
(59571, 2721),
(59572, 2722),
(59573, 2723),
(59574, 2725);
UPDATE `creature_template` SET `gossip_menu_id` = 59563 WHERE `entry` = 9563;
DELETE FROM `gossip_menu_option` WHERE `MenuID` BETWEEN 59563 AND 59575;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcasttextId`) VALUES
(59563, 0, 0, 'Official business, John. I need some information about Marshal Windsor. Tell me about the last time you saw him.', 5007, 1, 1, 59564, 0, 0, 0, '', 0),
(59564, 0, 0, 'So what did you do?', 5010, 1, 1, 59565, 0, 0, 0, '', 0),
(59565, 0, 0, 'Start making sense, dwarf. I don\'t want to have anything to do with your cracker, your pappy, or any sort of \'discreditin.\'', 5013, 1, 1, 59566, 0, 0, 0, '', 0),
(59566, 0, 0, 'Ironfoe?', 5015, 1, 1, 59567, 0, 0, 0, '', 0),
(59567, 0, 0, 'Interesting... continue, John.', 5017, 1, 1, 59568, 0, 0, 0, '', 0),
(59568, 0, 0, 'So that\'s how Windsor died...', 5019, 1, 1, 59569, 0, 0, 0, '', 0),
(59569, 0, 0, 'So how did he die?', 5021, 1, 1, 59570, 0, 0, 0, '', 0),
(59570, 0, 0, 'Ok, so where the hell is he? Wait a minute! Are you drunk?', 5024, 1, 1, 59571, 0, 0, 0, '', 0),
(59571, 0, 0, 'WHY is he in Blackrock Depths?', 5027, 1, 1, 59572, 0, 0, 0, '', 0),
(59572, 0, 0, '300? So the Dark Irons killed him and dragged him into the Depths?', 5030, 1, 1, 59573, 0, 0, 0, '', 0),
(59573, 0, 0, 'Ahhh... Ironfoe.', 5034, 1, 1, 59574, 0, 0, 0, '', 0),
(59574, 0, 0, 'Thanks, Ragged John. Your story was very uplifting and informative.', 5038, 1, 1, 0, 0, 0, 0, '', 0);
UPDATE `smart_scripts` SET `event_param1` = 59574 WHERE `entryorguid` = 9563 AND `id` = 3 AND `event_type` = 62; -- Ragged John quest credit
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 15 AND `SourceGroup` = 59563;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15,59563,0,0,0,9,0,4224,0,0,0,0,0,'','Ragged John - Require True Masters (6)');
UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 1749;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 1749 AND `Source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) values
(1749, 0, 0, 1, 62, 0, 100, 0, 51752, 0, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Lady Katrana Prestor - On Gossip Option Select - Close Gossip'),
(1749, 0, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 15, 4185, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 'Lady Katrana Prestor - On Gossip Option Select - Complete Quest - The True Masters');
-- Spawn Lady Katrana Prestor
-- Positions are hand-made. There's a huge throne where she used to be spawned in classic...
DELETE FROM `creature` WHERE `guid` = 500800 AND `id1` = 1749;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(500800, 1749, 0, 0, 0, 1, 1, 1, -8435, 335.559, 122.163, 2.56468, 300, 0, 3497, 2568, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 30 AND `SourceEntry` = 1749;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(30, 0, 1749, 0, 0, 47, 0, 4182, 64, 0, 0, 0, 0, '', 'Lady Katrana Prestor - Visibility - Require quest Dragonkin Menace rewarded.'),
(30, 0, 1749, 0, 0, 47, 0, 6403, 64, 0, 1, 0, 0, '', 'Lady Katrana Prestor - Visibility - Require quest The Great Masquerade NOT rewarded.');
UPDATE `item_template` SET `startquest` = 4264 WHERE `entry` = 11446; -- A crumpled up note
DELETE FROM `creature` WHERE `guid` = 500801 AND `id1` = 1748;
INSERT INTO `creature` (`guid`, `id1`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(500801, 1748, 0, 0, 0, 1, 1, 1, -8445.01, 329.85, 122.163, 2.12562, 300, 0, 1055700, 67740, 0, 0, 0, 0, '', 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 30 AND `SourceEntry` = 1748;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(30, 0, 1748, 0, 0, 47, 0, 4182, 64, 0, 0, 0, 0, '', 'Highlord Bolvar Fordring - Visibility - Require quest Dragonkin Menace rewarded.');
DELETE FROM `script_waypoint` WHERE `entry` = 9023;
INSERT INTO `script_waypoint` (`entry`, `pointid`, `location_x`, `location_y`, `location_z`, `waittime`, `point_comment`) VALUES
(9023, 1, 316.336, -225.528, -77.7258, 2000, 'SAY_WINDSOR_START'),
(9023, 2, 322.96, -207.13, -77.87, 0, ''),
(9023, 3, 281.05, -172.16, -75.12, 0, ''),
(9023, 4, 272.19, -139.14, -70.61, 0, ''),
(9023, 5, 283.62, -116.09, -70.21, 0, ''),
(9023, 6, 296.18, -94.3, -74.08, 0, ''),
(9023, 7, 294.57, -93.11, -74.08, 0, 'escort paused - SAY_WINDSOR_CELL_DUGHAL_1'),
(9023, 8, 294.57, -93.11, -74.08, 10000, ''),
(9023, 9, 294.57, -93.11, -74.08, 3000, 'SAY_WINDSOR_CELL_DUGHAL_3'),
(9023, 10, 314.31, -74.31, -76.09, 0, ''),
(9023, 11, 360.22, -62.93, -66.77, 0, ''),
(9023, 12, 383.38, -69.4, -63.25, 0, ''),
(9023, 13, 389.99, -67.86, -62.57, 0, ''),
(9023, 14, 400.98, -72.01, -62.31, 0, 'SAY_WINDSOR_EQUIPMENT_1'),
(9023, 15, 404.22, -62.3, -63.5, 2000, ''),
(9023, 16, 404.22, -62.3, -63.5, 1500, 'open supply door'),
(9023, 17, 407.65, -51.86, -63.96, 0, ''),
(9023, 18, 403.61, -51.71, -63.92, 1000, 'SAY_WINDSOR_EQUIPMENT_2'),
(9023, 19, 403.61, -51.71, -63.92, 2000, ''),
(9023, 20, 403.61, -51.71, -63.92, 1000, 'open supply crate'),
(9023, 21, 403.61, -51.71, -63.92, 1000, 'update entry to Reginald Windsor'),
(9023, 22, 403.61, -52.71, -63.92, 4000, 'SAY_WINDSOR_EQUIPMENT_3'),
(9023, 23, 403.61, -52.71, -63.92, 4000, 'SAY_WINDSOR_EQUIPMENT_4'),
(9023, 24, 406.33, -54.87, -63.95, 0, ''),
(9023, 25, 403.86, -73.88, -62.02, 0, ''),
(9023, 26, 428.8, -81.34, -64.91, 0, ''),
(9023, 27, 557.03, -119.71, -61.83, 0, ''),
(9023, 28, 573.4, -124.39, -65.07, 0, ''),
(9023, 29, 593.91, -130.29, -69.25, 0, ''),
(9023, 30, 593.21, -132.16, -69.25, 0, 'escort paused - SAY_WINDSOR_CELL_JAZ_1'),
(9023, 31, 593.21, -132.16, -69.25, 1000, ''),
(9023, 32, 593.21, -132.16, -69.25, 3000, 'SAY_WINDSOR_CELL_JAZ_2'),
(9023, 33, 622.81, -135.55, -71.92, 0, ''),
(9023, 34, 634.68, -151.29, -70.32, 0, ''),
(9023, 35, 635.06, -153.25, -70.32, 0, 'escort paused - SAY_WINDSOR_CELL_SHILL_1'),
(9023, 36, 635.06, -153.25, -70.32, 3000, ''),
(9023, 37, 635.06, -153.25, -70.32, 5000, 'SAY_WINDSOR_CELL_SHILL_2'),
(9023, 38, 635.06, -153.25, -70.32, 2000, 'SAY_WINDSOR_CELL_SHILL_3'),
(9023, 39, 655.25, -172.39, -73.72, 0, ''),
(9023, 40, 654.79, -226.3, -83.06, 0, ''),
(9023, 41, 622.85, -268.85, -83.96, 0, ''),
(9023, 42, 579.45, -275.56, -80.44, 0, ''),
(9023, 43, 561.19, -266.85, -75.59, 0, ''),
(9023, 44, 547.91, -253.92, -70.34, 0, ''),
(9023, 45, 549.2, -252.4, -70.34, 0, 'escort paused - SAY_WINDSOR_CELL_CREST_1'),
(9023, 46, 549.2, -252.4, -70.34, 1000, ''),
(9023, 47, 549.2, -252.4, -70.34, 4000, 'SAY_WINDSOR_CELL_CREST_2'),
(9023, 48, 555.33, -269.16, -74.4, 0, ''),
(9023, 49, 554.31, -270.88, -74.4, 0, 'escort paused - SAY_WINDSOR_CELL_TOBIAS_1'),
(9023, 50, 554.31, -270.88, -74.4, 10000, ''),
(9023, 51, 554.31, -270.88, -74.4, 4000, 'SAY_WINDSOR_CELL_TOBIAS_2'),
(9023, 52, 536.1, -249.6, -67.47, 0, ''),
(9023, 53, 520.94, -216.65, -59.28, 0, ''),
(9023, 54, 505.99, -148.74, -62.17, 0, ''),
(9023, 55, 484.21, -56.24, -62.43, 0, ''),
(9023, 56, 470.39, -6.01, -70.1, 0, ''),
(9023, 57, 452.45, 29.85, -70.37, 1500, 'SAY_WINDSOR_FREE_1'),
(9023, 58, 452.45, 29.85, -70.37, 15000, 'SAY_WINDSOR_FREE_2');
DELETE FROM `creature_text` WHERE `CreatureID` = 9023;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9023, 0, 0, 'You locked up the wrong Marshal, $n. Prepare to be destroyed!', 12, 0, 100, 0, 0, 0, 5253, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 1, 'I bet you\'re sorry now, aren\'nt you!?!', 12, 0, 100, 0, 0, 0, 5252, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 2, 'You better hold me back or $n is going to feel some prison house beatings.', 12, 0, 100, 0, 0, 0, 5250, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 0, 3, 'Administering fists of fury on $n!', 12, 0, 100, 0, 0, 0, 5249, 0, 'Marshal Windsor - SAY_AGGRO'),
(9023, 1, 0, 'Let\'s get a move on. My gear should be in the storage area up this way...', 12, 0, 100, 0, 0, 0, 5205, 0, 'Marshal Windsor - SAY_START_ESCORT'),
(9023, 2, 0, 'Check that cell, $n. If someone is alive in there, we need to get them out.', 12, 0, 100, 0, 0, 0, 5207, 0, 'Marshal Windsor - SAY_DUGHAL_CELL_1'),
(9023, 3, 0, 'Good work! We\'re almost there! This way.', 12, 0, 100, 0, 0, 0, 5213, 0, 'Marshal Windsor - SAY_DUGHAL_CELL_2'),
(9023, 4, 0, 'This is it, $n. My stuff should be in that room. Cover me, I\'m going in!', 12, 0, 100, 0, 0, 0, 5214, 0, 'Marshal Windsor - SAY_EQUIPMENT_1'),
(9023, 5, 0, 'Ah, there it is!', 12, 0, 100, 0, 0, 0, 5215, 0, 'Marshal Windsor - SAY_EQUIPMENT_2');
-- Windsor, armored up.
DELETE FROM `creature_text` WHERE `CreatureID` = 9682;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9682, 0, 0, 'You locked up the wrong Marshal, $n. Prepare to be destroyed!', 12, 0, 100, 0, 0, 0, 5253, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 1, 'I bet you\'re sorry now, aren\'nt you!?!', 12, 0, 100, 0, 0, 0, 5252, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 2, 'You better hold me back or $n is going to feel some prison house beatings.', 12, 0, 100, 0, 0, 0, 5250, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 0, 3, 'Administering fists of fury on $n!', 12, 0, 100, 0, 0, 0, 5249, 0, 'Marshal Windsor - SAY_AGGRO'),
(9682, 6, 0, 'Can you feel the power, $n??? It\'s time to ROCK!', 12, 0, 100, 0, 0, 0, 5216, 0, 'Reginald Windsor - SAY_EQUIPMENT_3'),
(9682, 7, 0, 'Now we just have to free Tobias and we can get out of here. This way!', 12, 0, 100, 0, 0, 0, 5217, 0, 'Reginald Windsor - SAY_EQUIPMENT_4'),
(9682, 8, 0, 'Open it.', 12, 0, 100, 0, 0, 0, 5222, 0, 'Reginald Windsor - SAY_JAZ_CELL_1'),
(9682, 9, 0, 'I never did like those two. Let\'s get moving.', 12, 0, 100, 0, 0, 0, 5223, 0, 'Reginald Windsor - SAY_JAZ_CELL2'),
(9682, 10, 0, 'Open it and be careful this time!', 12, 0, 100, 0, 0, 0, 5224, 0, 'Reginald Windsor - SAY_SHILL_CELL_1'),
(9682, 11, 0, 'That intolerant dirtbag finally got what was coming to him. Good riddance!', 12, 0, 100, 0, 0, 0, 5225, 0, 'Reginald Windsor - SAY_SHILL_CELL_2'),
(9682, 12, 0, 'Alright, let\'s go.', 12, 0, 100, 0, 0, 0, 5227, 0, 'Reginald Windsor - SAY_SHILL_CELL_3'),
(9682, 13, 0, 'Open it. We need to hurry up. I can smell those Dark Irons coming a mile away and I can tell you one thing, they\'re COMING!', 12, 0, 100, 0, 0, 0, 5228, 0, 'Reginald Windsor - SAY_CREST_CELL_1'),
(9682, 14, 0, 'He has to be in the last cell. Unless... they killed him.', 12, 0, 100, 0, 0, 0, 5229, 0, 'Reginald Windsor - SAY_CREST_CELL_2'),
(9682, 15, 0, 'Get him out of there!', 12, 0, 100, 0, 0, 0, 5230, 0, 'Reginald Windsor - SAY_TOBIAS_CELL_1'),
(9682, 16, 0, 'Excellent work, $n. Let\'s find the exit. I think I know the way. Follow me!', 12, 0, 100, 0, 0, 0, 5221, 0, 'Reginald Windsor - SAY_TOBIAS_CELL_2'),
(9682, 17, 0, 'We made it!', 12, 0, 100, 0, 0, 0, 5231, 0, 'Reginald Windsor - SAY_FREE_1'),
(9682, 18, 0, 'Meet me at Maxwell\'s encampment. We\'ll go over the next stages of the plan there and figure out a way to decode my tablets without the decryption ring.', 12, 0, 100, 0, 0, 0, 5232, 0, 'Reginald Windsor - SAY_FREE_2');
DELETE FROM `creature_text` WHERE `CreatureID` = 9022;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9022, 0, 0, 'Thank you, $n! I\'m free!!!', 12, 0, 100, 0, 0, 0, 5210, 0,'Dughal Stormwing - On Gossip Select');
DELETE FROM `creature_text` WHERE `CreatureID` = 9679;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(9679, 0, 0, 'Finally!! I can leave this dump.', 12, 0, 100, 0, 0, 0, 5218, 0,'Tobias Seecher - SAY_FREED');
-- The Great Masquerade
DELETE FROM `creature_questender` WHERE `id` = 1748 AND `quest` = 6403;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(1748, 6403);
-- Disable mmaps for Reginald in stormwind
UPDATE `creature_template` SET `flags_extra` = `flags_extra` |536870912 WHERE `entry` = 12580;
DELETE FROM `creature_queststarter` WHERE `quest` = 6501;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(1748, 6501);
DELETE FROM `creature_queststarter` WHERE `quest` = 6501;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(1748, 6501);
DELETE FROM `creature_queststarter` WHERE `quest` = 6502;
INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES
(10929, 6502);
DELETE FROM `creature_questender` WHERE `quest` = 6501;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(10929, 6501);
DELETE FROM `creature_questender` WHERE `quest` = 6502;
INSERT INTO `creature_questender` (`id`, `quest`) VALUES
(10929, 6502);
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 1748 AND GroupID = 2;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 1749 AND GroupID = 0;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 12580 AND GroupID = 3;
UPDATE creature_text SET TextRange = 2 WHERE CreatureID = 466 AND GroupID = 7;
UPDATE `creature_template` SET `npcflag` = `npcflag` |1|2 WHERE `entry` = 1749;
UPDATE `quest_template` SET `flags` = `flags`|2|8 WHERE `id` = 6403; -- The Great Masquerade, shareable & escort flag
-- Adjust quest Mother's Milk gossip option to work with changed Ragged John gossip menu
DELETE FROM `gossip_menu_option` WHERE `MenuID`=59563 AND `OptionID`=1;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES (59563, 1, 0, 'Milk me, John.', 5833, 1, 1, 2062, 0, 0, 0, '', 0, 0);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=59563 AND `SourceEntry`=1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(15, 59563, 1, 0, 1, 1, 0, 16468, 0, 0, 0, 0, 0, '', 'Show Gossip 59563 option 1 only if player has aura 16468'),
(15, 59563, 1, 0, 1, 9, 0, 4866, 0, 0, 0, 0, 0, '', 'Show gossip 59563 option 1 if player does have quest 4866 taken');

View File

@@ -11,6 +11,8 @@ void AddSC_instance_molten_core_60_1_A();
void AddSC_quest_jail_break_60_2();
void AddSC_quest_the_masquerade_60_2();
void AddSC_boss_lord_kazzak_60_2();
void AddSC_boss_chromaggus_60_2_A();
void Addmod_individual_progressionScripts()
{
@@ -22,5 +24,6 @@ void Addmod_individual_progressionScripts()
AddSC_quest_jail_break_60_2();
AddSC_quest_the_masquerade_60_2();
AddSC_boss_lord_kazzak_60_2();
AddSC_boss_chromaggus_60_2_A();
}

View File

@@ -0,0 +1,124 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DEF_BLACKWING_LAIR_60_1_H
#define DEF_BLACKWING_LAIR_60_1_H
#include "CreatureAIImpl.h"
constexpr uint32 EncounterCount = 8;
#define BWLScriptName "instance_blackwing_lair"
#define DataHeader "BWL"
enum BWLEncounter
{
// Encounter States/Boss GUIDs
DATA_RAZORGORE_THE_UNTAMED = 0,
DATA_VAELASTRAZ_THE_CORRUPT = 1,
DATA_BROODLORD_LASHLAYER = 2,
DATA_FIREMAW = 3,
DATA_EBONROC = 4,
DATA_FLAMEGOR = 5,
DATA_CHROMAGGUS = 6,
DATA_NEFARIAN = 7,
// Additional Data
DATA_LORD_VICTOR_NEFARIUS = 8,
// Doors
DATA_GO_CHROMAGGUS_DOOR = 9
};
enum BWLCreatureIds
{
NPC_RAZORGORE = 12435,
NPC_BLACKWING_DRAGON = 12422,
NPC_BLACKWING_TASKMASTER = 12458,
NPC_BLACKWING_LEGIONAIRE = 12416,
NPC_BLACKWING_WARLOCK = 12459,
NPC_BLACKWING_MAGE = 12420,
NPC_VAELASTRAZ = 13020,
NPC_BROODLORD = 12017,
NPC_FIREMAW = 11983,
NPC_EBONROC = 14601,
NPC_FLAMEGOR = 11981,
NPC_CHROMAGGUS = 14020,
NPC_VICTOR_NEFARIUS = 10162,
NPC_NEFARIAN = 11583,
// Nefarian fight
NPC_BLACK_SPAWNER = 14307,
NPC_RED_SPAWNER = 14309,
NPC_GREEN_SPAWNER = 14310,
NPC_BRONZE_SPAWNER = 14311,
NPC_BLUE_SPAWNER = 14312,
NPC_BRONZE_DRAKONID = 14263,
NPC_BLUE_DRAKONID = 14261,
NPC_RED_DRAKONID = 14264,
NPC_GREEN_DRAKONID = 14262,
NPC_BLACK_DRAKONID = 14265,
NPC_CHROMATIC_DRAKONID = 14302,
NPC_BONE_CONSTRUCT = 14605
};
enum BWLGameObjectIds
{
GO_BLACK_DRAGON_EGG = 177807,
GO_PORTCULLIS_RAZORGORE = 175946,
GO_PORTCULLIS_RAZORGORE_ROOM = 176964,
GO_PORTCULLIS_VAELASTRASZ = 175185,
GO_PORTCULLIS_BROODLORD = 179365,
GO_PORTCULLIS_THREEDRAGONS = 179115,
GO_CHROMAGGUS_LEVER = 179148,
GO_PORTCULLIS_CHROMAGGUS = 179116,
GO_PORTCULLIS_NEFARIAN = 179117,
GO_SUPPRESSION_DEVICE = 179784
};
enum BWLEvents
{
EVENT_RAZOR_SPAWN = 1,
EVENT_RAZOR_PHASE_TWO = 2,
EVENT_RESPAWN_NEFARIUS = 3
};
enum BWLMisc
{
// Razorgore Egg Event
ACTION_PHASE_TWO = 1,
DATA_EGG_EVENT = 2,
TALK_EGG_BROKEN_RAND = 3,
SAY_NEFARIAN_VAEL_INTRO = 14,
// Nefarian fight
DATA_NEFARIAN_LEFT_TUNNEL = 15,
DATA_NEFARIAN_RIGHT_TUNNEL = 16,
ACTION_NEFARIUS_ADD_KILLED = 2
};
template <class AI, class T>
inline AI* GetBlackwingLairAI(T* obj)
{
return GetInstanceAI<AI>(obj, BWLScriptName);
}
#define RegisterBlackwingLairCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetBlackwingLairAI)
#endif

View File

@@ -0,0 +1,349 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published by the
* Free Software Foundation; either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "GameObject.h"
#include "GameObjectAI.h"
#include "InstanceScript.h"
#include "Map.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "blackwing_lair.h"
enum Emotes
{
EMOTE_FRENZY = 0,
EMOTE_SHIMMER = 1,
};
enum Spells
{
// Other spells
SPELL_INCINERATE = 23308, //Incinerate 23308, 23309
SPELL_TIMELAPSE = 23310, //Time lapse 23310, 23311(old threat mod that was removed in 2.01)
SPELL_CORROSIVEACID = 23313, //Corrosive Acid 23313, 23314
SPELL_IGNITEFLESH = 23315, //Ignite Flesh 23315, 23316
SPELL_FROSTBURN = 23187, //Frost burn 23187, 23189
// Brood Affliction 23173 - Scripted Spell that cycles through all targets within 100 yards and has a chance to cast one of the afflictions on them
// Since Scripted spells arn't coded I'll just write a function that does the same thing
SPELL_BROODAF_BLUE = 23153, //Blue affliction 23153
SPELL_BROODAF_BLACK = 23154, //Black affliction 23154
SPELL_BROODAF_RED = 23155, //Red affliction 23155 (23168 on death)
SPELL_BROODAF_BRONZE = 23170, //Bronze Affliction 23170
SPELL_BROODAF_GREEN = 23169, //Brood Affliction Green 23169
SPELL_CHROMATIC_MUT_1 = 23174, //Spell cast on player if they get all 5 debuffs
SPELL_ELEMENTAL_SHIELD = 22276,
SPELL_FRENZY = 28371, //The frenzy spell may be wrong
SPELL_ENRAGE = 28747
};
enum Events
{
EVENT_SHIMMER = 1,
EVENT_BREATH_1 = 2,
EVENT_BREATH_2 = 3,
EVENT_AFFLICTION = 4,
EVENT_FRENZY = 5,
EVENT_CHECK_TIME_LAPSE_TARGET = 6
};
enum Misc
{
DATA_LEVER_USED = 0
};
// not sniffed yet.
Position const homePos = { -7487.577148f, -1074.366943f, 476.555023f, 5.325001f };
class boss_chromaggus_60_2_A : public CreatureScript
{
public:
boss_chromaggus_60_2_A() : CreatureScript("boss_chromaggus") { }
struct boss_chromaggusAI_60_2_A : public BossAI
{
boss_chromaggusAI_60_2_A(Creature* creature) : BossAI(creature, DATA_CHROMAGGUS)
{
Initialize();
Breath1_Spell = 0;
Breath2_Spell = 0;
// Select the 2 breaths that we are going to use until despawned
// 5 possiblities for the first breath, 4 for the second, 20 total possiblites
// This way we don't end up casting 2 of the same breath
// TL TL would be stupid
switch (urand(0, 19))
{
// B1 - Incin
case 0:
Breath1_Spell = SPELL_INCINERATE;
Breath2_Spell = SPELL_TIMELAPSE;
break;
case 1:
Breath1_Spell = SPELL_INCINERATE;
Breath2_Spell = SPELL_CORROSIVEACID;
break;
case 2:
Breath1_Spell = SPELL_INCINERATE;
Breath2_Spell = SPELL_IGNITEFLESH;
break;
case 3:
Breath1_Spell = SPELL_INCINERATE;
Breath2_Spell = SPELL_FROSTBURN;
break;
// B1 - TL
case 4:
Breath1_Spell = SPELL_TIMELAPSE;
Breath2_Spell = SPELL_INCINERATE;
break;
case 5:
Breath1_Spell = SPELL_TIMELAPSE;
Breath2_Spell = SPELL_CORROSIVEACID;
break;
case 6:
Breath1_Spell = SPELL_TIMELAPSE;
Breath2_Spell = SPELL_IGNITEFLESH;
break;
case 7:
Breath1_Spell = SPELL_TIMELAPSE;
Breath2_Spell = SPELL_FROSTBURN;
break;
//B1 - Acid
case 8:
Breath1_Spell = SPELL_CORROSIVEACID;
Breath2_Spell = SPELL_INCINERATE;
break;
case 9:
Breath1_Spell = SPELL_CORROSIVEACID;
Breath2_Spell = SPELL_TIMELAPSE;
break;
case 10:
Breath1_Spell = SPELL_CORROSIVEACID;
Breath2_Spell = SPELL_IGNITEFLESH;
break;
case 11:
Breath1_Spell = SPELL_CORROSIVEACID;
Breath2_Spell = SPELL_FROSTBURN;
break;
//B1 - Ignite
case 12:
Breath1_Spell = SPELL_IGNITEFLESH;
Breath2_Spell = SPELL_INCINERATE;
break;
case 13:
Breath1_Spell = SPELL_IGNITEFLESH;
Breath2_Spell = SPELL_CORROSIVEACID;
break;
case 14:
Breath1_Spell = SPELL_IGNITEFLESH;
Breath2_Spell = SPELL_TIMELAPSE;
break;
case 15:
Breath1_Spell = SPELL_IGNITEFLESH;
Breath2_Spell = SPELL_FROSTBURN;
break;
//B1 - Frost
case 16:
Breath1_Spell = SPELL_FROSTBURN;
Breath2_Spell = SPELL_INCINERATE;
break;
case 17:
Breath1_Spell = SPELL_FROSTBURN;
Breath2_Spell = SPELL_TIMELAPSE;
break;
case 18:
Breath1_Spell = SPELL_FROSTBURN;
Breath2_Spell = SPELL_CORROSIVEACID;
break;
case 19:
Breath1_Spell = SPELL_FROSTBURN;
Breath2_Spell = SPELL_IGNITEFLESH;
break;
};
EnterEvadeMode();
}
void Initialize()
{
Enraged = false;
}
void SetData(uint32 id, uint32 /*data*/) override
{
if (id == DATA_LEVER_USED)
{
me->SetHomePosition(homePos);
}
}
void Reset() override
{
_Reset();
Initialize();
}
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_SHIMMER, 1000);
events.ScheduleEvent(EVENT_BREATH_1, 30000);
events.ScheduleEvent(EVENT_BREATH_2, 60000);
events.ScheduleEvent(EVENT_AFFLICTION, 10000);
events.ScheduleEvent(EVENT_FRENZY, 15000);
}
bool CanAIAttack(Unit const* victim) const override
{
return !victim->HasAura(SPELL_TIMELAPSE);
}
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
events.Update(diff);
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
while (uint32 eventId = events.ExecuteEvent())
{
switch (eventId)
{
case EVENT_SHIMMER:
// Cast new random vulnerabilty on self
DoCast(me, SPELL_ELEMENTAL_SHIELD);
Talk(EMOTE_SHIMMER);
events.ScheduleEvent(EVENT_SHIMMER, 45000);
break;
case EVENT_BREATH_1:
DoCastVictim(Breath1_Spell);
if (Breath1_Spell == SPELL_TIMELAPSE)
{
if (Unit* target = me->GetVictim())
{
_timeLapseTarget = me->GetVictim()->GetGUID();
_timeLapseThreat = me->getThreatMgr().getThreat(me->GetVictim());
me->getThreatMgr().modifyThreatPercent(target, -100);
events.ScheduleEvent(EVENT_CHECK_TIME_LAPSE_TARGET, 8000);
}
}
events.ScheduleEvent(EVENT_BREATH_1, 60000);
break;
case EVENT_BREATH_2:
DoCastVictim(Breath2_Spell);
if (Breath2_Spell == SPELL_TIMELAPSE)
{
if (Unit* target = me->GetVictim())
{
_timeLapseTarget = me->GetVictim()->GetGUID();
_timeLapseThreat = me->getThreatMgr().getThreat(me->GetVictim());
me->getThreatMgr().modifyThreatPercent(target, -100);
events.ScheduleEvent(EVENT_CHECK_TIME_LAPSE_TARGET, 8000);
}
}
events.ScheduleEvent(EVENT_BREATH_2, 60000);
break;
case EVENT_AFFLICTION:
{
uint32 afflictionSpellID = RAND(SPELL_BROODAF_BLUE, SPELL_BROODAF_BLACK, SPELL_BROODAF_RED, SPELL_BROODAF_BRONZE, SPELL_BROODAF_GREEN);
std::vector<Player*> playerTargets;
Map::PlayerList const& players = me->GetMap()->GetPlayers();
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
{
if (Player* player = itr->GetSource())
{
if (!player->IsGameMaster() && !player->IsSpectator() && player->IsAlive())
{
playerTargets.push_back(player);
}
}
}
if (playerTargets.size() > 12)
{
Acore::Containers::RandomResize(playerTargets, 12);
}
for (Player* player : playerTargets)
{
DoCast(player, afflictionSpellID, true);
if (player->HasAura(SPELL_BROODAF_BLUE) && player->HasAura(SPELL_BROODAF_BLACK) && player->HasAura(SPELL_BROODAF_RED) &&
player->HasAura(SPELL_BROODAF_BRONZE) && player->HasAura(SPELL_BROODAF_GREEN))
{
DoCast(player, SPELL_CHROMATIC_MUT_1);
}
}
events.ScheduleEvent(EVENT_AFFLICTION, 10000);
break;
}
case EVENT_FRENZY:
DoCast(me, SPELL_FRENZY);
events.ScheduleEvent(EVENT_FRENZY, 10000, 15000);
break;
case EVENT_CHECK_TIME_LAPSE_TARGET:
if (Unit* target = ObjectAccessor::GetUnit(*me, _timeLapseTarget))
{
me->getThreatMgr().addThreat(target, _timeLapseThreat);
}
break;
}
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
}
// Enrage if not already enraged and below 20%
if (!Enraged && HealthBelowPct(20))
{
DoCast(me, SPELL_ENRAGE);
Enraged = true;
}
DoMeleeAttackIfReady();
}
private:
uint32 Breath1_Spell;
uint32 Breath2_Spell;
bool Enraged;
float _timeLapseThreat;
ObjectGuid _timeLapseTarget;
};
CreatureAI* GetAI(Creature* creature) const override
{
return GetBlackwingLairAI<boss_chromaggusAI_60_2_A>(creature);
}
};
void AddSC_boss_chromaggus_60_2_A()
{
new boss_chromaggus_60_2_A();
}

View File

@@ -207,7 +207,6 @@ public:
}
else if (me->HealthBelowPctDamaged(40, damage) && Phase == PHASE_AIRPHASE)
{
me->InterruptNonMeleeSpells(false);
SetPhase(PHASE_LANDED);
}
}

View File

@@ -181,7 +181,7 @@ public:
break;
case 17731: // Eruption
spellInfo->Effects[EFFECT_0].DieSides = 375;
spellInfo->Effects[EFFECT_0].BasePoints = 1312;
spellInfo->Effects[EFFECT_0].BasePoints = 656;
break;
case 17086: // Breath
case 17087: