Files
moonwell-core-vanilla/sql/migrations/20190308120124_world.sql
T
2019-03-08 14:01:56 +02:00

284 lines
25 KiB
SQL

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`='20190308120124');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20190308120124');
-- Add your query below.
-- Fix waypoints for Twilight Marauder.
DELETE FROM `creature_movement` WHERE `id`=43201;
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
(43201, 1, -6376.62, 532.586, 6.06976, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 2, -6387.27, 525.77, 6.35716, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 3, -6416.95, 509.164, 5.29412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 4, -6445.69, 492.734, 1.94094, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 5, -6483.23, 472.67, 3.52189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 6, -6519.05, 453.525, 2.34013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 7, -6554.3, 434.684, 1.04742, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 8, -6584.35, 429.941, 1.80209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 9, -6620.88, 428.329, 2.73216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 10, -6663.1, 406.433, -1.48879, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 11, -6685.12, 378.508, 0.955679, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 12, -6696.41, 344.444, 0.387129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 13, -6719.44, 291.326, 2.04654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 14, -6741.37, 252.316, 2.68882, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 15, -6769.02, 244.972, 3.3158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 16, -6785.68, 253.065, 5.00806, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 17, -6782.69, 284.491, 4.91503, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 18, -6773.95, 328.981, 8.47466, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 19, -6769.03, 370.552, 13.9287, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 20, -6777.04, 417.475, 11.523, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 21, -6781.94, 458.888, 7.05425, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 22, -6790.14, 494.422, 3.73162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 23, -6800.34, 532.114, -1.06189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 24, -6809.64, 553.533, -0.356654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 25, -6847.89, 559.094, -0.394849, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 26, -6886.14, 547.396, 3.76678, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 27, -6925.27, 532.369, 6.66372, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 28, -6949.36, 513.445, 6.54218, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 29, -6976.83, 506.276, 7.3713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 30, -7006.37, 501.558, 8.82952, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 31, -7030.57, 488.433, 8.94151, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 32, -7048.7, 468.955, 9.32741, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 33, -7070.05, 435.786, 8.11191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 34, -7090.8, 406.883, 8.43883, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 35, -7104.42, 437.147, 5.38228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 36, -7115.82, 465.969, 6.36439, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 37, -7124.66, 484.238, 4.15057, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 38, -7158.1, 517.582, 8.64527, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 39, -7182.09, 552.671, 6.43171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 40, -7214.69, 603.063, 3.59552, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 41, -7246.73, 668.799, 11.0092, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 42, -7266.4, 749.662, 3.63041, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 43, -7277.07, 781.773, 2.1908, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 44, -7287.66, 812.315, 0.393271, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 45, -7305.69, 864.325, 1.66148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 46, -7316.1, 928.415, 0.639546, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 47, -7321.97, 970.478, 1.33826, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 48, -7355.4, 996.145, 1.42357, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 49, -7379.55, 994.329, 1.33889, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 50, -7415.38, 999.745, 0.944734, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 51, -7467.77, 1017.2, 1.74277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 52, -7511.61, 1027.23, 2.30124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 53, -7561.11, 1038.43, 3.54908, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 54, -7606.02, 1040.73, 4.51907, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 55, -7650.09, 1048.19, 5.14361, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 56, -7687.37, 1083.46, 3.58373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 57, -7724.36, 1121.49, 1.90764, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 58, -7750.87, 1156.73, 0.618798, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 59, -7774.1, 1201.45, -1.32649, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 60, -7791.54, 1236.7, -5.64483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 61, -7816.35, 1278.61, -11.5483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 62, -7788.67, 1235.35, -5.42427, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 63, -7762.72, 1176.16, -0.220853, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 64, -7734.26, 1133.04, 1.39474, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 65, -7695.28, 1087.65, 3.28412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 66, -7664.04, 1052.89, 4.89814, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 67, -7613.22, 1040.97, 4.43653, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 68, -7571.66, 1037.35, 3.70825, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 69, -7531.33, 1029.95, 2.92627, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 70, -7486.96, 1020.25, 1.91307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 71, -7449.12, 1011.41, 1.5865, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 72, -7403.82, 999.055, 1.19493, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 73, -7354.93, 993.942, 1.60472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 74, -7317.92, 996.312, 1.93947, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 75, -7282.3, 983.871, 3.67044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 76, -7281.69, 947.823, 1.63126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 77, -7304.65, 902.412, 2.45831, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 78, -7304.54, 833.699, 0.729112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 79, -7297.67, 774.047, 3.79059, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 80, -7300.44, 733.333, 3.6663, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 81, -7283.36, 682.183, 3.28548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 82, -7263.38, 635.616, 2.59161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 83, -7241.43, 584.445, 4.96418, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 84, -7212.04, 552.558, 4.24255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 85, -7158.34, 523.197, 7.94478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 86, -7109.59, 471.621, 6.72994, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 87, -7086.48, 406.288, 8.32352, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 88, -7064.68, 437.452, 8.69945, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 89, -7035.86, 481.033, 9.21304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 90, -6994.34, 502.754, 8.312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 91, -6946.36, 520.584, 6.99135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 92, -6904.32, 541.751, 5.53994, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 93, -6855.34, 554.16, 0.750251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 94, -6809.42, 552.665, -0.369408, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 95, -6796.44, 511.72, 0.841312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 96, -6782.51, 463.91, 6.94964, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 97, -6774.89, 418.113, 11.6111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 98, -6769.24, 375.026, 13.8058, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 99, -6767.43, 329.882, 7.89159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 100, -6779.83, 284.361, 4.80784, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 101, -6764.96, 255.943, 2.85304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 102, -6734.39, 250.937, 2.59512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 103, -6685.52, 289.842, 3.1177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 104, -6645.88, 321.396, 3.33683, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 105, -6628.94, 362.372, -1.76605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 106, -6592.79, 378.848, 0.064779, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 107, -6527.53, 404.175, 5.6139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 108, -6481.06, 441.67, 4.66501, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 109, -6450.14, 483.913, 0.694338, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 110, -6408.04, 512.157, 5.75038, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 111, -6378.96, 531.537, 6.06892, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 112, -6357.9, 542.033, 7.97328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 113, -6357.9, 542.033, 7.97328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 114, -6378.96, 531.537, 6.06892, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 115, -6408.04, 512.157, 5.75038, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 116, -6450.14, 483.913, 0.694338, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 117, -6481.06, 441.67, 4.66501, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 118, -6527.53, 404.175, 5.6139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 119, -6592.79, 378.848, 0.064779, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 120, -6628.94, 362.372, -1.76605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 121, -6645.88, 321.396, 3.33683, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 122, -6685.52, 289.842, 3.1177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 123, -6734.39, 250.937, 2.59512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 124, -6764.96, 255.943, 2.85304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 125, -6779.83, 284.361, 4.80784, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 126, -6767.43, 329.882, 7.89159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 127, -6769.24, 375.026, 13.8058, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 128, -6774.89, 418.113, 11.6111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 129, -6782.51, 463.91, 6.94964, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 130, -6796.44, 511.72, 0.841312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 131, -6809.42, 552.665, -0.369408, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 132, -6855.34, 554.16, 0.750251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 133, -6904.32, 541.751, 5.53994, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 134, -6946.36, 520.584, 6.99135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 135, -6994.34, 502.754, 8.312, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 136, -7035.86, 481.033, 9.21304, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 137, -7064.68, 437.452, 8.69945, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 138, -7086.48, 406.288, 8.32352, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 139, -7109.59, 471.621, 6.72994, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 140, -7158.34, 523.197, 7.94478, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 141, -7212.04, 552.558, 4.24255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 142, -7241.43, 584.445, 4.96418, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 143, -7263.38, 635.616, 2.59161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 144, -7283.36, 682.183, 3.28548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 145, -7300.44, 733.333, 3.6663, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 146, -7297.67, 774.047, 3.79059, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 147, -7304.54, 833.699, 0.729112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 148, -7304.65, 902.412, 2.45831, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 149, -7281.69, 947.823, 1.63126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 150, -7282.3, 983.871, 3.67044, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 151, -7317.92, 996.312, 1.93947, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 152, -7354.93, 993.942, 1.60472, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 153, -7403.82, 999.055, 1.19493, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 154, -7449.12, 1011.41, 1.5865, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 155, -7486.96, 1020.25, 1.91307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 156, -7531.33, 1029.95, 2.92627, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 157, -7571.66, 1037.35, 3.70825, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 158, -7613.22, 1040.97, 4.43653, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 159, -7664.04, 1052.89, 4.89814, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 160, -7695.28, 1087.65, 3.28412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 161, -7734.26, 1133.04, 1.39474, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 162, -7762.72, 1176.16, -0.220853, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 163, -7788.67, 1235.35, -5.42427, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 164, -7816.35, 1278.61, -11.5483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 165, -7791.54, 1236.7, -5.64483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 166, -7774.1, 1201.45, -1.32649, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 167, -7750.87, 1156.73, 0.618798, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 168, -7724.36, 1121.49, 1.90764, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 169, -7687.37, 1083.46, 3.58373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 170, -7650.09, 1048.19, 5.14361, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 171, -7606.02, 1040.73, 4.51907, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 172, -7561.11, 1038.43, 3.54908, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 173, -7511.61, 1027.23, 2.30124, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 174, -7467.77, 1017.2, 1.74277, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 175, -7415.38, 999.745, 0.944734, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 176, -7379.55, 994.329, 1.33889, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 177, -7355.4, 996.145, 1.42357, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 178, -7321.97, 970.478, 1.33826, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 179, -7316.1, 928.415, 0.639546, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 180, -7305.69, 864.325, 1.66148, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 181, -7287.66, 812.315, 0.393271, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 182, -7277.07, 781.773, 2.1908, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 183, -7266.4, 749.662, 3.63041, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 184, -7246.73, 668.799, 11.0092, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 185, -7214.69, 603.063, 3.59552, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 186, -7182.09, 552.671, 6.43171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 187, -7158.1, 517.582, 8.64527, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 188, -7124.66, 484.238, 4.15057, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 189, -7115.82, 465.969, 6.36439, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 190, -7104.42, 437.147, 5.38228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 191, -7090.8, 406.883, 8.43883, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 192, -7070.05, 435.786, 8.11191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 193, -7048.7, 468.955, 9.32741, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 194, -7030.57, 488.433, 8.94151, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 195, -7006.37, 501.558, 8.82952, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 196, -6976.83, 506.276, 7.3713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 197, -6949.36, 513.445, 6.54218, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 198, -6925.27, 532.369, 6.66372, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 199, -6886.14, 547.396, 3.76678, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 200, -6847.89, 559.094, -0.394849, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 201, -6809.64, 553.533, -0.356654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 202, -6800.34, 532.114, -1.06189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 203, -6790.14, 494.422, 3.73162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 204, -6781.94, 458.888, 7.05425, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 205, -6777.04, 417.475, 11.523, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 206, -6769.03, 370.552, 13.9287, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 207, -6773.95, 328.981, 8.47466, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 208, -6782.69, 284.491, 4.91503, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 209, -6785.68, 253.065, 5.00806, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 210, -6769.02, 244.972, 3.3158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 211, -6741.37, 252.316, 2.68882, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 212, -6719.44, 291.326, 2.04654, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 213, -6696.41, 344.444, 0.387129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 214, -6685.12, 378.508, 0.955679, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 215, -6663.1, 406.433, -1.48879, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 216, -6620.88, 428.329, 2.73216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 217, -6584.35, 429.941, 1.80209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 218, -6554.3, 434.684, 1.04742, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 219, -6519.05, 453.525, 2.34013, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 220, -6483.23, 472.67, 3.52189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 221, -6445.69, 492.734, 1.94094, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 222, -6416.95, 509.164, 5.29412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0),
(43201, 223, -6387.27, 525.77, 6.35716, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0);
-- Add missing script for quest Ogre Head On A Stick = Party.
UPDATE `broadcast_text` SET `Type`=1 WHERE `ID` IN (4707, 4708, 4709, 4711, 4712);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawnFlags`, `visibilitymod`, `patch_min`, `patch_max`) VALUES (98643, 160839, 0, -7944.79, -2639.03, 218.763, 0.611717, 0, 0, 0.301112, 0.953589, -25, -25, 100, 1, 0, 0, 0, 10);
DELETE FROM `event_scripts` WHERE `id`=13488;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (13488, 0, 74, 13488, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 116, 'Gor\'tesh\'s Lopped Off Head - Add Aura Firegut Fear Storm');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (13488, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4707, 4708, 4709, 4712, 0, 0, 0, 0, 116, 'Gor\'tesh\'s Lopped Off Head - Say Text');
DELETE FROM `event_scripts` WHERE `id`=3561;
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3561, 0, 9, 98643, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Soft Dirt Mound - Respawn Gor\'tesh\'s Lopped Off Head');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3561, 0, 68, 13488, 2, 7033, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Soft Dirt Mound - Start Script for All Firegut Ogres');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3561, 0, 68, 13488, 2, 7034, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Soft Dirt Mound - Start Script for All Firegut Ogre Mages');
INSERT INTO `event_scripts` (`id`, `delay`, `command`, `datalong`, `datalong2`, `datalong3`, `datalong4`, `target_param1`, `target_param2`, `target_type`, `data_flags`, `dataint`, `dataint2`, `dataint3`, `dataint4`, `x`, `y`, `z`, `o`, `condition_id`, `comments`) VALUES (3561, 0, 68, 13488, 2, 7035, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Soft Dirt Mound - Start Script for All Firegut Brutes');
INSERT INTO `spell_effect_mod` (`Id`, `EffectIndex`, `Effect`, `EffectDieSides`, `EffectBaseDice`, `EffectDicePerLevel`, `EffectRealPointsPerLevel`, `EffectBasePoints`, `EffectAmplitude`, `EffectPointsPerComboPoint`, `EffectChainTarget`, `EffectMultipleValue`, `EffectMechanic`, `EffectImplicitTargetA`, `EffectImplicitTargetB`, `EffectRadiusIndex`, `EffectApplyAuraName`, `EffectItemType`, `EffectMiscValue`, `EffectTriggerSpell`, `Comment`) VALUES (13488, 1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 'Firegut Fear Storm - Disable Effect 2');
-- Change drop count of Blackrock Medallion to 1-3 instead of 3-3.
UPDATE `creature_loot_template` SET `mincountOrRef`=1 WHERE `mincountOrRef`=3 && `maxcount`=3 && `item`=11467;
-- Add missing Lunar Festival creature spawns in Darnassus.
INSERT INTO `creature_template_addon` (`entry`, `mount`, `bytes1`, `b2_0_sheath`, `b2_1_flags`, `emote`, `moveflags`, `auras`) VALUES (15897, 0, 0, 1, 16, 0, 0, '25824');
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94919, 15895, 1, 0, 0, 10140.4, 2579.71, 1323.37, 4.38697, 600, 600, 0, 0, 100, 100, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94920, 15898, 1, 0, 0, 10141.7, 2604.31, 1330.83, 6.17347, 600, 600, 0, 0, 100, 100, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94921, 15897, 1, 0, 0, 10150.1, 2602.49, 1330.83, 4.36754, 180, 180, 0, 0, 100, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94924, 15893, 1, 0, 0, 10150.9, 2602.31, 1330.91, 2.47837, 300, 300, 0, 0, 100, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94925, 15894, 1, 0, 0, 10150.8, 2602.45, 1330.91, 6.23082, 300, 300, 0, 0, 100, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94926, 15892, 1, 0, 0, 10149.8, 2607.96, 1330.83, 4.84179, 300, 300, 0, 0, 100, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94927, 15892, 1, 0, 0, 10155.8, 2601.27, 1330.83, 2.8211, 300, 300, 0, 0, 100, 0, 0, 0);
INSERT INTO `creature` (`guid`, `id`, `map`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `DeathState`, `MovementType`) VALUES (94928, 15892, 1, 0, 0, 10145.7, 2598.17, 1330.83, 0.767279, 300, 300, 0, 0, 100, 0, 0, 0);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94919, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94920, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94921, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94924, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94925, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94926, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94927, 7);
INSERT INTO `game_event_creature` (`guid`, `event`) VALUES (94928, 7);
-- Fix wrong category for quest Investigate the Scourge of Ironforge.
UPDATE `quest_template` SET `ZoneOrSort`=-368 WHERE `entry`=9261;
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;