From a07d9092fb0e32d804355b1d87d1a06d73191e36 Mon Sep 17 00:00:00 2001 From: ratkosrb Date: Mon, 17 Dec 2018 01:18:19 +0200 Subject: [PATCH] Assing minimum patch to all items. --- sql/migrations/20181216231642_world.sql | 1146 +++++++++++++++++++++++ src/game/ObjectMgr.cpp | 15 +- src/game/ObjectMgr.h | 2 + src/game/ScriptMgr.cpp | 110 ++- 4 files changed, 1233 insertions(+), 40 deletions(-) create mode 100644 sql/migrations/20181216231642_world.sql diff --git a/sql/migrations/20181216231642_world.sql b/sql/migrations/20181216231642_world.sql new file mode 100644 index 000000000..bab6bdda9 --- /dev/null +++ b/sql/migrations/20181216231642_world.sql @@ -0,0 +1,1146 @@ +DROP PROCEDURE IF EXISTS add_migration; +delimiter ?? +CREATE PROCEDURE `add_migration`() +BEGIN +DECLARE v INT DEFAULT 1; +SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20181216231642'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20181216231642'); +-- Add your query below. + + +-- These are TBC items but they exist in Blizzard's Classic DB used in the demo client. +UPDATE `item_template` SET `patch`=11 WHERE `entry` IN (20483, 20482, 20474, 20472, 20470); + +-- Items added in patch 1.9. +UPDATE `item_template` SET `patch` = 7 WHERE `patch` < 7 && `entry` IN (21981, 21980, 21979, 21975, 21960, 21926, 21925, 21921, 21920, 21831, 21823, 21822, 21821, 21820, 21819, 21818, 21817, 21816, 21815, 21813, 21812, 21751, 21750, 21749, 21747, 21746, 21745, 21743, 21742, 21741, 21740, 21738, 21737, 21735, 21734, 21733, 21732, 21731, 21730, 21729, 21728, 21727, 21726, 21725, 21724, 21721, 21711, 21640, 21570, 21569, 21552, 21545, 21540, 21537, 21536, 21535, 21534, 21533, 21528, 21515, 21514, 21513, 21512, 21511, 21510, 21509, 21508, 21438, 21436, 21385, 21384, 21382, 21381, 21380, 21379, 21378, 21274, 21265, 21264, 21263, 21262, 21261, 21260, 21259, 21258, 21257, 21256, 21255, 21253, 21252, 21251, 21250, 21249, 21248, 21245, 21228, 21227, 21226, 21225, 21224, 21223, 21222, 21217, 21167, 21166, 21165, 21163, 21161, 21160, 21159, 21158, 21156, 21155, 21153, 21150, 21149, 21148, 21147, 21146, 21145, 21144, 21142, 21141, 21140, 21135, 21130, 21113, 21112, 21111, 21110, 21109, 21108, 21107, 21106, 21105, 21104, 21103, 21100, 21072, 21071, 21043, 21042, 21041, 21037, 21033, 21032, 21031, 21030, 21029, 21028, 21027, 21024, 21023, 20949, 20948, 20947, 20946, 20945, 20944, 20943, 20942, 20941, 20940, 20939, 20937, 20936, 20887, 20883, 20814, 20810, 20807, 20806, 20803, 20802, 20801, 20800, 20770, 20769, 20768, 20767, 20766, 20763, 20750, 20749, 20748, 20747, 20746, 20745, 20744, 20739, 20725, 20709, 20708, 20415, 20403, 20402, 20384); +UPDATE `item_loot_template` SET `patch_min`=7 WHERE (`patch_min` < 7) && `entry` IN (21981, 21980, 21979, 21975, 21960, 21926, 21925, 21921, 21920, 21831, 21823, 21822, 21821, 21820, 21819, 21818, 21817, 21816, 21815, 21813, 21812, 21751, 21750, 21749, 21747, 21746, 21745, 21743, 21742, 21741, 21740, 21738, 21737, 21735, 21734, 21733, 21732, 21731, 21730, 21729, 21728, 21727, 21726, 21725, 21724, 21721, 21711, 21640, 21570, 21569, 21552, 21545, 21540, 21537, 21536, 21535, 21534, 21533, 21528, 21515, 21514, 21513, 21512, 21511, 21510, 21509, 21508, 21438, 21436, 21385, 21384, 21382, 21381, 21380, 21379, 21378, 21274, 21265, 21264, 21263, 21262, 21261, 21260, 21259, 21258, 21257, 21256, 21255, 21253, 21252, 21251, 21250, 21249, 21248, 21245, 21228, 21227, 21226, 21225, 21224, 21223, 21222, 21217, 21167, 21166, 21165, 21163, 21161, 21160, 21159, 21158, 21156, 21155, 21153, 21150, 21149, 21148, 21147, 21146, 21145, 21144, 21142, 21141, 21140, 21135, 21130, 21113, 21112, 21111, 21110, 21109, 21108, 21107, 21106, 21105, 21104, 21103, 21100, 21072, 21071, 21043, 21042, 21041, 21037, 21033, 21032, 21031, 21030, 21029, 21028, 21027, 21024, 21023, 20949, 20948, 20947, 20946, 20945, 20944, 20943, 20942, 20941, 20940, 20939, 20937, 20936, 20887, 20883, 20814, 20810, 20807, 20806, 20803, 20802, 20801, 20800, 20770, 20769, 20768, 20767, 20766, 20763, 20750, 20749, 20748, 20747, 20746, 20745, 20744, 20739, 20725, 20709, 20708, 20415, 20403, 20402, 20384); +INSERT INTO `forbidden_items` VALUES +(20384, 6, 1), +(20402, 6, 1), +(20403, 6, 1), +(20415, 6, 1), +(20708, 6, 1), +(20709, 6, 1), +(20739, 6, 1), +(20744, 6, 1), +(20745, 6, 1), +(20746, 6, 1), +(20747, 6, 1), +(20748, 6, 1), +(20749, 6, 1), +(20750, 6, 1), +(20763, 6, 1), +(20766, 6, 1), +(20767, 6, 1), +(20768, 6, 1), +(20769, 6, 1), +(20770, 6, 1), +(20800, 6, 1), +(20801, 6, 1), +(20802, 6, 1), +(20803, 6, 1), +(20806, 6, 1), +(20807, 6, 1), +(20810, 6, 1), +(20814, 6, 1), +(20883, 6, 1), +(20887, 6, 1), +(20936, 6, 1), +(20937, 6, 1), +(20939, 6, 1), +(20940, 6, 1), +(20941, 6, 1), +(20942, 6, 1), +(20943, 6, 1), +(20944, 6, 1), +(20945, 6, 1), +(20946, 6, 1), +(20947, 6, 1), +(20948, 6, 1), +(20949, 6, 1), +(21027, 6, 1), +(21028, 6, 1), +(21029, 6, 1), +(21030, 6, 1), +(21031, 6, 1), +(21032, 6, 1), +(21033, 6, 1), +(21037, 6, 1), +(21041, 6, 1), +(21042, 6, 1), +(21043, 6, 1), +(21071, 6, 1), +(21100, 6, 1), +(21103, 6, 1), +(21104, 6, 1), +(21105, 6, 1), +(21106, 6, 1), +(21107, 6, 1), +(21108, 6, 1), +(21109, 6, 1), +(21110, 6, 1), +(21111, 6, 1), +(21112, 6, 1), +(21113, 6, 1), +(21130, 6, 1), +(21135, 6, 1), +(21140, 6, 1), +(21141, 6, 1), +(21142, 6, 1), +(21144, 6, 1), +(21145, 6, 1), +(21146, 6, 1), +(21147, 6, 1), +(21148, 6, 1), +(21149, 6, 1), +(21150, 6, 1), +(21153, 6, 1), +(21155, 6, 1), +(21156, 6, 1), +(21158, 6, 1), +(21159, 6, 1), +(21160, 6, 1), +(21161, 6, 1), +(21163, 6, 1), +(21165, 6, 1), +(21166, 6, 1), +(21167, 6, 1), +(21222, 6, 1), +(21223, 6, 1), +(21224, 6, 1), +(21225, 6, 1), +(21226, 6, 1), +(21227, 6, 1), +(21228, 6, 1), +(21245, 6, 1), +(21248, 6, 1), +(21249, 6, 1), +(21250, 6, 1), +(21251, 6, 1), +(21252, 6, 1), +(21253, 6, 1), +(21255, 6, 1), +(21256, 6, 1), +(21257, 6, 1), +(21258, 6, 1), +(21259, 6, 1), +(21260, 6, 1), +(21261, 6, 1), +(21262, 6, 1), +(21263, 6, 1), +(21264, 6, 1), +(21265, 6, 1), +(21274, 6, 1), +(21378, 6, 1), +(21379, 6, 1), +(21380, 6, 1), +(21381, 6, 1), +(21382, 6, 1), +(21384, 6, 1), +(21385, 6, 1), +(21436, 6, 1), +(21438, 6, 1), +(21508, 6, 1), +(21509, 6, 1), +(21510, 6, 1), +(21511, 6, 1), +(21512, 6, 1), +(21513, 6, 1), +(21514, 6, 1), +(21515, 6, 1), +(21528, 6, 1), +(21533, 6, 1), +(21534, 6, 1), +(21535, 6, 1), +(21536, 6, 1), +(21537, 6, 1), +(21540, 6, 1), +(21545, 6, 1), +(21552, 6, 1), +(21569, 6, 1), +(21570, 6, 1), +(21640, 6, 1), +(21711, 6, 1), +(21721, 6, 1), +(21724, 6, 1), +(21725, 6, 1), +(21726, 6, 1), +(21727, 6, 1), +(21728, 6, 1), +(21729, 6, 1), +(21730, 6, 1), +(21731, 6, 1), +(21732, 6, 1), +(21733, 6, 1), +(21734, 6, 1), +(21735, 6, 1), +(21737, 6, 1), +(21738, 6, 1), +(21740, 6, 1), +(21741, 6, 1), +(21742, 6, 1), +(21743, 6, 1), +(21745, 6, 1), +(21746, 6, 1), +(21747, 6, 1), +(21749, 6, 1), +(21750, 6, 1), +(21751, 6, 1), +(21812, 6, 1), +(21813, 6, 1), +(21815, 6, 1), +(21816, 6, 1), +(21817, 6, 1), +(21818, 6, 1), +(21819, 6, 1), +(21820, 6, 1), +(21821, 6, 1), +(21822, 6, 1), +(21823, 6, 1), +(21831, 6, 1), +(21920, 6, 1), +(21921, 6, 1), +(21925, 6, 1), +(21926, 6, 1), +(21960, 6, 1), +(21975, 6, 1), +(21979, 6, 1), +(21980, 6, 1), +(21981, 6, 1); + +-- Items added in patch 1.8. +UPDATE `item_template` SET `patch` = 6 WHERE `patch` < 6 && `entry` IN (21519, 21363, 21328, 21327, 21315, 21314, 21310, 21309, 21308, 21305, 21301, 21271, 21270, 21267, 21254, 21241, 21235, 21216, 21215, 21213, 21212, 21211, 21191, 21174, 21171, 20692, 20679, 20678, 20677, 20676, 20620, 20614, 20613, 20612, 20611, 20610, 20608, 20607, 20606, 20605, 20604, 20603, 20602, 20601, 20560, 20559, 20558, 20552, 20545, 20544, 20543, 20542, 20541, 20540, 20535, 20533, 20532, 20531, 20528, 20527, 20526, 20519, 20518, 20516, 20501, 20500, 20498, 20497, 20496, 20495, 20494, 20493, 20492, 20491, 20490, 20469, 20467, 20466, 20465, 20463, 20453, 20450, 20449, 20448, 20447, 20436, 20435, 20433, 20432, 20423, 20422, 20420, 20419, 20418, 20417, 20416, 20414, 20413, 20411, 20410, 20409, 20405, 20404, 20401, 20400, 20399, 20398, 20397, 20396, 20395, 20394, 20393, 20390, 20389, 20388, 20387, 20385, 20381, 20379, 20378, 20377, 20376, 20375, 20374, 20373, 20371); +UPDATE `item_loot_template` SET `patch_min`=6 WHERE (`patch_min` < 6) && `entry` IN (21519, 21363, 21328, 21327, 21315, 21314, 21310, 21309, 21308, 21305, 21301, 21271, 21270, 21267, 21254, 21241, 21235, 21216, 21215, 21213, 21212, 21211, 21191, 21174, 21171, 20692, 20679, 20678, 20677, 20676, 20620, 20614, 20613, 20612, 20611, 20610, 20608, 20607, 20606, 20605, 20604, 20603, 20602, 20601, 20560, 20559, 20558, 20552, 20545, 20544, 20543, 20542, 20541, 20540, 20535, 20533, 20532, 20531, 20528, 20527, 20526, 20519, 20518, 20516, 20501, 20500, 20498, 20497, 20496, 20495, 20494, 20493, 20492, 20491, 20490, 20469, 20467, 20466, 20465, 20463, 20453, 20450, 20449, 20448, 20447, 20436, 20435, 20433, 20432, 20423, 20422, 20420, 20419, 20418, 20417, 20416, 20414, 20413, 20411, 20410, 20409, 20405, 20404, 20401, 20400, 20399, 20398, 20397, 20396, 20395, 20394, 20393, 20390, 20389, 20388, 20387, 20385, 20381, 20379, 20378, 20377, 20376, 20375, 20374, 20373, 20371); +INSERT INTO `forbidden_items` VALUES +(20371, 5, 1), +(20373, 5, 1), +(20374, 5, 1), +(20375, 5, 1), +(20376, 5, 1), +(20377, 5, 1), +(20378, 5, 1), +(20379, 5, 1), +(20381, 5, 1), +(20385, 5, 1), +(20387, 5, 1), +(20388, 5, 1), +(20389, 5, 1), +(20390, 5, 1), +(20393, 5, 1), +(20394, 5, 1), +(20395, 5, 1), +(20396, 5, 1), +(20397, 5, 1), +(20398, 5, 1), +(20399, 5, 1), +(20400, 5, 1), +(20401, 5, 1), +(20404, 5, 1), +(20405, 5, 1), +(20409, 5, 1), +(20410, 5, 1), +(20411, 5, 1), +(20413, 5, 1), +(20414, 5, 1), +(20416, 5, 1), +(20417, 5, 1), +(20418, 5, 1), +(20419, 5, 1), +(20420, 5, 1), +(20422, 5, 1), +(20423, 5, 1), +(20432, 5, 1), +(20433, 5, 1), +(20435, 5, 1), +(20436, 5, 1), +(20447, 5, 1), +(20448, 5, 1), +(20449, 5, 1), +(20450, 5, 1), +(20453, 5, 1), +(20463, 5, 1), +(20465, 5, 1), +(20466, 5, 1), +(20467, 5, 1), +(20469, 5, 1), +(20490, 5, 1), +(20491, 5, 1), +(20492, 5, 1), +(20493, 5, 1), +(20494, 5, 1), +(20495, 5, 1), +(20496, 5, 1), +(20497, 5, 1), +(20498, 5, 1), +(20499, 5, 1), +(20500, 5, 1), +(20501, 5, 1), +(20516, 5, 1), +(20518, 5, 1), +(20519, 5, 1), +(20526, 5, 1), +(20527, 5, 1), +(20528, 5, 1), +(20531, 5, 1), +(20532, 5, 1), +(20533, 5, 1), +(20535, 5, 1), +(20540, 5, 1), +(20541, 5, 1), +(20542, 5, 1), +(20543, 5, 1), +(20544, 5, 1), +(20545, 5, 1), +(20552, 5, 1), +(20558, 5, 1), +(20559, 5, 1), +(20560, 5, 1), +(20601, 5, 1), +(20602, 5, 1), +(20603, 5, 1), +(20604, 5, 1), +(20605, 5, 1), +(20606, 5, 1), +(20607, 5, 1), +(20608, 5, 1), +(20610, 5, 1), +(20611, 5, 1), +(20612, 5, 1), +(20613, 5, 1), +(20614, 5, 1), +(20620, 5, 1), +(20676, 5, 1), +(20677, 5, 1), +(20678, 5, 1), +(20679, 5, 1), +(20692, 5, 1), +(21171, 5, 1), +(21174, 5, 1), +(21191, 5, 1), +(21211, 5, 1), +(21212, 5, 1), +(21213, 5, 1), +(21215, 5, 1), +(21216, 5, 1), +(21235, 5, 1), +(21241, 5, 1), +(21254, 5, 1), +(21267, 5, 1), +(21270, 5, 1), +(21271, 5, 1), +(21301, 5, 1), +(21305, 5, 1), +(21308, 5, 1), +(21309, 5, 1), +(21310, 5, 1), +(21314, 5, 1), +(21315, 5, 1), +(21327, 5, 1), +(21328, 5, 1), +(21363, 5, 1), +(21519, 5, 1); + +-- Items added in patch 1.7. +UPDATE `item_template` SET `patch` = 5 WHERE `patch` < 5 && `entry` IN (20368, 20364, 20363, 20362, 20361, 20360, 20359, 20358, 20357, 20356, 20355, 20354, 20353, 20352, 20351, 20350, 20349, 20348, 20347, 20346, 20345, 20344, 20343, 20342, 20341, 20340, 20339, 20338, 20336, 20335, 20334, 20333, 20332, 20331, 20330, 20329, 20328, 20327, 20326, 20325, 20324, 20323, 20322, 20321, 20320, 20319, 20318, 20317, 20316, 20315, 20314, 20313, 20312, 20311, 20309, 20308, 20307, 20306, 20305, 20304, 20303, 20302, 20301, 20300, 20299, 20298, 20297, 20292, 20291, 20290, 20289, 20288, 20287, 20286, 20285, 20284, 20283, 20282, 20281, 20280, 20279, 20278, 20277, 20276, 20275, 20274, 20273, 20272, 20271, 20270, 20269, 20268, 20267, 20256, 20252, 20251, 20250, 20249, 20248, 20247, 20246, 20245, 20242, 20241, 20240, 20239, 20238, 20149, 20146, 20145, 20144, 20143, 20142, 20141, 20140, 20139, 20138, 20137, 20136, 20135, 20087, 20084, 20075, 20074, 20030, 20029, 20028, 20027, 20026, 20025, 20024, 20023, 20022, 20021, 20020, 20019, 20018, 20017, 20016, 20015, 20010, 20009, 19997, 19996, 19995, 19994, 19978, 19971, 19960, 19938, 19937, 19936, 19935, 19934, 19916, 19911, 19879, 19851, 19850, 19803, 19775, 19774, 19725, 19696); +UPDATE `item_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (20368, 20364, 20363, 20362, 20361, 20360, 20359, 20358, 20357, 20356, 20355, 20354, 20353, 20352, 20351, 20350, 20349, 20348, 20347, 20346, 20345, 20344, 20343, 20342, 20341, 20340, 20339, 20338, 20336, 20335, 20334, 20333, 20332, 20331, 20330, 20329, 20328, 20327, 20326, 20325, 20324, 20323, 20322, 20321, 20320, 20319, 20318, 20317, 20316, 20315, 20314, 20313, 20312, 20311, 20309, 20308, 20307, 20306, 20305, 20304, 20303, 20302, 20301, 20300, 20299, 20298, 20297, 20292, 20291, 20290, 20289, 20288, 20287, 20286, 20285, 20284, 20283, 20282, 20281, 20280, 20279, 20278, 20277, 20276, 20275, 20274, 20273, 20272, 20271, 20270, 20269, 20268, 20267, 20256, 20252, 20251, 20250, 20249, 20248, 20247, 20246, 20245, 20242, 20241, 20240, 20239, 20238, 20149, 20146, 20145, 20144, 20143, 20142, 20141, 20140, 20139, 20138, 20137, 20136, 20135, 20087, 20084, 20075, 20074, 20030, 20029, 20028, 20027, 20026, 20025, 20024, 20023, 20022, 20021, 20020, 20019, 20018, 20017, 20016, 20015, 20010, 20009, 19997, 19996, 19995, 19994, 19978, 19971, 19960, 19938, 19937, 19936, 19935, 19934, 19916, 19911, 19879, 19851, 19850, 19803, 19775, 19774, 19725, 19696); +INSERT INTO `forbidden_items` VALUES +(19696, 4, 1), +(19725, 4, 1), +(19774, 4, 1), +(19775, 4, 1), +(19803, 4, 1), +(19850, 4, 1), +(19851, 4, 1), +(19879, 4, 1), +(19911, 4, 1), +(19916, 4, 1), +(19933, 4, 1), +(19934, 4, 1), +(19935, 4, 1), +(19936, 4, 1), +(19937, 4, 1), +(19938, 4, 1), +(19960, 4, 1), +(19971, 4, 1), +(19978, 4, 1), +(19994, 4, 1), +(19995, 4, 1), +(19996, 4, 1), +(19997, 4, 1), +(20009, 4, 1), +(20010, 4, 1), +(20015, 4, 1), +(20016, 4, 1), +(20017, 4, 1), +(20018, 4, 1), +(20019, 4, 1), +(20020, 4, 1), +(20021, 4, 1), +(20022, 4, 1), +(20023, 4, 1), +(20024, 4, 1), +(20025, 4, 1), +(20026, 4, 1), +(20027, 4, 1), +(20028, 4, 1), +(20029, 4, 1), +(20030, 4, 1), +(20074, 4, 1), +(20075, 4, 1), +(20084, 4, 1), +(20085, 4, 1), +(20087, 4, 1), +(20135, 4, 1), +(20136, 4, 1), +(20137, 4, 1), +(20138, 4, 1), +(20139, 4, 1), +(20140, 4, 1), +(20141, 4, 1), +(20142, 4, 1), +(20143, 4, 1), +(20144, 4, 1), +(20145, 4, 1), +(20146, 4, 1), +(20149, 4, 1), +(20238, 4, 1), +(20239, 4, 1), +(20240, 4, 1), +(20241, 4, 1), +(20242, 4, 1), +(20245, 4, 1), +(20246, 4, 1), +(20247, 4, 1), +(20248, 4, 1), +(20249, 4, 1), +(20250, 4, 1), +(20251, 4, 1), +(20252, 4, 1), +(20256, 4, 1), +(20267, 4, 1), +(20268, 4, 1), +(20269, 4, 1), +(20270, 4, 1), +(20271, 4, 1), +(20272, 4, 1), +(20273, 4, 1), +(20274, 4, 1), +(20275, 4, 1), +(20276, 4, 1), +(20277, 4, 1), +(20278, 4, 1), +(20279, 4, 1), +(20280, 4, 1), +(20281, 4, 1), +(20282, 4, 1), +(20283, 4, 1), +(20284, 4, 1), +(20285, 4, 1), +(20286, 4, 1), +(20287, 4, 1), +(20288, 4, 1), +(20289, 4, 1), +(20290, 4, 1), +(20291, 4, 1), +(20292, 4, 1), +(20297, 4, 1), +(20298, 4, 1), +(20299, 4, 1), +(20300, 4, 1), +(20301, 4, 1), +(20302, 4, 1), +(20303, 4, 1), +(20304, 4, 1), +(20305, 4, 1), +(20306, 4, 1), +(20307, 4, 1), +(20308, 4, 1), +(20309, 4, 1), +(20311, 4, 1), +(20312, 4, 1), +(20313, 4, 1), +(20314, 4, 1), +(20315, 4, 1), +(20316, 4, 1), +(20317, 4, 1), +(20318, 4, 1), +(20319, 4, 1), +(20320, 4, 1), +(20321, 4, 1), +(20322, 4, 1), +(20323, 4, 1), +(20324, 4, 1), +(20325, 4, 1), +(20326, 4, 1), +(20327, 4, 1), +(20328, 4, 1), +(20329, 4, 1), +(20330, 4, 1), +(20331, 4, 1), +(20332, 4, 1), +(20333, 4, 1), +(20334, 4, 1), +(20335, 4, 1), +(20336, 4, 1), +(20338, 4, 1), +(20339, 4, 1), +(20340, 4, 1), +(20341, 4, 1), +(20342, 4, 1), +(20343, 4, 1), +(20344, 4, 1), +(20345, 4, 1), +(20346, 4, 1), +(20347, 4, 1), +(20348, 4, 1), +(20349, 4, 1), +(20350, 4, 1), +(20351, 4, 1), +(20352, 4, 1), +(20353, 4, 1), +(20354, 4, 1), +(20355, 4, 1), +(20356, 4, 1), +(20357, 4, 1), +(20358, 4, 1), +(20359, 4, 1), +(20360, 4, 1), +(20361, 4, 1), +(20362, 4, 1), +(20363, 4, 1), +(20364, 4, 1), +(20368, 4, 1); + +-- Items added in patch 1.6. +UPDATE `item_template` SET `patch` = 4 WHERE `patch` < 4 && `entry` IN (19642, 19454, 19453, 19452, 19451, 19450, 19443, 19441, 19440, 19425, 19424, 19423, 19422, 19338, 19306, 19305, 19304, 19300, 19299, 19298, 19297, 19296, 19291, 19266, 19256, 19255, 19254, 19253, 19252, 19251, 19250, 19249, 19248, 19247, 19246, 19245, 19244, 19243, 19242, 19241, 19240, 19239, 19238, 19237, 19229, 19225, 19224, 19223, 19222, 19221, 19183, 19182, 19018, 19017, 19016); +UPDATE `item_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (19642, 19454, 19453, 19452, 19451, 19450, 19443, 19441, 19440, 19425, 19424, 19423, 19422, 19338, 19306, 19305, 19304, 19300, 19299, 19298, 19297, 19296, 19291, 19266, 19256, 19255, 19254, 19253, 19252, 19251, 19250, 19249, 19248, 19247, 19246, 19245, 19244, 19243, 19242, 19241, 19240, 19239, 19238, 19237, 19229, 19225, 19224, 19223, 19222, 19221, 19183, 19182, 19018, 19017, 19016); +INSERT INTO `forbidden_items` VALUES +(19016, 3, 1), +(19017, 3, 1), +(19018, 3, 1), +(19182, 3, 1), +(19183, 3, 1), +(19221, 3, 1), +(19222, 3, 1), +(19223, 3, 1), +(19224, 3, 1), +(19225, 3, 1), +(19229, 3, 1), +(19237, 3, 1), +(19238, 3, 1), +(19239, 3, 1), +(19240, 3, 1), +(19241, 3, 1), +(19242, 3, 1), +(19243, 3, 1), +(19244, 3, 1), +(19245, 3, 1), +(19246, 3, 1), +(19247, 3, 1), +(19248, 3, 1), +(19249, 3, 1), +(19250, 3, 1), +(19251, 3, 1), +(19252, 3, 1), +(19253, 3, 1), +(19254, 3, 1), +(19255, 3, 1), +(19256, 3, 1), +(19266, 3, 1), +(19291, 3, 1), +(19296, 3, 1), +(19297, 3, 1), +(19298, 3, 1), +(19299, 3, 1), +(19300, 3, 1), +(19304, 3, 1), +(19305, 3, 1), +(19306, 3, 1), +(19338, 3, 1), +(19422, 3, 1), +(19423, 3, 1), +(19424, 3, 1), +(19425, 3, 1), +(19440, 3, 1), +(19441, 3, 1), +(19443, 3, 1), +(19450, 3, 1), +(19451, 3, 1), +(19452, 3, 1), +(19453, 3, 1), +(19454, 3, 1), +(19642, 3, 1); + +-- Items added in patch 1.5. +UPDATE `item_template` SET `patch` = 3 WHERE `patch` < 3 && `entry` IN (19484, 19483, 19322, 19301, 19213, 19158, 19155, 19154, 19153, 19152, 19151, 19150, 19082, 19071, 19070, 19069, 19064, 19062, 19061, 19060, 19036, 19035, 19034, 19033, 19027, 19026, 19025, 19023, 19020, 19015, 19014, 18969, 18962, 18961, 18960, 18959, 18958, 18956, 18955, 18954, 18953, 18952, 18947, 18946, 18944, 18943, 18904, 18234, 18233, 18231, 18230, 18229, 18228, 18227, 18226, 18225, 18207, 18206, 18150, 18149, 18148, 18147, 18146, 18145, 18144, 18143, 18142, 17850, 17849, 17823, 17822, 17689, 17643, 17642, 17626, 17542, 17522, 17507, 17506, 17505, 17504, 17503, 17502, 17442, 17423, 17422, 17411, 17410, 17384, 17364, 17363, 17362, 17354, 17353, 17328, 17327, 17326, 17325, 17324, 17323, 17306, 17224); +UPDATE `item_loot_template` SET `patch_min`=3 WHERE (`patch_min` < 3) && `entry` IN (19484, 19483, 19322, 19301, 19213, 19158, 19155, 19154, 19153, 19152, 19151, 19150, 19082, 19071, 19070, 19069, 19064, 19062, 19061, 19060, 19036, 19035, 19034, 19033, 19027, 19026, 19025, 19023, 19020, 19015, 19014, 18969, 18962, 18961, 18960, 18959, 18958, 18956, 18955, 18954, 18953, 18952, 18947, 18946, 18944, 18943, 18904, 18234, 18233, 18231, 18230, 18229, 18228, 18227, 18226, 18225, 18207, 18206, 18150, 18149, 18148, 18147, 18146, 18145, 18144, 18143, 18142, 17850, 17849, 17823, 17822, 17689, 17643, 17642, 17626, 17542, 17522, 17507, 17506, 17505, 17504, 17503, 17502, 17442, 17423, 17422, 17411, 17410, 17384, 17364, 17363, 17362, 17354, 17353, 17328, 17327, 17326, 17325, 17324, 17323, 17306, 17224); +INSERT INTO `forbidden_items` VALUES +(17224, 2, 1), +(17306, 2, 1), +(17323, 2, 1), +(17324, 2, 1), +(17325, 2, 1), +(17326, 2, 1), +(17327, 2, 1), +(17328, 2, 1), +(17353, 2, 1), +(17354, 2, 1), +(17362, 2, 1), +(17363, 2, 1), +(17364, 2, 1), +(17384, 2, 1), +(17410, 2, 1), +(17411, 2, 1), +(17422, 2, 1), +(17423, 2, 1), +(17442, 2, 1), +(17502, 2, 1), +(17503, 2, 1), +(17504, 2, 1), +(17505, 2, 1), +(17506, 2, 1), +(17507, 2, 1), +(17522, 2, 1), +(17542, 2, 1), +(17626, 2, 1), +(17642, 2, 1), +(17643, 2, 1), +(17689, 2, 1), +(17822, 2, 1), +(17823, 2, 1), +(17849, 2, 1), +(17850, 2, 1), +(18142, 2, 1), +(18143, 2, 1), +(18144, 2, 1), +(18145, 2, 1), +(18146, 2, 1), +(18147, 2, 1), +(18148, 2, 1), +(18149, 2, 1), +(18150, 2, 1), +(18206, 2, 1), +(18207, 2, 1), +(18225, 2, 1), +(18226, 2, 1), +(18227, 2, 1), +(18228, 2, 1), +(18229, 2, 1), +(18230, 2, 1), +(18231, 2, 1), +(18233, 2, 1), +(18234, 2, 1), +(18904, 2, 1), +(18943, 2, 1), +(18944, 2, 1), +(18946, 2, 1), +(18947, 2, 1), +(18952, 2, 1), +(18953, 2, 1), +(18954, 2, 1), +(18955, 2, 1), +(18956, 2, 1), +(18958, 2, 1), +(18959, 2, 1), +(18960, 2, 1), +(18961, 2, 1), +(18962, 2, 1), +(18969, 2, 1), +(19014, 2, 1), +(19015, 2, 1), +(19020, 2, 1), +(19023, 2, 1), +(19025, 2, 1), +(19026, 2, 1), +(19027, 2, 1), +(19033, 2, 1), +(19034, 2, 1), +(19035, 2, 1), +(19036, 2, 1), +(19060, 2, 1), +(19061, 2, 1), +(19062, 2, 1), +(19064, 2, 1), +(19069, 2, 1), +(19070, 2, 1), +(19071, 2, 1), +(19082, 2, 1), +(19150, 2, 1), +(19151, 2, 1), +(19152, 2, 1), +(19153, 2, 1), +(19154, 2, 1), +(19155, 2, 1), +(19158, 2, 1), +(19213, 2, 1), +(19301, 2, 1), +(19322, 2, 1), +(19483, 2, 1), +(19484, 2, 1); + +-- Items added in patch 1.4. +UPDATE `item_template` SET `patch` = 2 WHERE `patch` < 2 && `entry` IN (18922, 18880, 18804, 18802, 18719, 18714, 18708, 18707, 18706, 18687, 18675, 18664, 18660, 18659, 18656, 18654, 18653, 18651, 18650, 18649, 18648, 18647, 18643, 18642, 18641, 18640, 18636, 18635, 18633, 18632, 18631, 18629, 18628, 18626, 18625, 18624, 18623, 18622, 18605, 18604, 18603, 18601, 18598, 18597, 18595, 18594, 18591, 18590, 18589, 18588, 18586, 18585, 18567, 18438, 17621, 17619, 17615, 17614, 17609, 17606, 17597, 17595, 17589, 17587, 17585, 17582, 17575, 17574, 17565, 17563, 16576, 16575, 16572, 16570, 16559, 16557, 16556, 16553, 16547, 16546, 16538, 16537, 16529, 16520, 16517, 16512, 16511, 16500, 16495, 16493, 16488, 16482, 16481, 16470, 16469, 16464, 16461, 16460, 16458, 16447, 16445, 16439, 16438, 16412, 16411, 16407, 16404, 16402, 16400, 16399, 16398, 16395, 16394, 16370, 16367, 16344, 16343, 16338, 16337, 16336, 16315); +INSERT INTO `forbidden_items` VALUES +(16315, 1, 1), +(16336, 1, 1), +(16337, 1, 1), +(16338, 1, 1), +(16343, 1, 1), +(16344, 1, 1), +(16367, 1, 1), +(16370, 1, 1), +(16394, 1, 1), +(16395, 1, 1), +(16398, 1, 1), +(16399, 1, 1), +(16400, 1, 1), +(16402, 1, 1), +(16404, 1, 1), +(16407, 1, 1), +(16411, 1, 1), +(16412, 1, 1), +(16438, 1, 1), +(16439, 1, 1), +(16445, 1, 1), +(16447, 1, 1), +(16458, 1, 1), +(16460, 1, 1), +(16461, 1, 1), +(16464, 1, 1), +(16469, 1, 1), +(16470, 1, 1), +(16481, 1, 1), +(16482, 1, 1), +(16488, 1, 1), +(16493, 1, 1), +(16495, 1, 1), +(16500, 1, 1), +(16511, 1, 1), +(16512, 1, 1), +(16517, 1, 1), +(16520, 1, 1), +(16529, 1, 1), +(16537, 1, 1), +(16538, 1, 1), +(16546, 1, 1), +(16547, 1, 1), +(16553, 1, 1), +(16556, 1, 1), +(16557, 1, 1), +(16559, 1, 1), +(16570, 1, 1), +(16572, 1, 1), +(16575, 1, 1), +(16576, 1, 1), +(17563, 1, 1), +(17565, 1, 1), +(17574, 1, 1), +(17575, 1, 1), +(17582, 1, 1), +(17585, 1, 1), +(17587, 1, 1), +(17589, 1, 1), +(17595, 1, 1), +(17597, 1, 1), +(17606, 1, 1), +(17609, 1, 1), +(17614, 1, 1), +(17615, 1, 1), +(17619, 1, 1), +(17621, 1, 1), +(18438, 1, 1), +(18567, 1, 1), +(18585, 1, 1), +(18586, 1, 1), +(18588, 1, 1), +(18589, 1, 1), +(18590, 1, 1), +(18591, 1, 1), +(18594, 1, 1), +(18595, 1, 1), +(18597, 1, 1), +(18598, 1, 1), +(18601, 1, 1), +(18603, 1, 1), +(18604, 1, 1), +(18605, 1, 1), +(18622, 1, 1), +(18623, 1, 1), +(18624, 1, 1), +(18625, 1, 1), +(18626, 1, 1), +(18628, 1, 1), +(18629, 1, 1), +(18631, 1, 1), +(18632, 1, 1), +(18633, 1, 1), +(18635, 1, 1), +(18636, 1, 1), +(18640, 1, 1), +(18641, 1, 1), +(18642, 1, 1), +(18643, 1, 1), +(18647, 1, 1), +(18648, 1, 1), +(18649, 1, 1), +(18650, 1, 1), +(18651, 1, 1), +(18653, 1, 1), +(18654, 1, 1), +(18656, 1, 1), +(18659, 1, 1), +(18660, 1, 1), +(18664, 1, 1), +(18675, 1, 1), +(18687, 1, 1), +(18706, 1, 1), +(18707, 1, 1), +(18708, 1, 1), +(18714, 1, 1), +(18719, 1, 1), +(18802, 1, 1), +(18804, 1, 1), +(18880, 1, 1), +(18922, 1, 1); + +-- Items added in patch 1.3. +UPDATE `item_template` SET `patch` = 1 WHERE `patch` < 1 && `entry` IN (18513, 18512, 18492, 18491, 18489, 18488, 18412, 18406, 18404, 18403, 18402, 18400, 18365, 18342, 18334, 18333, 18332, 18331, 18331, 18330, 18329, 18316, 18303, 18300, 18299, 18297, 18294, 18288, 18287, 18286, 18285, 18284, 18269, 18261, 18258, 18256, 18255, 18240, 18239, 18238, 18237, 18236, 18232, 18224, 18223, 18222, 18209, 18167, 18160, 18154, 18152, 18151, 18106, 18063, 18048, 18047, 18046, 18045, 18044, 18043, 18042, 18023, 17968, 17922, 17911, 17910, 17782); +INSERT INTO `forbidden_items` VALUES +(17782, 0, 1), +(17910, 0, 1), +(17911, 0, 1), +(17922, 0, 1), +(17968, 0, 1), +(18023, 0, 1), +(18042, 0, 1), +(18043, 0, 1), +(18044, 0, 1), +(18045, 0, 1), +(18046, 0, 1), +(18047, 0, 1), +(18048, 0, 1), +(18063, 0, 1), +(18106, 0, 1), +(18151, 0, 1), +(18152, 0, 1), +(18154, 0, 1), +(18160, 0, 1), +(18167, 0, 1), +(18209, 0, 1), +(18222, 0, 1), +(18223, 0, 1), +(18224, 0, 1), +(18232, 0, 1), +(18236, 0, 1), +(18237, 0, 1), +(18238, 0, 1), +(18239, 0, 1), +(18240, 0, 1), +(18255, 0, 1), +(18256, 0, 1), +(18258, 0, 1), +(18261, 0, 1), +(18269, 0, 1), +(18284, 0, 1), +(18285, 0, 1), +(18286, 0, 1), +(18287, 0, 1), +(18288, 0, 1), +(18294, 0, 1), +(18297, 0, 1), +(18299, 0, 1), +(18300, 0, 1), +(18303, 0, 1), +(18316, 0, 1), +(18329, 0, 1), +(18330, 0, 1), +(18331, 0, 1), +(18332, 0, 1), +(18333, 0, 1), +(18334, 0, 1), +(18342, 0, 1), +(18365, 0, 1), +(18400, 0, 1), +(18402, 0, 1), +(18403, 0, 1), +(18404, 0, 1), +(18406, 0, 1), +(18412, 0, 1), +(18488, 0, 1), +(18489, 0, 1), +(18491, 0, 1), +(18492, 0, 1), +(18512, 0, 1), +(18513, 0, 1); + +-- These items were added in 1.3 not 1.4. +UPDATE `item_template` SET `patch` = 1 WHERE `patch` = 2 && `entry` IN (18292, 18291, 18290, 18283, 18282, 18168, 18265, 18264, 18263, 18262, 18260, 18259, 18257, 18253, 18252, 18251, 18104, 18103); +UPDATE `forbidden_items` SET `patch`=0 WHERE `entry` IN (18292, 18291, 18290, 18283, 18282, 18168, 18265, 18264, 18263, 18262, 18260, 18259, 18257, 18253, 18252, 18251, 18104, 18103); + +-- Implement some item changes. +DELETE FROM `item_template` WHERE `entry`=16339; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (16339, 2, 15, 0, 'Commander\'s Steed', '', 25132, 1, 80, 1, 5000000, 0, 0, -1, 511, 60, 60, 148, 1, 0, 15, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16082, 0, 0, 0, 1, 330, 3000, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (16339, 10, 15, 0, 'Commander\'s Steed', '', 25132, 4, 80, 1, 1000000, 0, 0, -1, 511, 60, 60, 762, 150, 0, 15, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16082, 0, 0, 0, 1, 330, 3000, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=17966; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (17966, 1, 1, 0, 'Onyxia Hide Backpack', '', 30271, 2, 0, 1, 35000, 8750, 18, -1, -1, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (17966, 2, 1, 0, 'Onyxia Hide Backpack', '', 30271, 2, 0, 1, 35000, 8750, 18, -1, -1, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +UPDATE `creature_loot_template` SET `patch_min`=1 WHERE `item`=17966; +DELETE FROM `item_template` WHERE `entry`=18565; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18565, 1, 4, 0, 'Band of Allegiance', '', 9839, 3, 0, 1, 59413, 14853, 11, -1, -1, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 4, 9, 7, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18565, 2, 12, 0, 'Vessel of Rebirth', '', 20784, 5, 0, 1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 7522, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_durability`, `max_count`, `stackable`, `bag_family`, `duration`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `page_text`, `start_quest`, `lock_id`, `random_property`, `set_id`, `area_bound`, `map_bound`, `container_slots`, `ammo_type`, `bonding`, `disenchant_id`, `page_language`, `page_material`, `material`, `sheath`) VALUES (18565, 4, 12, 0, 'Vessel of Rebirth DEPRECATED', '', 20784, 5, 16, 1, 0, 0, 0, -1, -1, 70, 100, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 7522, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0); +DELETE FROM `item_template` WHERE `entry`=18566; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18566, 1, 4, 0, 'Lonetree\'s Circle', '', 9823, 3, 0, 1, 59413, 14853, 11, -1, -1, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 5, 6, 7, 6, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 43, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18566, 2, 12, 0, 'Essence of the Firelord', '', 30913, 5, 16, 1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_durability`, `max_count`, `stackable`, `bag_family`, `duration`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `page_text`, `start_quest`, `lock_id`, `random_property`, `set_id`, `area_bound`, `map_bound`, `container_slots`, `ammo_type`, `bonding`, `disenchant_id`, `page_language`, `page_material`, `material`, `sheath`) VALUES (18566, 4, 12, 0, 'Essence of the Firelord DEPRECATED', '', 30913, 5, 16, 1, 0, 0, 0, -1, -1, 1, 100, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0); +DELETE FROM `item_template` WHERE `entry`=18662; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18662, 0, 0, 0, 'Heavy Leather Ball', '', 31197, 1, 0, 1, 20, 5, 0, -1, -1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23135, 0, -1, 0, 1000, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (18662, 8, 0, 0, 'Heavy Leather Ball', '', 34892, 1, 0, 1, 20, 5, 0, -1, -1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 10, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23135, 0, -1, 0, 1000, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=19324; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (19324, 3, 2, 15, 'The Lobotomizer', '', 31820, 4, 32768, 1, 1256618, 251323, 13, -1, -1, 65, 60, 0, 0, 0, 0, 0, 0, 7, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1800, 0, 0, 59, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17148, 2, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 3, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (19324, 5, 2, 15, 'The Lobotomizer', '', 31820, 4, 32768, 1, 1256618, 251323, 13, -1, -1, 65, 60, 0, 0, 0, 0, 0, 0, 7, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1800, 0, 0, 59, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24388, 2, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 3, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=19933; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (19933, 5, 15, 0, 'Glowing Scorpid Blood', '', 30764, 1, 0, 1, 8320, 2080, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (19933, 6, 15, 0, 'Glowing Scorpid Blood', '', 33178, 1, 0, 1, 8320, 2080, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=20085; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (20085, 5, 15, 0, 'Arcane Shard', '', 32689, 2, 2048, 1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (20085, 8, 15, 0, 'Arcane Shard', '', 35016, 1, 2048, 1, 0, 0, 0, -1, -1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=21038; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (21038, 6, 0, 8, 'Hardpacked Snowball', '', 29169, 1, 64, 5, 10, 0, 0, 32767, -1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 5, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21167, 0, -1, 0, 30000, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2597, 0, 300, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (21038, 7, 0, 8, 'Hardpacked Snowball', '', 29169, 1, 64, 5, 10, 0, 0, 32767, -1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 5, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25677, 0, -1, 0, 30000, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2597, 0, 300, 0, 0, 0, 0, 0, 0, 1); +DELETE FROM `item_template` WHERE `entry`=20499; +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (20499, 6, 15, 0, 'Broken Silithid Chitin', '', 22838, 1, 0, 1, 2000, 500, 0, -1, -1, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (20499, 7, 15, 0, 'Broken Silithid Chitin', '', 22838, 0, 0, 1, 2000, 500, 0, -1, -1, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); + +-- Flayed Demon Skin was replaced by a new version of the item in 1.8 to prevent Alliance from using it. +DELETE FROM `quest_template` WHERE `entry`=1480; +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (1480, 0, 2, 405, 25, 0, 33, 0, 0, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1481, 6766, 1, 0, 'The Corrupter', 'The torn skin smells rotten, and is remarkably pliable for something that appears to be dry and fragile.$B$BAs you unroll it, you can clearly see the red markings of some kind of language on one side. At the bottom of the skin is a very clear symbol that you guess is a signature of some kind.$B$BPerhaps it is something Maurin could tell you more about?', 'Bring the Flayed Demon Skin to Maurin Bonesplitter in Desolace.', 'Hmm, these runes are indeed a language, $N, an old language. They seem remotely similar to the Eredun language, but the differences are drastic. If I am not mistaken, this is a contract of some kind.... Here, yes, this symbol is the demon\'s signature: Lord Azrethoc.', 'The Burning Blade begin to realize how weak they truly are. Their magics are pathetic, their strength feeble.$B$BTheir only power comes from those they serve, and not from any understanding of true power and knowledge.', '', '', '', '', '', 6766, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 780, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (1480, 6, 2, 405, 25, 0, 33, 0, 0, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1481, 20310, 1, 0, 'The Corrupter', 'The torn skin smells rotten, and is remarkably pliable for something that appears to be dry and fragile.$B$BAs you unroll it, you can clearly see the red markings of some kind of language on one side. At the bottom of the skin is a very clear symbol that you guess is a signature of some kind.$B$BPerhaps it is something Maurin could tell you more about?', 'Bring the Flayed Demon Skin to Maurin Bonesplitter in Desolace.', 'Hmm, these runes are indeed a language, $N, an old language. They seem remotely similar to the Eredun language, but the differences are drastic. If I am not mistaken, this is a contract of some kind.... Here, yes, this symbol is the demon\'s signature: Lord Azrethoc.', 'The Burning Blade begin to realize how weak they truly are. Their magics are pathetic, their strength feeble.$B$BTheir only power comes from those they serve, and not from any understanding of true power and knowledge.', NULL, NULL, NULL, NULL, NULL, 20310, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 0, 0, 0, 0, 75, 0, 0, 0, 0, 0, 780, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0); +DELETE FROM `item_template` WHERE `entry` IN (6766, 20310); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (6766, 0, 12, 0, 'Flayed Demon Skin', '', 13002, 1, 2048, 1, 0, 0, 0, 2047, 255, 25, 25, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1480, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (6766, 2, 12, 0, 'Flayed Demon Skin', '', 13002, 1, 2048, 1, 0, 0, 0, 2047, 255, 25, 25, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1480, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (6766, 6, 12, 0, 'Flayed Demon Skin (old2)', '', 13002, 1, 2048, 1, 0, 0, 0, 2047, 255, 25, 25, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +INSERT INTO `item_template` (`entry`, `patch`, `class`, `subclass`, `name`, `description`, `display_id`, `quality`, `flags`, `buy_count`, `buy_price`, `sell_price`, `inventory_type`, `allowable_class`, `allowable_race`, `item_level`, `required_level`, `required_skill`, `required_skill_rank`, `required_spell`, `required_honor_rank`, `required_city_rank`, `required_reputation_faction`, `required_reputation_rank`, `max_count`, `stackable`, `container_slots`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `delay`, `range_mod`, `ammo_type`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `dmg_min3`, `dmg_max3`, `dmg_type3`, `dmg_min4`, `dmg_max4`, `dmg_type4`, `dmg_min5`, `dmg_max5`, `dmg_type5`, `block`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmrate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmrate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmrate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmrate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmrate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `page_text`, `page_language`, `page_material`, `start_quest`, `lock_id`, `material`, `sheath`, `random_property`, `set_id`, `max_durability`, `area_bound`, `map_bound`, `duration`, `bag_family`, `disenchant_id`, `food_type`, `min_money_loot`, `max_money_loot`, `extra_flags`, `other_team_entry`) VALUES (20310, 6, 12, 0, 'Flayed Demon Skin', '', 13002, 1, 2048, 1, 0, 0, 0, -1, -1, 25, 25, 0, 0, 0, 0, 0, 67, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1480, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1); +UPDATE `creature_loot_template` SET `patch_min`=6 WHERE `item`=20310; +INSERT INTO `creature_loot_template` (`entry`, `item`, `ChanceOrQuestChance`, `groupid`, `mincountOrRef`, `maxcount`, `condition_id`, `patch_min`, `patch_max`) VALUES +(4663, 6766, 2, 0, 1, 1, 2, 0, 5), +(4664, 6766, 2, 0, 1, 1, 2, 0, 5), +(4665, 6766, 2, 0, 1, 1, 2, 0, 5), +(4666, 6766, 2, 0, 1, 1, 2, 0, 5), +(4667, 6766, 2, 0, 1, 1, 2, 0, 5), +(4668, 6766, 2, 0, 1, 1, 2, 0, 5), +(4705, 6766, 2, 0, 1, 1, 2, 0, 5), +(13019, 6766, 2, 0, 1, 1, 2, 0, 5); + +-- Honoring a Hero was added in 1.7 not 1.8. +UPDATE `quest_template` SET `patch`=5 WHERE `entry` IN (8149, 8150); +UPDATE `creature_questrelation` SET `patch_min`=5 WHERE `quest` IN (8149, 8150); +UPDATE `creature_involvedrelation` SET `patch_min`=5 WHERE `quest` IN (8149, 8150); + +-- Glowing Scorpid Blood was added in 1.7 not 1.6. +UPDATE `quest_template` SET `patch`=5 WHERE `entry` IN (8222, 8223); +UPDATE `creature_questrelation` SET `patch_min`=5 WHERE `quest` IN (8222, 8223); +UPDATE `creature_involvedrelation` SET `patch_min`=5 WHERE `quest` IN (8222, 8223); + +-- The items required for Stave of the Ancients are in the 1.5 range and use non-existing models. +-- It possibly required just to kill the mobs, instead of bring their heads in 1.4. +DELETE FROM `quest_template` WHERE `entry`=7636; +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (7636, 2, 2, -261, 60, 0, 60, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 7633, 0, 0, 0, 18708, 1, 0, 'Stave of the Ancients', 'Agents of the Burning Legion are still active in our world, $c. These agents corrupt all that they touch. Nature wilts and weeps in their presence.$B$BYou must track down these demonic corrupters and destroy them, $N. Be warned, you must engage them by yourself or they will flee. As long as you are alone, they will try and destroy you. You must strike at them, turning their arrogance into misery.$B$BI grant you a piece of my bark, the inscriptions shall lead you to your targets. Retrieve their heads.', 'You must find and destroy these four demonic corrupters:$B$BSimone the Seductress.$B$BKlinfran the Crazed.$B$BSolenor the Slayer.$B$BArtorius the Doombringer.$B$BDestroy these creatures and return to Vartrus the Ancient in Felwood with their heads.$B$BRefer to the Petrified Bark in your inventory for clues as to their whereabouts.$B$BYou MUST complete this task by yourself.', 'You have served us well, $N! Take this stave and combine it with the bow string that Stoma is able to create. Together, they form a most formidable weapon.', 'Do not be fooled by their disguises!', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14535, 14530, 14534, 14533, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18707, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5970, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (7636, 3, 2, -261, 60, 0, 60, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 7633, 0, 0, 0, 18708, 1, 0, 'Stave of the Ancients', 'Agents of the Burning Legion are still active in our world, $c. These agents corrupt all that they touch. Nature wilts and weeps in their presence.$B$BYou must track down these demonic corrupters and destroy them, $N. Be warned, you must engage them by yourself or they will flee. As long as you are alone, they will try and destroy you. You must strike at them, turning their arrogance into misery.$B$BI grant you a piece of my bark, the inscriptions shall lead you to your targets. Retrieve their heads.', 'You must find and destroy these four demonic corrupters:$B$BSimone the Seductress.$B$BKlinfran the Crazed.$B$BSolenor the Slayer.$B$BArtorius the Doombringer.$B$BDestroy these creatures and return to Vartrus the Ancient in Felwood with their heads.$B$BRefer to the Petrified Bark in your inventory for clues as to their whereabouts.$B$BYou MUST complete this task by yourself.', 'You have served us well, $N! Take this stave and combine it with the bow string that Stoma is able to create. Together, they form a most formidable weapon.', 'Do not be fooled by their disguises!', NULL, NULL, NULL, NULL, NULL, 18952, 18953, 18954, 18955, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18707, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5970, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + +-- The New Frontier quest chain was added in 1.3. +UPDATE `quest_template` SET `patch`=1 WHERE `entry` IN (1000, 1004, 1015, 1018, 1019, 1047, 1123, 1124, 1125, 1126, 6761, 6762, 6844, 6845, 1185); +UPDATE `creature_questrelation` SET `patch_min`=1 WHERE `quest` IN (1000, 1004, 1015, 1018, 1019, 1047, 1123, 1124, 1125, 1126, 6761, 6762, 6844, 6845, 1185); +UPDATE `creature_involvedrelation` SET `patch_min`=1 WHERE `quest` IN (1000, 1004, 1015, 1018, 1019, 1047, 1123, 1124, 1125, 1126, 6761, 6762, 6844, 6845, 1185); + +-- The thistle tea recipe was replaced with a new item in 1.3. +DELETE FROM `quest_template` WHERE `entry` IN (2359, 2478); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (2359, 0, 2, -162, 20, 0, 24, 1, 8, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2360, 0, 0, 2607, 8046, 1, 0, 'Klaven\'s Tower', 'I\'ve been staking out this tower for weeks, $N. Recently a major shipment came through from Duskwood, and along with it came those guards.$B$BWhat are they? Your guess is as good as mine. I can tell you one thing - they aren\'t human.$B$BAnyhow, the shipment had a chest - which is what I assume those abominations are guarding. The zombie with the spikes holds a key we\'ll need.$B$BGet that key, get in the tower, and uncover whatever is in that chest. Take your findings back to Mathias.', 'Steal the Defias Tower Key, break into the Defias Tower and uncover the contents of the Duskwood Chest. Take whatever information you find back to Mathias Shaw in Stormwind. Read Kearnen\'s Journal to gain insight about the tower.\r\n', 'This would explain the Defias drones you and Kearnen saw outside of the tower, $N. It would also explain the Venture Company\'s involvement with the Defias and the strange shipments out of Duskwood.$B$BAccording to this book, the Zanzil trolls in Stranglethorn have discovered a way to raise the dead through potions... or to be more specific: poison.$B$BYou\'ll be of no use to SI:7 without a firm understanding of poisons, $N -- especially with the recipe to create undeath at our fingertips.', 'Any news from Agent Kearnen?', '', '', '', '', '', 7908, 7923, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7678, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1260, 0, 2995, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 6, 6, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (2359, 1, 2, -162, 20, 0, 24, 1, 8, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2360, 0, 0, 2607, 8046, 1, 0, 'Klaven\'s Tower', 'I\'ve been staking out this tower for weeks, $N. Recently a major shipment came through from Duskwood, and along with it came those guards.$B$BWhat are they? Your guess is as good as mine. I can tell you one thing - they aren\'t human.$B$BAnyhow, the shipment had a chest - which is what I assume those abominations are guarding. The zombie with the spikes holds a key we\'ll need.$B$BGet that key, get in the tower, and uncover whatever is in that chest. Take your findings back to Mathias.', 'Steal the Defias Tower Key, break into the Defias Tower and uncover the contents of the Duskwood Chest. Take whatever information you find back to Mathias Shaw in Stormwind. Read Kearnen\'s Journal to gain insight about the tower.\r\n', 'This would explain the Defias drones you and Kearnen saw outside of the tower, $N. It would also explain the Venture Company\'s involvement with the Defias and the strange shipments out of Duskwood.$B$BAccording to this book, the Zanzil trolls in Stranglethorn have discovered a way to raise the dead through potions... or to be more specific: poison.$B$BYou\'ll be of no use to SI:7 without a firm understanding of poisons, $N -- especially with the recipe to create undeath at our fingertips.', 'Any news from Agent Kearnen?', NULL, NULL, NULL, NULL, NULL, 7908, 7923, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18160, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1260, 0, 2995, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 6, 6, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (2478, 0, 2, -162, 20, 0, 24, 1, 8, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 2458, 0, 0, 2479, 0, 0, 0, 'Mission: Possible But Not Probable', 'You will need to steal the tower key from Foreman Silixiz, $N. Once you\'ve got the key in your possession, hold on to it - I may need it later.$B$BRemember, the poison has weakened everything in this tower. Use your abilities to bring chaos and destruction to its inhabitants. Slay them all -- show no mercy!$B$BOnce everything inside lays in a bloodied heap, pick Gallywix\'s lockbox and steal the cache of Zanzil\'s mixture held inside. Take both the head of Gallywix and the mixture to Shenthul in Orgrimmar.', 'Steal Silixiz\'s Tower Key from Foreman Silixiz, then kill two Mutated Venture Co. Drones, two Venture Co. Patrollers, and two Venture Co. Lookouts.$B$BAssassinate Grand Foreman Gallywix and take his head, then pick the lock on Gallywix\'s lockbox and steal the Cache of Zanzil\'s Altered Mixture. Take the Cache and Gallywix\'s Head back to Shenthul in Orgrimmar for further instruction.\r\n', 'Poor Fizzule, he was a good agent -- one of our best. Alas, it is the price we pay, $N. Being a field agent of the Shattered Hand is dangerous work.$B$BYou have performed your duty well, $C. It would be a shame if you did not live to serve us again.', 'What have you to report, $N?', '', '', '', '', '', 8074, 8072, 8073, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7310, 7307, 7308, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7678, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `quest_template` (`entry`, `patch`, `Method`, `ZoneOrSort`, `MinLevel`, `MaxLevel`, `QuestLevel`, `Type`, `RequiredClasses`, `RequiredRaces`, `RequiredSkill`, `RequiredSkillValue`, `RepObjectiveFaction`, `RepObjectiveValue`, `RequiredMinRepFaction`, `RequiredMinRepValue`, `RequiredMaxRepFaction`, `RequiredMaxRepValue`, `SuggestedPlayers`, `LimitTime`, `QuestFlags`, `SpecialFlags`, `PrevQuestId`, `NextQuestId`, `ExclusiveGroup`, `NextQuestInChain`, `SrcItemId`, `SrcItemCount`, `SrcSpell`, `Title`, `Details`, `Objectives`, `OfferRewardText`, `RequestItemsText`, `EndText`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `ReqItemId1`, `ReqItemId2`, `ReqItemId3`, `ReqItemId4`, `ReqItemCount1`, `ReqItemCount2`, `ReqItemCount3`, `ReqItemCount4`, `ReqSourceId1`, `ReqSourceId2`, `ReqSourceId3`, `ReqSourceId4`, `ReqSourceCount1`, `ReqSourceCount2`, `ReqSourceCount3`, `ReqSourceCount4`, `ReqCreatureOrGOId1`, `ReqCreatureOrGOId2`, `ReqCreatureOrGOId3`, `ReqCreatureOrGOId4`, `ReqCreatureOrGOCount1`, `ReqCreatureOrGOCount2`, `ReqCreatureOrGOCount3`, `ReqCreatureOrGOCount4`, `ReqSpellCast1`, `ReqSpellCast2`, `ReqSpellCast3`, `ReqSpellCast4`, `RewChoiceItemId1`, `RewChoiceItemId2`, `RewChoiceItemId3`, `RewChoiceItemId4`, `RewChoiceItemId5`, `RewChoiceItemId6`, `RewChoiceItemCount1`, `RewChoiceItemCount2`, `RewChoiceItemCount3`, `RewChoiceItemCount4`, `RewChoiceItemCount5`, `RewChoiceItemCount6`, `RewItemId1`, `RewItemId2`, `RewItemId3`, `RewItemId4`, `RewItemCount1`, `RewItemCount2`, `RewItemCount3`, `RewItemCount4`, `RewRepFaction1`, `RewRepFaction2`, `RewRepFaction3`, `RewRepFaction4`, `RewRepFaction5`, `RewRepValue1`, `RewRepValue2`, `RewRepValue3`, `RewRepValue4`, `RewRepValue5`, `RewOrReqMoney`, `RewMoneyMaxLevel`, `RewSpell`, `RewSpellCast`, `RewMailTemplateId`, `RewMailDelaySecs`, `PointMapId`, `PointX`, `PointY`, `PointOpt`, `DetailsEmote1`, `DetailsEmote2`, `DetailsEmote3`, `DetailsEmote4`, `DetailsEmoteDelay1`, `DetailsEmoteDelay2`, `DetailsEmoteDelay3`, `DetailsEmoteDelay4`, `IncompleteEmote`, `CompleteEmote`, `OfferRewardEmote1`, `OfferRewardEmote2`, `OfferRewardEmote3`, `OfferRewardEmote4`, `OfferRewardEmoteDelay1`, `OfferRewardEmoteDelay2`, `OfferRewardEmoteDelay3`, `OfferRewardEmoteDelay4`, `StartScript`, `CompleteScript`) VALUES (2478, 1, 2, -162, 20, 0, 24, 1, 8, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 2458, 0, 0, 2479, 0, 0, 0, 'Mission: Possible But Not Probable', 'You will need to steal the tower key from Foreman Silixiz, $N. Once you\'ve got the key in your possession, hold on to it - I may need it later.$B$BRemember, the poison has weakened everything in this tower. Use your abilities to bring chaos and destruction to its inhabitants. Slay them all -- show no mercy!$B$BOnce everything inside lays in a bloodied heap, pick Gallywix\'s lockbox and steal the cache of Zanzil\'s mixture held inside. Take both the head of Gallywix and the mixture to Shenthul in Orgrimmar.', 'Steal Silixiz\'s Tower Key from Foreman Silixiz, then kill two Mutated Venture Co. Drones, two Venture Co. Patrollers, and two Venture Co. Lookouts.$B$BAssassinate Grand Foreman Gallywix and take his head, then pick the lock on Gallywix\'s lockbox and steal the Cache of Zanzil\'s Altered Mixture. Take the Cache and Gallywix\'s Head back to Shenthul in Orgrimmar for further instruction.\r\n', 'Poor Fizzule, he was a good agent -- one of our best. Alas, it is the price we pay, $N. Being a field agent of the Shattered Hand is dangerous work.$B$BYou have performed your duty well, $C. It would be a shame if you did not live to serve us again.', 'What have you to report, $N?', NULL, NULL, NULL, NULL, NULL, 8074, 8072, 8073, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7310, 7307, 7308, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18160, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + +-- Imp pets dont have loot. +DELETE FROM `creature_loot_template` WHERE `entry`=416; +UPDATE `creature_template` SET `lootid`=0 WHERE `entry`=416; + +-- Empty Festive Mug should not drop from Bloodsail Raider. +DELETE FROM `creature_loot_template` WHERE `item`=21174; + +-- Gameobject added in 1.9. +UPDATE `pool_gameobject` SET `patch_min`=7 WHERE `guid` IN (SELECT `guid` FROM `gameobject` WHERE (`patch_min` < 7) && `id` IN (180661, 180666, 180655, 180662, 180685, 180691, 180690, 180184, 180582, 180656, 180657, 180658, 180663, 180664, 180682, 180683, 180684, 180750, 180752, 180900, 180902, 180248, 180751, 180901, 180667, 180665)); +UPDATE `gameobject` SET `patch_min`=7 WHERE (`patch_min` < 7) && `id` IN (180661, 180666, 180655, 180662, 180685, 180691, 180690, 180184, 180582, 180656, 180657, 180658, 180663, 180664, 180682, 180683, 180684, 180750, 180752, 180900, 180902, 180248, 180751, 180901, 180667, 180665); +UPDATE `gameobject_template` SET `patch`=7 WHERE (`patch` < 7) && `entry` IN (180661, 180666, 180655, 180662, 180685, 180691, 180690, 180184, 180582, 180656, 180657, 180658, 180663, 180664, 180682, 180683, 180684, 180750, 180752, 180900, 180902, 180248, 180751, 180901, 180667, 180665); +UPDATE `gameobject_loot_template` SET `patch_min`=7 WHERE (`patch_min` < 7) && `entry` IN (10000, 17441, 17498, 17518, 17280, 17440, 17494, 17496, 17497, 17500, 17502, 17519, 17520, 17521, 17537, 17537, 17538, 17538, 17534, 10001, 10002, 17533, 17532); + +-- Gameobjects added in 1.8. +UPDATE `gameobject` SET `patch_min`=6 WHERE (`patch_min` < 6) && `id` IN (180905, 180754, 180654, 180435, 300203, 180436, 180501); +UPDATE `gameobject_template` SET `patch`=6 WHERE (`patch` < 6) && `entry` IN (180905, 180754, 180654, 180435, 300203, 180436, 180501); +UPDATE `gameobject_loot_template` SET `patch_min`=6 WHERE (`patch_min` < 6) && `entry` IN (17540, 17685, 17489, 17349, 17378, 17350); + +-- Gameobjects added in 1.7. +UPDATE `gameobject` SET `patch_min`=5 WHERE (`patch_min` < 5) && `id` IN (180217, 180216, 180371, 180370, 180372, 180373, 180374, 180215, 180392); +UPDATE `gameobject_template` SET `patch`=5 WHERE (`patch` < 5) && `entry` IN (180217, 180216, 180371, 180370, 180372, 180373, 180374, 180215, 180392); +UPDATE `gameobject_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (17299, 17324, 17323, 17325, 17326, 17241, 17331); + +-- Gameobjects added in 1.5. +UPDATE `gameobject` SET `patch_min`=3 WHERE (`patch_min` < 3) && `id` IN (179828, 179922, 178784, 178786, 178787, 178785, 178788, 178789, 179024, 179025, 179908, 179914, 179915, 300000); +UPDATE `gameobject_template` SET `patch`=3 WHERE (`patch` < 3) && `entry` IN (179828, 179922, 178784, 178786, 178787, 178785, 178788, 178789, 179024, 179025, 179908, 179914, 179915, 300000); +UPDATE `gameobject_loot_template` SET `patch_min`=3 WHERE (`patch_min` < 3) && `entry` IN (16820, 15804, 15760, 15983, 15988, 16919, 16925, 16924, 16926, 50000); + +-- Gameobjects added in 1.4. +UPDATE `gameobject` SET `patch_min`=2 WHERE (`patch_min` < 2) && `id` IN (179697, 179826, 179644); +UPDATE `gameobject_template` SET `patch`=2 WHERE (`patch` < 2) && `entry` IN (179697, 179826, 179644); +UPDATE `gameobject_loot_template` SET `patch_min`=2 WHERE (`patch_min` < 2) && `entry` IN (16718, 16799, 16668); + +-- Gameobjects added in 1.3. +UPDATE `gameobject` SET `patch_min`=1 WHERE (`patch_min` < 1) && `id` IN (179548, 179528, 179562, 179499, 179501, 179547, 179553); +UPDATE `gameobject_template` SET `patch`=1 WHERE (`patch` < 1) && `entry` IN (179548, 179528, 179562, 179499, 179501, 179547, 179553); +UPDATE `gameobject_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (16564, 16548, 16592, 16518, 16591, 16563, 16570); + +-- Creatures added in 1.9. +UPDATE `creature` SET `patch_min`=7 WHERE (`patch_min` < 7) && `id` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896); +UPDATE `creature_addon` SET `patch`=7 WHERE (`patch` < 7) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896))); +UPDATE `creature_template` SET `patch`=7 WHERE `entry` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896); +UPDATE `creature_template_addon` SET `patch`=7 WHERE `entry` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896); +UPDATE `creature_equip_template` SET `patch`=7 WHERE `entry` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896); +UPDATE `creature_loot_template` SET `patch_min`=7 WHERE (`patch_min` < 7) && `entry` IN (15623, 15625, 15759, 15348, 15333, 15340, 15339, 15369, 15370, 15335, 15319, 15318, 15168, 15461, 15336, 15462, 15338, 15355, 15505, 15327, 15324, 15320, 15323, 15325, 15343, 15344, 15388, 15387, 15386, 15390, 15385, 15392, 15391, 15389, 15471, 15473, 15316, 15317, 15475, 15246, 15312, 15311, 15252, 15300, 15262, 15276, 15275, 15263, 15957, 15963, 15233, 15250, 15277, 15509, 15235, 15236, 15249, 15240, 15299, 15510, 15229, 15230, 15984, 15516, 15247, 15544, 15511, 15543, 15264, 15380, 15379, 15378, 15727, 15503, 15504, 15502, 15896); + +-- Creatures added in 1.8. +UPDATE `creature` SET `patch_min`=6 WHERE (`patch_min` < 6) && `id` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15184, 15545, 15961, 16139, 15290); +UPDATE `creature_addon` SET `patch`=6 WHERE (`patch` < 6) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15184, 15545, 15961, 16139, 15290))); +UPDATE `creature_template` SET `patch`=6 WHERE `entry` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15184, 15545, 15961, 16139, 15290); +UPDATE `creature_template_addon` SET `patch`=6 WHERE `patch`=0 && `entry`=15184; +UPDATE `creature_template_addon` SET `patch`=6 WHERE `entry` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15545, 15961, 16139, 15290); +UPDATE `creature_equip_template` SET `patch`=6 WHERE `entry` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15184, 15545, 15961, 16139, 15290); +UPDATE `creature_loot_template` SET `patch_min`=6 WHERE (`patch_min` < 6) && `entry` IN (14862, 15196, 15286, 15288, 14887, 14888, 14889, 14890, 15184, 15545, 15961, 16139, 15290); +UPDATE `skinning_loot_template` SET `patch_min`=6 WHERE (`patch_min` < 6) && `entry` IN (15196, 15413); + +-- Creatures added in 1.7. +UPDATE `creature` SET `patch_min`=5 WHERE (`patch_min` < 5) && `id` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114); +UPDATE `creature_addon` SET `patch`=5 WHERE (`patch` < 5) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114))); +UPDATE `creature_template` SET `patch`=5 WHERE `patch`=0 && `entry` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114); +UPDATE `creature_template_addon` SET `patch`=5 WHERE `patch`=0 && `entry` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114); +UPDATE `creature_equip_template` SET `patch`=5 WHERE `patch`=0 && `entry` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114); +UPDATE `creature_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (347, 15103, 15106, 14981, 14982, 857, 907, 12198, 14990, 14991, 15006, 15007, 15084, 15062, 11340, 11352, 11357, 11359, 11390, 11389, 11380, 14825, 14883, 14882, 15091, 14758, 11353, 11365, 11339, 11347, 11348, 11361, 14599, 11350, 11360, 11391, 11382, 14821, 11356, 14510, 11388, 11370, 14532, 11338, 14880, 14517, 11373, 14507, 14750, 11368, 11831, 11351, 11372, 11371, 14826, 15042, 11374, 15111, 14834, 15043, 11387, 11830, 15067, 15114); +UPDATE `skinning_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (14750, 14821, 15043, 11373, 10257, 11359, 11360, 11361, 11365, 11368, 11371, 11372); +UPDATE `pickpocketing_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (11338, 11350, 11351, 11353, 11356, 11830, 11831); + +-- Creatures added in 1.6. +UPDATE `creature` SET `patch_min`=4 WHERE (`patch_min` < 4) && `id` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360); +UPDATE `creature_addon` SET `patch`=4 WHERE (`patch` < 4) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360))); +UPDATE `creature_template` SET `patch`=4 WHERE `entry` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360); +UPDATE `creature_template_addon` SET `patch`=4 WHERE `entry` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360); +UPDATE `creature_equip_template` SET `patch`=4 WHERE `entry` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360); +UPDATE `creature_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (14435, 5118, 7410, 7427, 12197, 2302, 2804, 10360); + +-- Creatures added in 1.5. +UPDATE `creature` SET `patch_min`=3 WHERE (`patch_min` < 3) && `id` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122); +UPDATE `creature_addon` SET `patch`=3 WHERE (`patch` < 3) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122))); +UPDATE `creature_template` SET `patch`=3 WHERE `entry` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122); +UPDATE `creature_template_addon` SET `patch`=3 WHERE `entry` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122); +UPDATE `creature_equip_template` SET `patch`=3 WHERE `entry` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122); +UPDATE `creature_loot_template` SET `patch_min`=3 WHERE (`patch_min` < 3) && `entry` IN (13216, 13218, 11948, 13816, 14748, 14762, 14763, 14764, 14765, 14766, 14767, 14768, 14769, 14770, 14771, 14772, 14773, 14774, 14777, 12122); + +-- Creatures added in 1.4. +UPDATE `creature` SET `patch_min`=2 WHERE (`patch_min` < 2) && `id` IN (14475, 14474, 14473, 14530, 14533, 14534, 14432); +UPDATE `creature_addon` SET `patch`=2 WHERE (`patch` < 2) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (14475, 14474, 14473, 14530, 14533, 14534, 14432))); +UPDATE `creature_template` SET `patch`=2 WHERE `entry` IN (14530, 14533, 14534, 14432); +UPDATE `creature_template_addon` SET `patch`=2 WHERE `entry` IN (14475, 14474, 14473, 14530, 14533, 14534, 14432); +UPDATE `creature_equip_template` SET `patch`=2 WHERE `entry` IN (14475, 14474, 14473, 14530, 14533, 14534, 14432); +UPDATE `creature_loot_template` SET `patch_min`=2 WHERE (`patch_min` < 2) && `entry` IN (14475, 14474, 14473, 14530, 14533, 14534, 14432); + +-- Creatures added in 1.3. +UPDATE `creature` SET `patch_min`=1 WHERE (`patch_min` < 1) && `id` IN (14184, 14063, 14062, 14061, 7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690); +UPDATE `creature_addon` SET `patch`=1 WHERE (`patch` < 1) && (`guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (14184, 14063, 14062, 14061, 7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690))); +UPDATE `creature_template` SET `patch`=1 WHERE `patch`=0 && `entry` IN (14184, 14063, 14062, 14061, 7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690); +UPDATE `creature_template_addon` SET `patch`=1 WHERE `entry` IN (14184, 14063, 14062, 14061, 7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690); +UPDATE `creature_equip_template` SET `patch`=1 WHERE `entry` IN (14184, 14063, 14062, 14061, 7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690); +UPDATE `creature_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (7549, 13196, 14385, 14399, 14361, 11480, 11466, 11441, 13036, 11444, 11487, 14338, 14327, 11490, 11453, 13276, 11451, 11457, 11491, 14325, 14324, 14383, 14368, 14381, 14382, 11486, 11483, 11489, 14358, 11467, 13021, 13197, 11454, 11456, 11455, 13285, 13196, 11452, 11461, 11465, 13022, 11448, 11445, 14326, 16032, 14371, 11459, 14303, 11458, 11462, 11472, 11475, 11471, 14398, 11470, 11469, 11473, 11476, 11492, 11496, 14354, 14321, 14322, 11488, 13280, 16045, 16097, 11477, 14400, 11446, 13160, 14308, 11484, 14386, 11464, 1000001, 14323, 14349, 11500, 11450, 11501, 14690); +UPDATE `pickpocketing_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (11441, 11444, 11448, 11450); +UPDATE `skinning_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (13036, 14398); + +-- The skinning loot for these creatures was added in 1.8. +DELETE FROM `creature_template` WHERE `entry`=11698; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11698, 0, 0, 0, 12149, 0, 0, 0, 'Hive\'Ashi Stinger', NULL, 0, 57, 58, 8183, 8360, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 354, 456, 0, 262, 1, 1175, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 11698, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11698, 6, 0, 0, 12149, 0, 0, 0, 'Hive\'Ashi Stinger', NULL, 0, 57, 58, 8183, 8360, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 354, 456, 0, 262, 1, 1175, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 11698, 0, 11698, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11721; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11721, 0, 0, 0, 12151, 0, 0, 0, 'Hive\'Ashi Worker', NULL, 0, 57, 58, 8331, 8639, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 262, 1, 1166, 2000, 1, 512, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11721, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11721, 6, 0, 0, 12151, 0, 0, 0, 'Hive\'Ashi Worker', NULL, 0, 57, 58, 8331, 8639, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 262, 1, 1166, 2000, 1, 512, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11721, 0, 11721, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11722; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11722, 0, 0, 0, 12153, 0, 0, 0, 'Hive\'Ashi Defender', NULL, 0, 58, 59, 8613, 8821, 0, 0, 5156, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 372, 479, 0, 268, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11722, 0, 0, 0, 0, 0, 0, 0, 0, 6713, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11722, 6, 0, 0, 12153, 0, 0, 0, 'Hive\'Ashi Defender', NULL, 0, 58, 59, 8613, 8821, 0, 0, 5156, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 372, 479, 0, 268, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11722, 0, 11722, 0, 0, 0, 0, 0, 0, 6713, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=11723; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11723, 0, 0, 0, 12150, 0, 0, 0, 'Hive\'Ashi Sandstalker', NULL, 0, 58, 59, 8084, 8353, 0, 0, 2615, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 268, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11723, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11723, 6, 0, 0, 12150, 0, 0, 0, 'Hive\'Ashi Sandstalker', NULL, 0, 58, 59, 8084, 8353, 0, 0, 2615, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 268, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11723, 0, 11723, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11724; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11724, 0, 0, 0, 12152, 0, 0, 0, 'Hive\'Ashi Swarmer', NULL, 0, 57, 58, 8284, 8444, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 354, 456, 0, 262, 1, 1175, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 11724, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11724, 6, 0, 0, 12152, 0, 0, 0, 'Hive\'Ashi Swarmer', NULL, 0, 57, 58, 8284, 8444, 0, 0, 3408, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 354, 456, 0, 262, 1, 1175, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 11724, 0, 11724, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11725; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11725, 0, 0, 0, 12158, 0, 0, 0, 'Hive\'Zora Waywatcher', NULL, 0, 58, 59, 9018, 9318, 0, 0, 3462, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 372, 479, 0, 268, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11725, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11725, 6, 0, 0, 12158, 0, 0, 0, 'Hive\'Zora Waywatcher', NULL, 0, 58, 59, 9018, 9318, 0, 0, 3462, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 372, 479, 0, 268, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11725, 0, 11725, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11726; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11726, 0, 0, 0, 12159, 0, 0, 0, 'Hive\'Zora Tunneler', NULL, 0, 58, 59, 9180, 9445, 0, 0, 3462, 311, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 268, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11726, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11726, 6, 0, 0, 12159, 0, 0, 0, 'Hive\'Zora Tunneler', NULL, 0, 58, 59, 9180, 9445, 0, 0, 3462, 311, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 361, 467, 0, 268, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11726, 0, 11726, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11727; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11727, 0, 0, 0, 11088, 0, 0, 0, 'Hive\'Zora Wasp', NULL, 0, 57, 59, 4129, 4534, 0, 0, 3462, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 126, 0, 268, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 72.688, 99.946, 100, 10, 0, 11727, 0, 0, 0, 0, 0, 0, 0, 0, 19448, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11727, 6, 0, 0, 11088, 0, 0, 0, 'Hive\'Zora Wasp', NULL, 0, 57, 59, 4129, 4534, 0, 0, 3462, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 126, 0, 268, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 72.688, 99.946, 100, 10, 0, 11727, 0, 11727, 0, 0, 0, 0, 0, 0, 19448, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=11728; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11728, 0, 0, 0, 11085, 0, 0, 0, 'Hive\'Zora Reaver', NULL, 0, 59, 60, 9056, 9678, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 571, 737, 0, 272, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 11728, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16790, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11728, 6, 0, 0, 11085, 0, 0, 0, 'Hive\'Zora Reaver', NULL, 0, 59, 60, 9056, 9678, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 571, 737, 0, 272, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 11728, 0, 11728, 0, 0, 0, 0, 0, 0, 0, 16790, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11729; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11729, 0, 0, 0, 12160, 0, 0, 0, 'Hive\'Zora Hive Sister', NULL, 0, 59, 60, 9104, 9694, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 571, 737, 0, 272, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 11729, 0, 0, 0, 0, 0, 0, 0, 0, 7951, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11729, 6, 0, 0, 12160, 0, 0, 0, 'Hive\'Zora Hive Sister', NULL, 0, 59, 60, 9104, 9694, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 571, 737, 0, 272, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 11729, 0, 11729, 0, 0, 0, 0, 0, 0, 7951, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=11730; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11730, 0, 0, 0, 11106, 0, 0, 0, 'Hive\'Regal Ambusher', NULL, 0, 59, 60, 8382, 8790, 0, 0, 2749, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 544, 703, 0, 272, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11730, 0, 0, 0, 0, 0, 0, 0, 0, 744, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11730, 6, 0, 0, 11106, 0, 0, 0, 'Hive\'Regal Ambusher', NULL, 0, 59, 60, 8382, 8790, 0, 0, 2749, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 544, 703, 0, 272, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11730, 0, 11730, 0, 0, 0, 0, 0, 0, 744, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=11731; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11731, 0, 0, 0, 12156, 0, 0, 0, 'Hive\'Regal Burrower', NULL, 0, 59, 60, 8900, 9079, 0, 0, 3640, 311, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 544, 703, 0, 272, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11731, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11731, 6, 0, 0, 12156, 0, 0, 0, 'Hive\'Regal Burrower', NULL, 0, 59, 60, 8900, 9079, 0, 0, 3640, 311, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 544, 703, 0, 272, 1, 1166, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 10, 8, 11731, 0, 11731, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11732; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11732, 0, 0, 0, 9229, 0, 0, 0, 'Hive\'Regal Spitfire', NULL, 0, 59, 60, 8808, 9099, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 559, 720, 0, 272, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11732, 0, 0, 0, 0, 0, 0, 0, 0, 21047, 5708, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11732, 6, 0, 0, 9229, 0, 0, 0, 'Hive\'Regal Spitfire', NULL, 0, 59, 60, 8808, 9099, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 559, 720, 0, 272, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11732, 0, 11732, 0, 0, 0, 0, 0, 0, 21047, 5708, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=11733; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11733, 0, 0, 0, 12154, 0, 0, 0, 'Hive\'Regal Slavemaker', NULL, 0, 59, 60, 8653, 9072, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 559, 720, 0, 272, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11733, 0, 0, 0, 0, 0, 0, 0, 0, 3584, 19469, 0, 0, 117330, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11733, 6, 0, 0, 12154, 0, 0, 0, 'Hive\'Regal Slavemaker', NULL, 0, 59, 60, 8653, 9072, 0, 0, 3640, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 559, 720, 0, 272, 1, 1158, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 11733, 0, 11733, 0, 0, 0, 0, 0, 0, 3584, 19469, 0, 0, 117330, 0, 0, 0, '', 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=11734; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11734, 0, 0, 0, 12155, 0, 0, 0, 'Hive\'Regal Hive Lord', NULL, 0, 59, 61, 11776, 12456, 0, 0, 3790, 310, 0, 1.1, 1.14286, 2.3, 20, 5, 0, 1, 1, 380, 491, 0, 278, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 172.1, 240.07, 100, 10, 8, 11734, 0, 0, 0, 0, 0, 0, 0, 0, 19471, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (11734, 6, 0, 0, 12155, 0, 0, 0, 'Hive\'Regal Hive Lord', NULL, 0, 59, 61, 11776, 12456, 0, 0, 3790, 310, 0, 1.1, 1.14286, 2.3, 20, 5, 0, 1, 1, 380, 491, 0, 278, 1, 1150, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 172.1, 240.07, 100, 10, 8, 11734, 0, 11734, 0, 0, 0, 0, 0, 0, 19471, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=14473; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14473, 2, 0, 0, 14521, 0, 0, 0, 'Lapress', NULL, 0, 60, 60, 13575, 13575, 0, 0, 3791, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 2, 1, 605, 783, 0, 272, 1, 1150, 2000, 1, 64, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 14473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14473, 6, 0, 0, 14521, 0, 0, 0, 'Lapress', NULL, 0, 60, 60, 13575, 13575, 0, 0, 3791, 310, 0, 1.1, 1.14286, 0, 20, 5, 0, 2, 1, 605, 783, 0, 272, 1, 1150, 2000, 1, 64, 0, 0, 0, 0, 0, 0, 61.732, 84.8815, 100, 10, 8, 14473, 0, 14473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, ''); +DELETE FROM `creature_template` WHERE `entry`=14474; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14474, 2, 0, 0, 14522, 0, 0, 0, 'Zora', NULL, 0, 59, 59, 9941, 9941, 0, 0, 3489, 310, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 395, 510, 0, 268, 1, 1158, 1274, 0, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 14474, 0, 0, 0, 0, 0, 0, 0, 0, 21067, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14474, 6, 0, 0, 14522, 0, 0, 0, 'Zora', NULL, 0, 59, 59, 9941, 9941, 0, 0, 3489, 310, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 395, 510, 0, 268, 1, 1158, 1274, 0, 0, 0, 0, 0, 0, 0, 0, 61.152, 84.084, 100, 10, 8, 14474, 0, 14474, 0, 0, 0, 0, 0, 0, 21067, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=14475; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14475, 2, 0, 0, 12153, 0, 0, 0, 'Rex Ashil', NULL, 0, 57, 57, 8308, 8308, 0, 0, 5034, 14, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 354, 456, 0, 258, 1, 1175, 1292, 0, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 14475, 0, 0, 0, 0, 0, 0, 0, 0, 12097, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14475, 6, 0, 0, 12153, 0, 0, 0, 'Rex Ashil', NULL, 0, 57, 57, 8308, 8308, 0, 0, 5034, 14, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 354, 456, 0, 258, 1, 1175, 1292, 0, 0, 0, 0, 0, 0, 0, 0, 59.9488, 82.4296, 100, 10, 8, 14475, 0, 14475, 0, 0, 0, 0, 0, 0, 12097, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +DELETE FROM `creature_template` WHERE `entry`=14530; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14530, 2, 0, 0, 8610, 0, 0, 0, 'Solenor the Slayer', NULL, 0, 60, 60, 18918, 19193, 0, 0, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 517, 666, 0, 272, 1, 2000, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 4112, 'npc_solenor'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14530, 3, 0, 0, 8610, 0, 0, 0, 'Solenor the Slayer', NULL, 0, 60, 60, 18918, 19193, 0, 0, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 517, 666, 0, 272, 1, 2000, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 14530, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 4112, 'npc_solenor'); +DELETE FROM `creature_template` WHERE `entry`=14533; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14533, 2, 0, 0, 10925, 0, 0, 0, 'Simone the Seductress', NULL, 0, 60, 60, 12910, 12910, 12170, 12170, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 50, 75, 0, 272, 1, 1183, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 16, 'npc_simone_seductress'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14533, 3, 0, 0, 10925, 0, 0, 0, 'Simone the Seductress', NULL, 0, 60, 60, 12910, 12910, 12170, 12170, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 50, 75, 0, 272, 1, 1183, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 14533, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 16, 'npc_simone_seductress'); +DELETE FROM `creature_template` WHERE `entry`=14534; +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14534, 2, 0, 0, 9018, 0, 0, 0, 'Klinfran the Crazed', NULL, 0, 60, 60, 24702, 24702, 0, 0, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 517, 666, 0, 272, 1, 2000, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'npc_klinfran'); +INSERT INTO `creature_template` (`entry`, `patch`, `KillCredit1`, `KillCredit2`, `modelid_1`, `modelid_2`, `modelid_3`, `modelid_4`, `name`, `subname`, `gossip_menu_id`, `minlevel`, `maxlevel`, `minhealth`, `maxhealth`, `minmana`, `maxmana`, `armor`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `Detection`, `CallForHelp`, `Leash`, `rank`, `ExperienceMultiplier`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spells_template`, `PetSpellDataId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `Civilian`, `RacialLeader`, `RegenHealth`, `equipment_id`, `trainer_id`, `vendor_id`, `MechanicImmuneMask`, `SchoolImmuneMask`, `flags_extra`, `ScriptName`) VALUES (14534, 3, 0, 0, 9018, 0, 0, 0, 'Klinfran the Crazed', NULL, 0, 60, 60, 24702, 24702, 0, 0, 3791, 90, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 517, 666, 0, 272, 1, 2000, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 61.4072, 84.4349, 100, 3, 8, 14534, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 'npc_klinfran'); + +-- Why does Waypoint have loot? +UPDATE `creature_template` SET `lootid`=0 WHERE `entry`=1; +DELETE FROM `creature_loot_template` WHERE `entry`=1; + +-- Fix startup errors about unused template on low patches. +UPDATE `reference_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (2081, 2082, 2083); +UPDATE `reference_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (12006); +UPDATE `reference_loot_template` SET `patch_min`=2 WHERE (`patch_min` < 2) && `entry` IN (30001); +UPDATE `reference_loot_template` SET `patch_min`=7 WHERE (`patch_min` < 7) && `entry` IN (21509, 21510, 21512, 21513); +UPDATE `reference_loot_template` SET `patch_min`=6 WHERE (`patch_min` < 6) && `entry` IN (30401); + + +-- End of migration. +END IF; +END?? +delimiter ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration; diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index d0f18859c..793948df2 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -272,6 +272,19 @@ void ObjectMgr::LoadAllIdentifiers() } while (result->NextRow()); } + m_VendorTemplateIdSet.clear(); + result.reset(WorldDatabase.Query("SELECT DISTINCT `entry` FROM `npc_vendor_template`")); + + if (result) + { + do + { + fields = result->Fetch(); + uint32 id = fields[0].GetUInt32(); + m_VendorTemplateIdSet.insert(id); + } while (result->NextRow()); + } + sSpellMgr.LoadExistingSpellIds(); } @@ -9433,7 +9446,7 @@ void ObjectMgr::LoadVendorTemplates() uint32 vendor_id = fields[2].GetUInt32(); if (m_CacheVendorTemplateItemMap.find(vendor_id) != m_CacheVendorTemplateItemMap.end()) vendor_ids.erase(vendor_id); - else if (patch <= sWorld.GetWowPatch()) + else if ((patch <= sWorld.GetWowPatch()) && !IsExistingVendorTemplateId(vendor_id)) sLog.outErrorDb("Creature (Entry: %u) has vendor_id = %u for nonexistent vendor template", creature_id, vendor_id); } while (result->NextRow()); } diff --git a/src/game/ObjectMgr.h b/src/game/ObjectMgr.h index 59204e1b9..c2278dd5e 100644 --- a/src/game/ObjectMgr.h +++ b/src/game/ObjectMgr.h @@ -581,6 +581,7 @@ class ObjectMgr bool IsExistingGameObjectGuid(uint32 id) const { return (m_GameObjectGuidSet.find(id) != m_GameObjectGuidSet.end()); } bool IsExistingAreaTriggerId(uint32 id) const { return (m_AreaTriggerIdSet.find(id) != m_AreaTriggerIdSet.end()); } bool IsExistingCreatureSpellsId(uint32 id) const { return (m_CreatureSpellsIdSet.find(id) != m_CreatureSpellsIdSet.end()); } + bool IsExistingVendorTemplateId(uint32 id) const { return (m_VendorTemplateIdSet.find(id) != m_VendorTemplateIdSet.end()); } typedef std::unordered_map ItemMap; @@ -1449,6 +1450,7 @@ class ObjectMgr std::set m_GameObjectGuidSet; std::set m_AreaTriggerIdSet; std::set m_CreatureSpellsIdSet; + std::set m_VendorTemplateIdSet; typedef std::map PetLevelInfoMap; // PetLevelInfoMap[creature_id][level] diff --git a/src/game/ScriptMgr.cpp b/src/game/ScriptMgr.cpp index 98d90d25d..a13017848 100644 --- a/src/game/ScriptMgr.cpp +++ b/src/game/ScriptMgr.cpp @@ -2094,42 +2094,79 @@ void ScriptMgr::LoadEscortData() void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) { - // Load all possible script entries from gameobjects. - for (auto itr = sGOStorage.begin(); itr < sGOStorage.end(); ++itr) - { - switch (itr->type) - { - case GAMEOBJECT_TYPE_GOOBER: - eventIds.insert(itr->goober.eventId); - break; - case GAMEOBJECT_TYPE_CHEST: - eventIds.insert(itr->chest.eventId); - break; - case GAMEOBJECT_TYPE_CAMERA: - eventIds.insert(itr->camera.eventID); - break; - case GAMEOBJECT_TYPE_CAPTURE_POINT: - eventIds.insert(itr->capturePoint.neutralEventID1); - eventIds.insert(itr->capturePoint.neutralEventID2); - eventIds.insert(itr->capturePoint.contestedEventID1); - eventIds.insert(itr->capturePoint.contestedEventID2); - eventIds.insert(itr->capturePoint.progressEventID1); - eventIds.insert(itr->capturePoint.progressEventID2); - eventIds.insert(itr->capturePoint.winEventID1); - eventIds.insert(itr->capturePoint.winEventID2); - break; - default: - break; - } - } - QueryResult* result; + // Load all possible script entries from gameobjects. + std::unique_ptr result(WorldDatabase.Query("SELECT `data2` FROM `gameobject_template` WHERE `type`=10 && `data2` > 0")); Field* fields; + if (result) + { + do + { + fields = result->Fetch(); + uint32 eventId = fields[0].GetUInt32(); + if (eventId) + eventIds.insert(eventId); + } while (result->NextRow()); + } + result.reset(WorldDatabase.Query("SELECT `data6` FROM `gameobject_template` WHERE `type`=3 && `data6` > 0")); + if (result) + { + do + { + fields = result->Fetch(); + uint32 eventId = fields[0].GetUInt32(); + if (eventId) + eventIds.insert(eventId); + } while (result->NextRow()); + } + result.reset(WorldDatabase.Query("SELECT `data2` FROM `gameobject_template` WHERE `type`=13 && `data2` > 0")); + if (result) + { + do + { + fields = result->Fetch(); + uint32 eventId = fields[0].GetUInt32(); + if (eventId) + eventIds.insert(eventId); + } while (result->NextRow()); + } + result.reset(WorldDatabase.Query("SELECT `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11` FROM `gameobject_template` WHERE `type`=29")); + if (result) + { + do + { + fields = result->Fetch(); + uint32 data4 = fields[0].GetUInt32(); + if (data4) + eventIds.insert(data4); + uint32 data5 = fields[1].GetUInt32(); + if (data5) + eventIds.insert(data5); + uint32 data6 = fields[2].GetUInt32(); + if (data6) + eventIds.insert(data6); + uint32 data7 = fields[3].GetUInt32(); + if (data7) + eventIds.insert(data7); + uint32 data8 = fields[4].GetUInt32(); + if (data8) + eventIds.insert(data8); + uint32 data9 = fields[5].GetUInt32(); + if (data9) + eventIds.insert(data9); + uint32 data10 = fields[6].GetUInt32(); + if (data10) + eventIds.insert(data10); + uint32 data11 = fields[7].GetUInt32(); + if (data11) + eventIds.insert(data11); + } while (result->NextRow()); + } // Load all possible script entries from spells. for (uint32 i = 1; i < 4; ++i) { - result = WorldDatabase.PQuery("SELECT effectMiscValue%u FROM spell_template WHERE effect%u=61", i, i); + result.reset(WorldDatabase.PQuery("SELECT `effectMiscValue%u` FROM `spell_template` WHERE `effect%u`=61", i, i)); if (result) { @@ -2140,7 +2177,6 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) if (eventId) eventIds.insert(eventId); } while (result->NextRow()); - delete result; } } @@ -2177,7 +2213,7 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) for (uint8 i = 0; i < 9; i++) { // From SCRIPT_COMMAND_START_SCRIPT. - result = WorldDatabase.PQuery("SELECT datalong, datalong2, datalong3, datalong4 FROM %s WHERE command=39", script_tables[i]); + result.reset(WorldDatabase.PQuery("SELECT `datalong`, `datalong2`, `datalong3`, `datalong4` FROM `%s` WHERE `command`=39", script_tables[i])); if (result) { @@ -2197,11 +2233,10 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) if (event4) eventIds.insert(event4); } while (result->NextRow()); - delete result; } // From SCRIPT_COMMAND_TEMP_SUMMON_CREATURE. - result = WorldDatabase.PQuery("SELECT dataint2 FROM %s WHERE command=10 && dataint2!=0", script_tables[i]); + result.reset(WorldDatabase.PQuery("SELECT `dataint2` FROM `%s` WHERE `command`=10 && `dataint2`!=0", script_tables[i])); if (result) { @@ -2212,11 +2247,10 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) if (event1) eventIds.insert(event1); } while (result->NextRow()); - delete result; } // From SCRIPT_COMMAND_START_SCRIPT_FOR_ALL. - result = WorldDatabase.PQuery("SELECT datalong FROM %s WHERE command=68", script_tables[i]); + result.reset(WorldDatabase.PQuery("SELECT `datalong` FROM `%s` WHERE `command`=68", script_tables[i])); if (result) { @@ -2227,11 +2261,10 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) if (event1) eventIds.insert(event1); } while (result->NextRow()); - delete result; } // From SCRIPT_COMMAND_START_MAP_EVENT, SCRIPT_COMMAND_ADD_MAP_EVENT_TARGET and SCRIPT_COMMAND_EDIT_MAP_EVENT. - result = WorldDatabase.PQuery("SELECT dataint2, dataint4 FROM %s WHERE command IN (61, 63, 69)", script_tables[i]); + result.reset(WorldDatabase.PQuery("SELECT `dataint2`, `dataint4` FROM `%s` WHERE `command` IN (61, 63, 69)", script_tables[i])); if (result) { @@ -2245,7 +2278,6 @@ void ScriptMgr::CollectPossibleEventIds(std::set& eventIds) if (event2) eventIds.insert(event2); } while (result->NextRow()); - delete result; } } }