diff --git a/sql/migrations/20190611211810_world.sql b/sql/migrations/20190611211810_world.sql new file mode 100644 index 000000000..d15ff8c1c --- /dev/null +++ b/sql/migrations/20190611211810_world.sql @@ -0,0 +1,212 @@ +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`='20190611211810'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20190611211810'); +-- Add your query below. + + +-- Fix a startup error. +UPDATE `pool_gameobject` SET `patch_min`=1 WHERE `guid` IN (45740, 45741, 45742, 45743, 45744, 45745, 45746, 45747, 45748, 45749); + +-- Creatures added in patch 1.11 +UPDATE `creature_template` SET `patch`=9 WHERE (`patch` < 9) && `entry` IN (14697, 14686, 14684, 14682); +UPDATE `creature_template_addon` SET `patch`=9 WHERE (`patch` < 9) && `entry` IN (14697, 14686, 14684, 14682); +UPDATE `creature_equip_template` SET `patch`=9 WHERE (`patch` < 9) && `entry` IN (14697, 14686, 14684, 14682); +UPDATE `creature_loot_template` SET `patch_min`=9 WHERE (`patch_min` < 9) && `entry` IN (14697, 14686, 14684, 14682); +UPDATE `creature` SET `patch_min`=9 WHERE (`patch_min` < 9) && `id` IN (14697, 14686, 14684, 14682); +UPDATE `creature_addon` SET `patch`=9 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 9) && `id` IN (14697, 14686, 14684, 14682)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=9 WHERE (`patch_min` < 9) && `entry` IN (14697, 14686, 14684, 14682); + +-- Creatures added in patch 1.7 +UPDATE `creature_template` SET `patch`=5 WHERE (`patch` < 5) && `entry` IN (14515, 14509, 11346); +UPDATE `creature_template_addon` SET `patch`=5 WHERE (`patch` < 5) && `entry` IN (14515, 14509, 11346); +UPDATE `creature_equip_template` SET `patch`=5 WHERE (`patch` < 5) && `entry` IN (14515, 14509, 11346); +UPDATE `creature_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (14515, 14509, 11346); +UPDATE `creature` SET `patch_min`=5 WHERE (`patch_min` < 5) && `id` IN (14515, 14509, 11346); +UPDATE `creature_addon` SET `patch`=5 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 5) && `id` IN (14515, 14509, 11346)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=5 WHERE (`patch_min` < 5) && `entry` IN (14515, 14509, 11346); + +-- Creatures added in patch 1.6 +UPDATE `creature_template` SET `patch`=4 WHERE (`patch` < 4) && `entry` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `creature_template_addon` SET `patch`=4 WHERE (`patch` < 4) && `entry` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `creature_equip_template` SET `patch`=4 WHERE (`patch` < 4) && `entry` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `creature_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `creature` SET `patch_min`=4 WHERE (`patch_min` < 4) && `id` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `creature_addon` SET `patch`=4 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 4) && `id` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (10445, 988006, 988005, 988004, 988003, 988002, 988001, 12017, 11983, 11981, 14921, 14912, 14910, 14909, 14908, 14905, 14904, 14903, 14902, 14894, 14893, 14892, 14878, 14876, 14875, 14874, 14873, 14872, 14871, 14869, 14868, 14867, 14866, 14865, 14864, 14861, 14860, 14859, 14857, 14850, 14849, 14847, 14846, 14845, 14844, 14843, 14842, 14841, 14833, 14832, 14829, 14828, 14827, 14822, 14668, 14667, 14666, 14664, 14663, 14662, 14623, 14606, 14605, 14601, 14459, 14456, 14453, 14401, 14312, 14311, 14310, 14309, 14307, 14302, 14265, 14264, 14263, 14262, 14261, 14025, 14024, 14023, 14022, 14020, 13996, 13976, 13020, 12468, 12467, 12465, 12464, 12463, 12461, 12460, 12459, 12457, 12435, 12434, 12422, 12420, 12416); +UPDATE `skinning_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (11981, 11983, 12460, 12461, 12463, 12464, 12465, 12467, 12468, 14020, 14601); +UPDATE `reference_loot_template` SET `patch_min`=4 WHERE (`patch_min` < 4) && `entry` IN (30342, 30347, 30370, 30373, 30381, 30346, 30369, 30372, 30379); + +-- Creatures added in patch 1.5 +UPDATE `creature_template` SET `patch`=3 WHERE (`patch` < 3) && `entry` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); +UPDATE `creature_template_addon` SET `patch`=3 WHERE (`patch` < 3) && `entry` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); +UPDATE `creature_equip_template` SET `patch`=3 WHERE (`patch` < 3) && `entry` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); +UPDATE `creature_loot_template` SET `patch_min`=3 WHERE (`patch_min` < 3) && `entry` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); +UPDATE `creature` SET `patch_min`=3 WHERE (`patch_min` < 3) && `id` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); +UPDATE `creature_addon` SET `patch`=3 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 3) && `id` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=3 WHERE (`patch_min` < 3) && `entry` IN (10989, 10985, 14948, 14947, 14946, 14945, 14944, 14943, 14848, 14757, 14754, 14753, 14752, 14751, 14745, 14744, 14743, 14742, 14741, 14740, 14739, 14738, 14737, 14736, 14734, 14733, 14732, 14731, 14730, 14729, 14728, 14727, 14726, 14725, 14724, 14723, 14722, 14721, 14718, 14717, 14715, 14681, 14661, 14645, 14640, 14639, 14638, 14636, 14635, 14634, 14633, 14632, 14631, 14630, 14629, 14628, 14627, 14626, 14625, 14624, 14622, 14621, 14604, 14603, 14567, 14021, 13796, 13778, 13756, 13576, 13557, 13556, 13555, 13554, 13553, 13552, 13551, 13550, 13549, 13548, 13547, 13546, 13545, 13544, 13543, 13542, 13541, 13540, 13539, 13538, 13537, 13536, 13535, 13534, 13531, 13530, 13529, 13528, 13527, 13526, 13525, 13524, 13520, 13516, 13449, 14274, 13440, 13446, 13419, 13416, 13378, 13256, 13221, 13219, 13217, 13178, 13161, 13155, 13150, 13149, 13117, 13116, 12158, 11605, 10984, 13817, 13776, 13777, 13840, 13841, 2225, 3343, 3625, 4255, 4257, 5134, 5135, 10364, 10367, 10981, 10982, 10983, 10986, 10987, 10990, 10991, 11600, 11602, 11603, 11604, 11657, 11675, 11677, 11678, 11679, 11837, 11838, 11839, 11840, 11946, 11947, 11949, 11997, 11998, 12048, 12050, 12051, 12052, 12053, 12096, 12097, 12121, 12127, 12156, 12157, 12159, 13078, 13079, 13080, 13081, 13086, 13087, 13088, 13089, 13096, 13097, 13098, 13099, 13137, 13138, 13139, 13140, 13143, 13144, 13145, 13146, 13147, 13151, 13152, 13153, 13154, 13176, 13179, 13180, 13181, 13236, 13257, 13284, 13296, 13297, 13298, 13299, 13300, 13316, 13317, 13318, 13319, 13320, 13324, 13325, 13326, 13327, 13328, 13329, 13330, 13331, 13332, 13333, 13334, 13335, 13336, 13337, 13356, 13357, 13358, 13359, 13377, 13396, 13397, 13421, 13422, 13424, 13425, 13426, 13427, 13428, 13437, 13438, 13439, 13441, 13442, 13443, 13447, 13448, 13517, 13518, 13519, 13521, 13522, 13523, 13577, 13597, 13598, 13616, 13617, 13618, 13676, 13797, 13798, 13956, 13957, 13958, 13959, 14026, 14027, 14028, 14029, 14030, 14031, 14185, 14187, 14188, 14282, 14283, 14775, 14776, 20110, 20111, 20112); + +-- Creatures added in patch 1.4 +UPDATE `creature_template` SET `patch`=2 WHERE (`patch` < 2) && `entry` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); +UPDATE `creature_template_addon` SET `patch`=2 WHERE (`patch` < 2) && `entry` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); +UPDATE `creature_equip_template` SET `patch`=2 WHERE (`patch` < 2) && `entry` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); +UPDATE `creature_loot_template` SET `patch_min`=2 WHERE (`patch_min` < 2) && `entry` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); +UPDATE `creature` SET `patch_min`=2 WHERE (`patch_min` < 2) && `id` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); +UPDATE `creature_addon` SET `patch`=2 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 2) && `id` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=2 WHERE (`patch_min` < 2) && `entry` IN (14761, 14602, 14568, 14566, 14565, 14564, 14563, 14562, 14561, 14560, 14559, 14558, 14557, 14556, 14555, 14554, 14553, 14552, 14551, 14550, 14549, 14548, 14547, 14546, 14545, 14544, 14543, 14542, 14541, 14540, 14539, 14538, 14536, 14535, 14531, 14529, 14528, 14527, 14526, 14525, 14524, 14523, 14522, 14521, 14520, 14519, 14518, 14514, 14513, 14512, 14511, 14508, 14505, 14504, 14503, 14502, 14501, 14500, 14499, 14498, 14497, 14496, 14495, 14494, 14493, 14490, 14489, 14486, 14485, 14484, 14483, 14482, 14481, 14480, 14479, 14478, 14477, 14470, 14467, 14466, 14465, 14464, 14463, 14462, 14461, 14460, 14458, 14457, 14455, 14454, 14452, 14451, 14449, 14448, 14444, 14443, 14439, 14438, 14437, 14436, 14434, 14423, 14404, 14403, 14402, 14336, 14335, 14334, 14333, 14332, 14331, 14330, 14329, 14305, 12793, 12792, 12791, 12790, 12789, 12788, 12787, 12786, 12796, 12797, 12798, 14581, 12781, 12778, 12783, 12780, 12779, 12777, 12782); + +-- Creatures added in patch 1.3 +UPDATE `creature_template` SET `patch`=1 WHERE (`patch` < 1) && `entry` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `creature_template_addon` SET `patch`=1 WHERE (`patch` < 1) && `entry` IN (11452, 14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `creature_equip_template` SET `patch`=1 WHERE (`patch` < 1) && `entry` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `creature_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `creature` SET `patch_min`=1 WHERE (`patch_min` < 1) && `id` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `creature_addon` SET `patch`=1 WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE (`patch_min` < 1) && `id` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460)); +UPDATE `pickpocketing_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (14397, 14396, 14395, 14394, 14394, 14389, 14389, 14387, 14380, 14379, 14378, 14377, 14376, 14375, 14374, 14373, 14370, 14369, 14367, 14366, 14365, 14364, 14363, 14362, 14357, 14356, 14355, 14353, 14351, 14350, 14348, 14347, 14344, 14337, 14306, 14304, 14301, 14285, 14284, 14268, 14241, 14236, 14226, 14183, 14182, 14121, 14101, 14081, 14041, 13917, 13916, 13843, 13842, 11447, 11498, 11497, 11494, 11460); +UPDATE `skinning_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (14357); +UPDATE `reference_loot_template` SET `patch_min`=1 WHERE (`patch_min` < 1) && `entry` IN (30002); + +-- These are rare mobs with ids in the 1.3/1.4 range and they have no comments on Allakhazam before April 2005, but models exist in 1.2. +/* +14424, 14425, 14426, 14427, 14428, 14429, 14430, 14431, 14433, 14445, 14446, 14447, 14471, 14472, 14476, 14487, 14488, 14491, 14492, 14221, +14222, 14223, 14224, 14225, 14227, 14228, 14229, 14230, 14231, 14232, 14233, 14234, 14235, 14237, 14266, 14267, 14269, 14270, 14271, 14272, +14273, 14275, 14276, 14277, 14278, 14279, 14280, 14281, 14339, 14340, 14342, 14343, 14345, 14388, 14390, 14393 +*/ + +-- Alshirr Banebreath didn't drop anything prior to 1.9 according to comments. +-- https://web.archive.org/web/20071026023542/http://wow.allakhazam.com/db/mob.html?wmob=14340 +DELETE FROM `creature_template` WHERE `entry`=14340; +INSERT INTO `creature_template` (`entry`, `patch`, `display_id1`, `display_id2`, `display_id3`, `display_id4`, `name`, `subname`, `gossip_menu_id`, `level_min`, `level_max`, `health_min`, `health_max`, `mana_min`, `mana_max`, `armor`, `faction`, `npc_flags`, `speed_walk`, `speed_run`, `scale`, `detection_range`, `call_for_help_range`, `leash_range`, `rank`, `xp_multiplier`, `dmg_min`, `dmg_max`, `dmg_school`, `attack_power`, `dmg_multiplier`, `base_attack_time`, `ranged_attack_time`, `unit_class`, `unit_flags`, `dynamic_flags`, `beast_family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `ranged_dmg_min`, `ranged_dmg_max`, `ranged_attack_power`, `type`, `type_flags`, `loot_id`, `pickpocket_loot_id`, `skinning_loot_id`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spell_id1`, `spell_id2`, `spell_id3`, `spell_id4`, `spell_list_id`, `pet_spell_list_id`, `gold_min`, `gold_max`, `ai_name`, `movement_type`, `inhabit_type`, `civilian`, `racial_leader`, `regeneration`, `equipment_id`, `trainer_id`, `vendor_id`, `mechanic_immune_mask`, `school_immune_mask`, `flags_extra`, `script_name`) VALUES (14340, 0, 2879, 0, 0, 0, 'Alshirr Banebreath', NULL, 0, 54, 54, 3233, 3233, 0, 0, 3216, 90, 0, 1, 1.14286, 0, 20, 5, 0, 4, 1, 329, 425, 0, 244, 1, 1183, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 59.3256, 81.5727, 100, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +INSERT INTO `creature_template` (`entry`, `patch`, `display_id1`, `display_id2`, `display_id3`, `display_id4`, `name`, `subname`, `gossip_menu_id`, `level_min`, `level_max`, `health_min`, `health_max`, `mana_min`, `mana_max`, `armor`, `faction`, `npc_flags`, `speed_walk`, `speed_run`, `scale`, `detection_range`, `call_for_help_range`, `leash_range`, `rank`, `xp_multiplier`, `dmg_min`, `dmg_max`, `dmg_school`, `attack_power`, `dmg_multiplier`, `base_attack_time`, `ranged_attack_time`, `unit_class`, `unit_flags`, `dynamic_flags`, `beast_family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `ranged_dmg_min`, `ranged_dmg_max`, `ranged_attack_power`, `type`, `type_flags`, `loot_id`, `pickpocket_loot_id`, `skinning_loot_id`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spell_id1`, `spell_id2`, `spell_id3`, `spell_id4`, `spell_list_id`, `pet_spell_list_id`, `gold_min`, `gold_max`, `ai_name`, `movement_type`, `inhabit_type`, `civilian`, `racial_leader`, `regeneration`, `equipment_id`, `trainer_id`, `vendor_id`, `mechanic_immune_mask`, `school_immune_mask`, `flags_extra`, `script_name`) VALUES (14340, 7, 2879, 0, 0, 0, 'Alshirr Banebreath', NULL, 0, 54, 54, 3233, 3233, 0, 0, 3216, 90, 0, 1, 1.14286, 0, 20, 5, 0, 4, 1, 329, 425, 0, 244, 1, 1183, 1301, 0, 0, 0, 0, 0, 0, 0, 0, 59.3256, 81.5727, 100, 3, 0, 14340, 0, 0, 0, 0, 0, 0, 0, 216, 0, 0, 0, 0, 0, 0, 115, 155, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'); +UPDATE `creature_loot_template` SET `patch_min`=7 WHERE `entry`=14340 && `patch_min`<7; + +-- Hakkari Priest was spawned outside of ZG instead of Hakkari Oracle before 1.7. +-- https://wowwiki.fandom.com/wiki/Zandalar_tribe?oldid=29695 +-- https://web.archive.org/web/20050206234905/http://wow.allakhazam.com/db/mob.html?wmob=11830 +DELETE FROM `creature_template` WHERE `entry`=11830; +INSERT INTO `creature_template` (`entry`, `patch`, `display_id1`, `display_id2`, `display_id3`, `display_id4`, `name`, `subname`, `gossip_menu_id`, `level_min`, `level_max`, `health_min`, `health_max`, `mana_min`, `mana_max`, `armor`, `faction`, `npc_flags`, `speed_walk`, `speed_run`, `scale`, `detection_range`, `call_for_help_range`, `leash_range`, `rank`, `xp_multiplier`, `dmg_min`, `dmg_max`, `dmg_school`, `attack_power`, `dmg_multiplier`, `base_attack_time`, `ranged_attack_time`, `unit_class`, `unit_flags`, `dynamic_flags`, `beast_family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `ranged_dmg_min`, `ranged_dmg_max`, `ranged_attack_power`, `type`, `type_flags`, `loot_id`, `pickpocket_loot_id`, `skinning_loot_id`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spell_id1`, `spell_id2`, `spell_id3`, `spell_id4`, `spell_list_id`, `pet_spell_list_id`, `gold_min`, `gold_max`, `ai_name`, `movement_type`, `inhabit_type`, `civilian`, `racial_leader`, `regeneration`, `equipment_id`, `trainer_id`, `vendor_id`, `mechanic_immune_mask`, `school_immune_mask`, `flags_extra`, `script_name`) VALUES (11830, 0, 11758, 11759, 11760, 11761, 'Hakkari Priest', NULL, 0, 54, 55, 6558, 6558, 6351, 6489, 2677, 28, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 372, 479, 0, 272, 1, 1166, 2000, 2, 32832, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 7, 8, 11830, 11830, 0, 0, 15, 15, 15, 15, 15, 24021, 24022, 22883, 13704, 118300, 0, 579, 779, 'EventAI', 1, 3, 0, 0, 3, 11830, 0, 0, 0, 0, 0, ''); +INSERT INTO `creature_template` (`entry`, `patch`, `display_id1`, `display_id2`, `display_id3`, `display_id4`, `name`, `subname`, `gossip_menu_id`, `level_min`, `level_max`, `health_min`, `health_max`, `mana_min`, `mana_max`, `armor`, `faction`, `npc_flags`, `speed_walk`, `speed_run`, `scale`, `detection_range`, `call_for_help_range`, `leash_range`, `rank`, `xp_multiplier`, `dmg_min`, `dmg_max`, `dmg_school`, `attack_power`, `dmg_multiplier`, `base_attack_time`, `ranged_attack_time`, `unit_class`, `unit_flags`, `dynamic_flags`, `beast_family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `ranged_dmg_min`, `ranged_dmg_max`, `ranged_attack_power`, `type`, `type_flags`, `loot_id`, `pickpocket_loot_id`, `skinning_loot_id`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spell_id1`, `spell_id2`, `spell_id3`, `spell_id4`, `spell_list_id`, `pet_spell_list_id`, `gold_min`, `gold_max`, `ai_name`, `movement_type`, `inhabit_type`, `civilian`, `racial_leader`, `regeneration`, `equipment_id`, `trainer_id`, `vendor_id`, `mechanic_immune_mask`, `school_immune_mask`, `flags_extra`, `script_name`) VALUES (11830, 5, 11758, 11759, 11760, 11761, 'Hakkari Priest', NULL, 0, 60, 60, 22457, 22457, 12170, 12170, 3075, 28, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 1032, 1191, 0, 272, 1, 1166, 2000, 2, 32832, 0, 0, 0, 0, 0, 0, 60.5576, 83.2667, 100, 7, 8, 11830, 11830, 0, 0, 15, 15, 15, 15, 15, 24021, 24022, 22883, 13704, 118300, 0, 822, 1078, 'EventAI', 1, 3, 0, 0, 3, 11830, 0, 0, 0, 0, 0, ''); +UPDATE `creature_equip_template` SET `patch`=0 WHERE `entry`=11830 && `patch`=5; +UPDATE `creature_loot_template` SET `patch_min`=0 WHERE `entry`=11830 && `patch_min`=5; +UPDATE `pickpocketing_loot_template` SET `patch_min`=0 WHERE `entry`=11830 && `patch_min`=5; +DELETE FROM `creature_onkill_reputation` WHERE `creature_id`=11830; +INSERT INTO `creature_onkill_reputation` (`creature_id`, `patch`, `RewOnKillRepFaction1`, `RewOnKillRepFaction2`, `MaxStanding1`, `IsTeamAward1`, `RewOnKillRepValue1`, `MaxStanding2`, `IsTeamAward2`, `RewOnKillRepValue2`, `TeamDependent`) VALUES (11830, 0, 270, 0, 5, 0, 5, 0, 0, 0, 0); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (984, 11830, 0, -11950, -1165, 77.833, 0.867, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (1007, 11830, 0, -11948, -1015, 89.058, 1.629, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (1011, 11830, 0, -11916, -1048, 69.807, 1.566, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (1054, 11830, 0, -11881, -1164, 77.606, 2.269, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (1102, 11830, 0, -11881, -1013, 91.376, 1.66, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `MovementType`, `curmana`, `patch_min`, `patch_max`) VALUES (1117, 11830, 0, -11880, -1061, 116.188, 1.629, 1800, 1800, 0, 0, 100, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1550, 11830, 0, 0, 0, -11950.2, -1073.28, 92.9322, 1.18397, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1636, 11830, 0, 0, 0, -11880.9, -1067.96, 96.9322, 4.35853, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1723, 11830, 0, 0, 0, -11944.4, -1027.22, 68.9063, 5.40418, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1727, 11830, 0, 0, 0, -11881, -1023.91, 70.0053, 2.74142, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1730, 11830, 0, 0, 0, -11916.1, -1116.62, 77.4038, 4.72556, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1736, 11830, 0, 0, 0, -11880.8, -1114.16, 83.3788, 4.71239, 1800, 1800, 0, 0, 100, 100, 0, 2, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1741, 11830, 0, 0, 0, -11946, -1157.99, 77.7556, 3.97935, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1815, 11830, 0, 0, 0, -11885.2, -1153.59, 77.3678, 5.11381, 1800, 1800, 0, 0, 100, 100, 0, 0, 0, 0, 0, 4); +INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (1820, 11830, 0, 0, 0, -11915.2, -943.197, 52.4557, 4.76323, 1800, 1800, 0, 0, 100, 100, 0, 2, 0, 0, 0, 4); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 1, -11915.5, -884.23, 32.8115, 10000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 2, -11915.2, -943.197, 52.4557, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 3, -11915.3, -971.741, 62.9404, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 4, -11915.6, -997.878, 67.9388, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 5, -11915.8, -1047.9, 69.8056, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 6, -11915.6, -997.878, 67.9388, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 7, -11915.3, -971.741, 62.9404, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1820, 8, -11915.2, -943.197, 52.4557, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 1, -11880.6, -1096.3, 89.0654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 2, -11880.5, -1075.67, 95.4797, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 3, -11880.6, -1096.3, 89.0654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 4, -11880.5, -1136.91, 77.3474, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 5, -11881.1, -1142.28, 77.2812, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 6, -11885.2, -1146.2, 77.2796, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 7, -11893.5, -1147.92, 77.2857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 8, -11941.5, -1149.62, 77.2871, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 9, -11945.5, -1148.23, 77.2798, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 10, -11951.2, -1141.64, 77.2824, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 11, -11952.9, -1133.94, 78.5113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 12, -11952.7, -1113.11, 84.9548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 13, -11952.4, -1092.19, 91.5258, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 14, -11952.7, -1113.11, 84.9548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 15, -11952.9, -1133.94, 78.5113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 16, -11951.2, -1141.64, 77.2824, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 17, -11945.5, -1148.23, 77.2798, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 18, -11941.5, -1149.62, 77.2871, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 19, -11893.5, -1147.92, 77.2857, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 20, -11885.2, -1146.2, 77.2796, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 21, -11881.1, -1142.28, 77.2812, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 22, -11880.5, -1136.91, 77.3474, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 23, -11880.6, -1096.3, 89.0654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO `creature_movement` (`id`, `point`, `position_x`, `position_y`, `position_z`, `waittime`, `script_id`, `textid1`, `textid2`, `textid3`, `textid4`, `textid5`, `emote`, `spell`, `orientation`, `model1`, `model2`) VALUES (1736, 24, -11880.5, -1075.67, 95.4797, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + +-- Creatures whose models were updated after 1.2. +DELETE FROM `creature_template` WHERE `entry` IN (644, 1180, 1365, 2043, 2165, 3811, 4694, 5974, 5977, 6492, 11616, 11735, 11740, 12222, 12296, 12656, 12776, 12944, 13656, 13697, 2736, 8400, 11736, 11737, 11741, 12379, 12380, 2749); +INSERT INTO `creature_template` (`entry`, `patch`, `display_id1`, `display_id2`, `display_id3`, `display_id4`, `name`, `subname`, `gossip_menu_id`, `level_min`, `level_max`, `health_min`, `health_max`, `mana_min`, `mana_max`, `armor`, `faction`, `npc_flags`, `speed_walk`, `speed_run`, `scale`, `detection_range`, `call_for_help_range`, `leash_range`, `rank`, `xp_multiplier`, `dmg_min`, `dmg_max`, `dmg_school`, `attack_power`, `dmg_multiplier`, `base_attack_time`, `ranged_attack_time`, `unit_class`, `unit_flags`, `dynamic_flags`, `beast_family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `ranged_dmg_min`, `ranged_dmg_max`, `ranged_attack_power`, `type`, `type_flags`, `loot_id`, `pickpocket_loot_id`, `skinning_loot_id`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `spell_id1`, `spell_id2`, `spell_id3`, `spell_id4`, `spell_list_id`, `pet_spell_list_id`, `gold_min`, `gold_max`, `ai_name`, `movement_type`, `inhabit_type`, `civilian`, `racial_leader`, `regeneration`, `equipment_id`, `trainer_id`, `vendor_id`, `mechanic_immune_mask`, `school_immune_mask`, `flags_extra`, `script_name`) VALUES +(644, 0, 1124, 0, 0, 0, 'Rhahk\'Zor', 'The Foreman', 0, 19, 19, 4502, 4502, 0, 0, 817, 17, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 101, 130, 0, 88, 1, 3500, 2000, 1, 64, 0, 0, 0, 0, 0, 0, 29.6792, 40.8089, 100, 7, 8, 644, 644, 0, 0, 0, 0, 0, 0, 0, 6304, 0, 0, 0, 6440, 0, 225, 298, 'EventAI', 0, 3, 0, 0, 3, 644, 0, 0, 608908883, 0, 0, ''), +(644, 1, 14403, 0, 0, 0, 'Rhahk\'Zor', 'The Foreman', 0, 19, 19, 4502, 4502, 0, 0, 817, 17, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 101, 130, 0, 88, 1, 3500, 2000, 1, 64, 0, 0, 0, 0, 0, 0, 29.6792, 40.8089, 100, 7, 8, 644, 644, 0, 0, 0, 0, 0, 0, 0, 6304, 0, 0, 0, 6440, 0, 225, 298, 'EventAI', 0, 3, 0, 0, 3, 644, 0, 0, 608908883, 0, 0, ''), +(1180, 0, 1124, 0, 0, 0, 'Mo\'grosh Brute', '', 0, 19, 20, 735, 1337, 0, 0, 841, 45, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 79, 103, 0, 90, 1, 1500, 1650, 1, 0, 0, 0, 0, 0, 0, 0, 25.08, 34.485, 100, 7, 8, 1180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 89, 121, 'EventAI', 1, 3, 0, 0, 3, 1180, 0, 0, 0, 0, 0, ''), +(1180, 1, 14403, 0, 0, 0, 'Mo\'grosh Brute', '', 0, 19, 20, 735, 1337, 0, 0, 841, 45, 0, 1, 1.14286, 0, 20, 5, 0, 1, 1, 79, 103, 0, 90, 1, 1500, 1650, 1, 0, 0, 0, 0, 0, 0, 0, 25.08, 34.485, 100, 7, 8, 1180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 89, 121, 'EventAI', 1, 3, 0, 0, 3, 1180, 0, 0, 0, 0, 0, ''), +(1365, 0, 2584, 0, 0, 0, 'Goli Krumn', '', 9058, 10, 10, 413, 413, 0, 0, 20, 57, 3, 0.96, 1.14286, 0, 20, 5, 0, 0, 1, 9, 13, 0, 62, 1, 1910, 2101, 0, 0, 0, 0, 0, 0, 0, 0, 16.808, 23.111, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 0, 0, 3, 0, 0, 0, 0, 0, 10, ''), +(1365, 1, 14092, 0, 0, 0, 'Goli Krumn', '', 9058, 10, 10, 413, 413, 0, 0, 20, 57, 3, 0.96, 1.14286, 0, 20, 5, 0, 0, 1, 9, 13, 0, 62, 1, 1910, 2101, 0, 0, 0, 0, 0, 0, 0, 0, 16.808, 23.111, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 0, 0, 3, 0, 0, 0, 0, 0, 10, ''), +(2043, 0, 3030, 0, 0, 0, 'Nightsaber Stalker', '', 0, 7, 8, 136, 159, 0, 0, 278, 66, 0, 0.82, 1.14286, 0, 20, 5, 0, 0, 1, 8, 10, 0, 58, 1, 1400, 2000, 1, 0, 0, 2, 0, 0, 0, 0, 13.4464, 18.4888, 100, 1, 1, 2043, 0, 2043, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(2043, 1, 14318, 0, 0, 0, 'Nightsaber Stalker', '', 0, 7, 8, 136, 159, 0, 0, 278, 66, 0, 0.82, 1.14286, 0, 20, 5, 0, 0, 1, 8, 10, 0, 58, 1, 1400, 2000, 1, 0, 0, 2, 0, 0, 0, 0, 13.4464, 18.4888, 100, 1, 1, 2043, 0, 2043, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(2165, 0, 982, 0, 0, 0, 'Grizzled Thistle Bear', '', 0, 16, 17, 383, 467, 0, 0, 350, 44, 0, 0.94, 1.14286, 0, 20, 5, 0, 0, 1, 24, 31, 0, 80, 1, 2000, 2000, 1, 0, 0, 4, 0, 0, 0, 0, 25.7664, 35.4288, 100, 1, 1, 2165, 0, 2165, 0, 0, 0, 0, 0, 0, 3242, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(2165, 1, 14316, 0, 0, 0, 'Grizzled Thistle Bear', '', 0, 16, 17, 383, 467, 0, 0, 350, 44, 0, 0.94, 1.14286, 0, 20, 5, 0, 0, 1, 24, 31, 0, 80, 1, 2000, 2000, 1, 0, 0, 4, 0, 0, 0, 0, 25.7664, 35.4288, 100, 1, 1, 2165, 0, 2165, 0, 0, 0, 0, 0, 0, 3242, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(2736, 0, 171, 0, 0, 0, 'Greater Rock Elemental', '', 0, 42, 44, 2074, 2236, 0, 0, 4436, 91, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 66, 90, 0, 194, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.0304, 81.1668, 100, 4, 0, 2736, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 3, 0, 0, 3, 0, 0, 0, 646016863, 0, 0, ''), +(2736, 1, 14328, 0, 0, 0, 'Greater Rock Elemental', '', 0, 42, 44, 2074, 2236, 0, 0, 4436, 91, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 66, 90, 0, 194, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 59.0304, 81.1668, 100, 4, 0, 2736, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 3, 0, 0, 3, 0, 0, 0, 646016863, 0, 0, ''), +(2749, 0, 5747, 0, 0, 0, 'Siege Golem', '', 0, 40, 40, 5527, 5527, 0, 0, 2921, 91, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 215, 276, 0, 156, 1, 1316, 1448, 0, 0, 0, 0, 0, 0, 0, 0, 47.4944, 65.3048, 100, 4, 8, 2749, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 437, 575, '', 1, 1, 0, 0, 3, 0, 0, 0, 16384, 0, 0, 'generic_spell_ai'), +(2749, 1, 13869, 0, 0, 0, 'Siege Golem', '', 0, 40, 40, 5527, 5527, 0, 0, 2921, 91, 0, 1, 1.14286, 0, 20, 5, 0, 2, 1, 215, 276, 0, 156, 1, 1316, 1448, 0, 0, 0, 0, 0, 0, 0, 0, 47.4944, 65.3048, 100, 4, 8, 2749, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 437, 575, '', 1, 1, 0, 0, 3, 0, 0, 0, 16384, 0, 0, 'generic_spell_ai'), +(3811, 0, 1990, 0, 0, 0, 'Giant Ashenvale Bear', '', 0, 29, 30, 1250, 1568, 0, 0, 562, 44, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 42, 53, 0, 122, 1, 2000, 2000, 1, 0, 0, 4, 0, 0, 0, 0, 40.8672, 56.1924, 100, 1, 1, 3811, 0, 3811, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(3811, 1, 14315, 0, 0, 0, 'Giant Ashenvale Bear', '', 0, 29, 30, 1250, 1568, 0, 0, 562, 44, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 42, 53, 0, 122, 1, 2000, 2000, 1, 0, 0, 4, 0, 0, 0, 0, 40.8672, 56.1924, 100, 1, 1, 3811, 0, 3811, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(4694, 0, 10826, 0, 0, 0, 'Dread Ripper', '', 0, 39, 40, 1701, 1734, 0, 0, 1900, 73, 0, 1.02, 1.14286, 0, 20, 5, 0, 0, 1, 56, 70, 0, 156, 1, 2000, 2000, 1, 0, 0, 7, 0, 0, 0, 0, 53.8384, 74.0278, 100, 1, 1, 4694, 0, 0, 0, 0, 0, 0, 0, 0, 3147, 0, 0, 0, 0, 8837, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(4694, 1, 14319, 0, 0, 0, 'Dread Ripper', '', 0, 39, 40, 1701, 1734, 0, 0, 1900, 73, 0, 1.02, 1.14286, 0, 20, 5, 0, 0, 1, 56, 70, 0, 156, 1, 2000, 2000, 1, 0, 0, 7, 0, 0, 0, 0, 53.8384, 74.0278, 100, 1, 1, 4694, 0, 0, 0, 0, 0, 0, 0, 0, 3147, 0, 0, 0, 0, 8837, 0, 0, 'EventAI', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(5974, 0, 11541, 0, 0, 0, 'Dreadmaul Ogre', '', 0, 45, 46, 2350, 2429, 3923, 4031, 1420, 45, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 55, 71, 0, 208, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 62.8672, 86.4424, 100, 7, 0, 5974, 5974, 0, 0, 0, 0, 0, 0, 0, 20793, 6742, 0, 0, 59740, 0, 91, 123, 'EventAI', 1, 3, 0, 0, 3, 5974, 0, 0, 0, 0, 0, ''), +(5974, 1, 14402, 0, 0, 0, 'Dreadmaul Ogre', '', 0, 45, 46, 2350, 2429, 3923, 4031, 1420, 45, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 55, 71, 0, 208, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 62.8672, 86.4424, 100, 7, 0, 5974, 5974, 0, 0, 0, 0, 0, 0, 0, 20793, 6742, 0, 0, 59740, 0, 91, 123, 'EventAI', 1, 3, 0, 0, 3, 5974, 0, 0, 0, 0, 0, ''), +(5977, 0, 11540, 0, 0, 0, 'Dreadmaul Mauler', '', 0, 53, 54, 3261, 3289, 0, 0, 3190, 45, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 93, 115, 0, 244, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 70.4704, 96.8968, 100, 7, 0, 5977, 5977, 0, 0, 0, 0, 0, 0, 0, 3417, 0, 0, 0, 59770, 0, 114, 154, 'EventAI', 1, 3, 0, 0, 3, 5977, 0, 0, 0, 0, 0, ''), +(5977, 1, 14401, 0, 0, 0, 'Dreadmaul Mauler', '', 0, 53, 54, 3261, 3289, 0, 0, 3190, 45, 0, 1.05, 1.14286, 0, 20, 5, 0, 0, 1, 93, 115, 0, 244, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 70.4704, 96.8968, 100, 7, 0, 5977, 5977, 0, 0, 0, 0, 0, 0, 0, 3417, 0, 0, 0, 59770, 0, 114, 154, 'EventAI', 1, 3, 0, 0, 3, 5977, 0, 0, 0, 0, 0, ''), +(6492, 0, 5246, 0, 0, 0, 'Rift Spawn', '', 0, 16, 17, 355, 386, 0, 0, 20, 91, 0, 0.7, 0.8, 0, 20, 5, 0, 0, 1, 21, 24, 6, 80, 1, 1850, 2035, 0, 0, 0, 0, 0, 0, 0, 0, 26.048, 35.816, 100, 4, 0, 6492, 0, 0, 0, 17, 34, 17, 34, 0, 0, 0, 0, 0, 0, 0, 4, 22, 'EventAI', 1, 3, 0, 0, 3, 0, 0, 0, 16384, 64, 32, ''), +(6492, 1, 14273, 0, 0, 0, 'Rift Spawn', '', 0, 16, 17, 355, 386, 0, 0, 20, 91, 0, 0.7, 0.8, 0, 20, 5, 0, 0, 1, 21, 24, 6, 80, 1, 1850, 2035, 0, 0, 0, 0, 0, 0, 0, 0, 26.048, 35.816, 100, 4, 0, 6492, 0, 0, 0, 17, 34, 17, 34, 0, 0, 0, 0, 0, 0, 0, 4, 22, 'EventAI', 1, 3, 0, 0, 3, 0, 0, 0, 16384, 64, 32, ''), +(8400, 0, 7617, 0, 0, 0, 'Obsidion', '', 0, 52, 52, 15659, 15659, 0, 0, 5503, 14, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 335, 432, 0, 234, 1, 1191, 2000, 1, 768, 0, 0, 0, 0, 0, 0, 58.688, 80.696, 100, 4, 8, 8400, 0, 0, 0, 208, 104, 104, 156, 104, 0, 0, 0, 0, 84000, 0, 765, 1004, 'EventAI', 0, 1, 0, 0, 3, 0, 0, 0, 16384, 0, 2, 'npc_obsidion'), +(8400, 1, 13929, 0, 0, 0, 'Obsidion', '', 0, 52, 52, 15659, 15659, 0, 0, 5503, 14, 0, 1.1, 1.14286, 0, 20, 5, 0, 1, 1, 335, 432, 0, 234, 1, 1191, 2000, 1, 768, 0, 0, 0, 0, 0, 0, 58.688, 80.696, 100, 4, 8, 8400, 0, 0, 0, 208, 104, 104, 156, 104, 0, 0, 0, 0, 84000, 0, 765, 1004, 'EventAI', 0, 1, 0, 0, 3, 0, 0, 0, 16384, 0, 2, 'npc_obsidion'), +(11616, 0, 4931, 0, 0, 0, 'Nathaniel Dumah', '', 0, 55, 55, 4108, 4108, 5013, 5013, 1506, 11, 3, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 96, 125, 0, 248, 1, 2000, 2000, 8, 4096, 0, 0, 0, 0, 0, 0, 70.664, 97.163, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 3, 11616, 0, 0, 0, 0, 2, ''), +(11616, 4, 14953, 0, 0, 0, 'Nathaniel Dumah', '', 0, 55, 55, 4108, 4108, 5013, 5013, 1506, 11, 3, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 96, 125, 0, 248, 1, 2000, 2000, 8, 4096, 0, 0, 0, 0, 0, 0, 70.664, 97.163, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 0, 0, 3, 11616, 0, 0, 0, 0, 2, ''), +(11735, 0, 10988, 0, 0, 0, 'Stonelash Scorpid', '', 0, 54, 55, 3315, 3641, 0, 0, 3244, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 95, 118, 0, 248, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 68.0944, 93.6298, 100, 1, 1, 11735, 0, 11735, 0, 0, 0, 0, 0, 0, 5416, 0, 0, 0, 0, 8859, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11735, 6, 15383, 0, 0, 0, 'Stonelash Scorpid', '', 0, 54, 55, 3315, 3641, 0, 0, 3244, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 95, 118, 0, 248, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 68.0944, 93.6298, 100, 1, 1, 11735, 0, 11735, 0, 0, 0, 0, 0, 0, 5416, 0, 0, 0, 0, 8859, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11736, 0, 10988, 0, 0, 0, 'Stonelash Pincer', '', 0, 56, 56, 3641, 3641, 0, 0, 3327, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 98, 119, 0, 254, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 68.904, 94.743, 100, 1, 1, 11736, 0, 11736, 0, 0, 0, 0, 0, 0, 5416, 3604, 0, 0, 0, 8832, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11736, 6, 15384, 0, 0, 0, 'Stonelash Pincer', '', 0, 56, 56, 3641, 3641, 0, 0, 3327, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 98, 119, 0, 254, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 68.904, 94.743, 100, 1, 1, 11736, 0, 11736, 0, 0, 0, 0, 0, 0, 5416, 3604, 0, 0, 0, 8832, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11737, 0, 10988, 0, 0, 0, 'Stonelash Flayer', '', 0, 57, 58, 3738, 3832, 0, 0, 3408, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 125, 0, 262, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 69.696, 95.832, 100, 1, 1, 11737, 0, 11737, 0, 0, 0, 0, 0, 0, 5416, 3417, 0, 0, 0, 8861, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11737, 6, 15385, 0, 0, 0, 'Stonelash Flayer', '', 0, 57, 58, 3738, 3832, 0, 0, 3408, 413, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 125, 0, 262, 1, 2000, 2000, 1, 0, 0, 20, 0, 0, 0, 0, 69.696, 95.832, 100, 1, 1, 11737, 0, 11737, 0, 0, 0, 0, 0, 0, 5416, 3417, 0, 0, 0, 8861, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11741, 0, 9031, 0, 0, 0, 'Dredge Crusher', '', 0, 57, 58, 3739, 3880, 0, 0, 3435, 14, 2, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 125, 0, 262, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.2272, 97.9374, 100, 1, 0, 11741, 0, 100003, 0, 0, 0, 0, 0, 0, 6607, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11741, 2, 14524, 0, 0, 0, 'Dredge Crusher', '', 0, 57, 58, 3739, 3880, 0, 0, 3435, 14, 2, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 101, 125, 0, 262, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.2272, 97.9374, 100, 1, 0, 11741, 0, 100003, 0, 0, 0, 0, 0, 0, 6607, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11740, 0, 9031, 0, 0, 0, 'Dredge Striker', '', 0, 55, 56, 3148, 3204, 0, 0, 3327, 14, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 97, 120, 0, 254, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 68.0944, 93.6298, 100, 1, 0, 11740, 0, 100003, 0, 0, 0, 0, 0, 0, 22911, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(11740, 6, 15386, 0, 0, 0, 'Dredge Striker', '', 0, 55, 56, 3148, 3204, 0, 0, 3327, 14, 0, 1.1, 1.14286, 0, 20, 5, 0, 0, 1, 97, 120, 0, 254, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 68.0944, 93.6298, 100, 1, 0, 11740, 0, 100003, 0, 0, 0, 0, 0, 0, 22911, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 0, 'generic_spell_ai'), +(12222, 0, 12349, 0, 0, 0, 'Creeping Sludge', '', 0, 45, 46, 5546, 5757, 0, 0, 2557, 16, 0, 1.2, 0.5, 0, 20, 5, 0, 1, 1, 269, 346, 0, 208, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 53.1456, 73.0752, 100, 10, 8, 12222, 12222, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 320, 423, 'EventAI', 1, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(12222, 1, 14350, 0, 0, 0, 'Creeping Sludge', '', 0, 45, 46, 5546, 5757, 0, 0, 2557, 16, 0, 1.2, 0.5, 0, 20, 5, 0, 1, 1, 269, 346, 0, 208, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 53.1456, 73.0752, 100, 10, 8, 12222, 12222, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 320, 423, 'EventAI', 1, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, ''), +(12296, 0, 1547, 0, 0, 0, 'Sickly Gazelle', '', 0, 3, 3, 14, 14, 0, 0, 20, 188, 0, 0.97, 1.14286, 0, 20, 5, 0, 0, 1, 3, 5, 0, 48, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 1.76, 2.42, 100, 8, 0, 0, 0, 12296, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 2, 'npc_sickly_critter'), +(12296, 4, 14951, 0, 0, 0, 'Sickly Gazelle', '', 0, 3, 3, 14, 14, 0, 0, 20, 188, 0, 0.97, 1.14286, 0, 20, 5, 0, 0, 1, 3, 5, 0, 48, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 1.76, 2.42, 100, 8, 0, 0, 0, 12296, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 0, 0, 3, 0, 0, 0, 0, 0, 2, 'npc_sickly_critter'), +(12379, 0, 5829, 0, 0, 0, 'Unliving Caretaker', '', 0, 59, 60, 3984, 4086, 0, 0, 3640, 21, 0, 1, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.9664, 98.9538, 100, 6, 0, 12379, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123790, 0, 204, 272, 'EventAI', 1, 3, 0, 0, 3, 12379, 0, 0, 8413718, 0, 0, ''), +(12379, 1, 13952, 13951, 13953, 13954, 'Unliving Caretaker', '', 0, 59, 60, 3984, 4086, 0, 0, 3640, 21, 0, 1, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.9664, 98.9538, 100, 6, 0, 12379, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123790, 0, 204, 272, 'EventAI', 1, 3, 0, 0, 3, 12379, 0, 0, 8413718, 0, 0, ''), +(12380, 0, 12430, 12431, 0, 0, 'Unliving Resident', '', 0, 59, 60, 4023, 4148, 0, 0, 3640, 21, 0, 1, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.9664, 98.9538, 100, 6, 0, 12380, 12380, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 280, 'EventAI', 1, 3, 0, 0, 3, 12380, 0, 0, 8413718, 0, 0, ''), +(12380, 1, 13949, 12430, 12431, 13950, 'Unliving Resident', '', 0, 59, 60, 4023, 4148, 0, 0, 3640, 21, 0, 1, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 0, 0, 0, 0, 0, 0, 0, 71.9664, 98.9538, 100, 6, 0, 12380, 12380, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 280, 'EventAI', 1, 3, 0, 0, 3, 12380, 0, 0, 8413718, 0, 0, ''), +(12656, 0, 1701, 0, 0, 0, 'Thamarian', '', 4308, 15, 15, 644, 644, 0, 0, 20, 79, 3, 0.94, 1.14286, 0, 20, 5, 0, 0, 1, 17, 22, 0, 74, 1, 2000, 2000, 1, 4608, 0, 0, 0, 0, 0, 0, 24.552, 33.759, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 1, 0, 3, 0, 0, 0, 0, 0, 10, ''), +(12656, 4, 14954, 0, 0, 0, 'Thamarian', '', 4308, 15, 15, 644, 644, 0, 0, 20, 79, 3, 0.94, 1.14286, 0, 20, 5, 0, 0, 1, 17, 22, 0, 74, 1, 2000, 2000, 1, 4608, 0, 0, 0, 0, 0, 0, 24.552, 33.759, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 1, 0, 3, 0, 0, 0, 0, 0, 10, ''), +(12776, 0, 3755, 0, 0, 0, 'Hraug', 'Demon Trainer', 4671, 9, 9, 372, 372, 0, 0, 20, 29, 7, 0.96, 1.14286, 0, 20, 5, 0, 0, 1, 9, 13, 0, 60, 1, 2000, 2112, 1, 768, 0, 0, 3, 0, 3, 0, 15.2064, 20.9088, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 0, 0, 3, 12776, 0, 0, 0, 0, 10, ''), +(12776, 1, 14371, 0, 0, 0, 'Hraug', 'Demon Trainer', 4671, 9, 9, 372, 372, 0, 0, 20, 29, 7, 0.96, 1.14286, 0, 20, 5, 0, 0, 1, 9, 13, 0, 60, 1, 2000, 2112, 1, 768, 0, 0, 3, 0, 3, 0, 15.2064, 20.9088, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'EventAI', 0, 3, 0, 0, 3, 12776, 0, 0, 0, 0, 10, ''), +(12944, 0, 9969, 0, 0, 0, 'Lokhtos Darkbargainer', 'The Thorium Brotherhood', 0, 60, 60, 3857, 3857, 0, 0, 8401, 1475, 7, 1.2, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 768, 0, 0, 0, 0, 0, 0, 74.448, 102.366, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 3, 0, 0, 3, 12944, 0, 0, 0, 0, 2, 'npc_lokhtos_darkbargainer'), +(12944, 3, 14666, 0, 0, 0, 'Lokhtos Darkbargainer', 'The Thorium Brotherhood', 0, 60, 60, 3857, 3857, 0, 0, 8401, 1475, 7, 1.2, 1.14286, 0, 20, 5, 0, 0, 1, 164, 212, 0, 272, 1, 2000, 2000, 1, 768, 0, 0, 0, 0, 0, 0, 74.448, 102.366, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 3, 0, 0, 3, 12944, 0, 0, 0, 0, 2, 'npc_lokhtos_darkbargainer'), +(13656, 0, 2874, 0, 0, 0, 'Willow', 'Twilight\'s Hammer', 0, 45, 45, 2972, 2972, 0, 0, 2725, 35, 2, 1.02, 1.14286, 0, 20, 5, 0, 0, 1, 72, 93, 0, 204, 1, 2000, 2000, 1, 4096, 0, 0, 0, 0, 0, 0, 61.776, 84.942, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 3, 13656, 0, 0, 0, 0, 2, ''), +(13656, 1, 13909, 0, 0, 0, 'Willow', 'Twilight\'s Hammer', 0, 45, 45, 2972, 2972, 0, 0, 2725, 35, 2, 1.02, 1.14286, 0, 20, 5, 0, 0, 1, 72, 93, 0, 204, 1, 2000, 2000, 1, 4096, 0, 0, 0, 0, 0, 0, 61.776, 84.942, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 3, 13656, 0, 0, 0, 0, 2, ''), +(13697, 0, 7850, 0, 0, 0, 'Cavindra', '', 0, 45, 45, 5736, 5736, 1534, 1534, 1619, 35, 3, 1.02, 1.14286, 0, 20, 5, 0, 1, 1, 229, 295, 0, 204, 1, 1300, 2000, 2, 768, 0, 0, 0, 0, 0, 0, 51.48, 70.785, 100, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 3, 13697, 0, 0, 0, 0, 2, ''), +(13697, 1, 14425, 0, 0, 0, 'Cavindra', '', 0, 45, 45, 5736, 5736, 1534, 1534, 1619, 35, 3, 1.02, 1.14286, 0, 20, 5, 0, 1, 1, 229, 295, 0, 204, 1, 1300, 2000, 2, 768, 0, 0, 0, 0, 0, 0, 51.48, 70.785, 100, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 0, 0, 3, 13697, 0, 0, 0, 0, 2, ''); + + +-- 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 ec2a62e92..c0a9d0c0b 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1142,7 +1142,24 @@ void ObjectMgr::LoadCreatureTemplates() } void ObjectMgr::CorrectCreatureModels(uint32 entry, uint32& displayId) -{ +{ +#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_2_4 + if (sWorld.GetWowPatch() == WOW_PATCH_102) + { + // Rhahk'Zor + if (entry == 644 && displayId == 1124) + displayId = 14403; + // Mo'grosh Brute + if (entry == 1180 && displayId == 1124) + displayId = 14403; + // Dreadmaul Ogre + if (entry == 5974 && displayId == 11541) + displayId = 14402; + // Dreadmaul Mauler + if (entry == 5977 && displayId == 11540) + displayId = 14401; + } +#endif #if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_6_1 if (sWorld.GetWowPatch() == WOW_PATCH_106) { @@ -3753,7 +3770,8 @@ void ObjectMgr::LoadItemRequiredTarget() if (!sCreatureStorage.LookupEntry(uiTargetEntry)) { - sLog.outErrorDb("Table `item_required_target`: creature template entry %u does not exist.", uiTargetEntry); + if (!sObjectMgr.IsExistingCreatureId(uiTargetEntry)) + sLog.outErrorDb("Table `item_required_target`: creature template entry %u does not exist.", uiTargetEntry); continue; } diff --git a/src/game/ScriptMgr.cpp b/src/game/ScriptMgr.cpp index 69e7b1755..2b46f37b7 100644 --- a/src/game/ScriptMgr.cpp +++ b/src/game/ScriptMgr.cpp @@ -2055,7 +2055,8 @@ void ScriptMgr::LoadScriptWaypoints() if (!pCInfo) { - sLog.outErrorDb("DB table script_waypoint has waypoint for nonexistant creature entry %u", pTemp.uiCreatureEntry); + if (!sObjectMgr.IsExistingCreatureId(pTemp.uiCreatureEntry)) + sLog.outErrorDb("DB table script_waypoint has waypoint for nonexistant creature entry %u", pTemp.uiCreatureEntry); continue; }