diff --git a/sql/migrations/20230731135338_world.sql b/sql/migrations/20230731135338_world.sql new file mode 100644 index 00000000000..366f37c8760 --- /dev/null +++ b/sql/migrations/20230731135338_world.sql @@ -0,0 +1,601 @@ +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`='20230731135338'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20230731135338'); +-- Add your query below. + + +DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE EVENT = 18); +DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE EVENT = 19); +DELETE FROM `gameobject` WHERE `guid` IN (SELECT `guid` FROM `game_event_gameobject` WHERE EVENT = 20); +DELETE FROM `game_event_gameobject` WHERE `event` IN (18, 19, 20); + +DELETE FROM `creature` WHERE `id` = 13842; +DELETE FROM `creature` WHERE `guid` IN (SELECT `guid` FROM `game_event_creature` WHERE EVENT = 18) AND `guid` NOT IN (190496, 190498, 190500, 190512, 190514, 190516, 190520, 190522, 190524, 190532, 190548, 190556, 190497, 190499, 190501, 190513, 190515, 190517, 190521, 190523, 190525, 190533, 190549, 190557); +DELETE FROM `creature` WHERE `guid` IN (SELECT `guid` FROM `game_event_creature` WHERE EVENT = 19) AND `guid` NOT IN (190496, 190498, 190500, 190512, 190514, 190516, 190520, 190522, 190524, 190532, 190548, 190556, 190497, 190499, 190501, 190513, 190515, 190517, 190521, 190523, 190525, 190533, 190549, 190557); +DELETE FROM `creature` WHERE `guid` IN (SELECT `guid` FROM `game_event_creature` WHERE EVENT = 20) AND `guid` NOT IN (190496, 190498, 190500, 190512, 190514, 190516, 190520, 190522, 190524, 190532, 190548, 190556, 190497, 190499, 190501, 190513, 190515, 190517, 190521, 190523, 190525, 190533, 190549, 190557); +DELETE FROM `game_event_creature` WHERE `event` IN (18, 19, 20) AND `guid` NOT IN (190496, 190498, 190500, 190512, 190514, 190516, 190520, 190522, 190524, 190532, 190548, 190556, 190497, 190499, 190501, 190513, 190515, 190517, 190521, 190523, 190525, 190533, 190549, 190557); + +-- CREATURES +-- EVENT 18 AV (13843 15103 15106 13842) +SET @CGUID = 17116; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `health_percent`, `patch_min`, `patch_max`) VALUES +(@CGUID+1, 15103, 0, -8876.83, 542.382, 106.366, 0.558505, 300, 300, 100, 5, 10), +(@CGUID+2, 15103, 0, -8873.52, 544.724, 106.367, 3.82227, 300, 300, 100, 5, 10), +(@CGUID+3, 15103, 0, -8853.08, 587.01, 94.0289, 0.680678, 300, 300, 100, 5, 10), +(@CGUID+4, 15103, 0, -8850.69, 589.49, 93.7805, 4.06662, 300, 300, 100, 5, 10), +(@CGUID+5, 15103, 0, -8840.63, 652.959, 97.1951, 5.60251, 300, 300, 100, 5, 10), +(@CGUID+6, 15103, 0, -8838.8, 651.394, 96.8924, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+7, 15103, 0, -8422.24, 347.872, 120.969, 5.53269, 300, 300, 100, 5, 10), +(@CGUID+8, 15103, 0, -8419.03, 343.831, 120.969, 2.30383, 300, 300, 100, 5, 10), +(@CGUID+9, 15103, 0, -8411.89, 575.031, 92.3179, 0.855211, 300, 300, 100, 5, 10), +(@CGUID+10, 15103, 0, -8409.07, 578.255, 92.0611, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+11, 15103, 0, -5038.58, -1259.39, 505.383, 1.43117, 300, 300, 100, 5, 10), +(@CGUID+12, 15103, 0, -5038.23, -1255.28, 505.383, 4.5204, 300, 300, 100, 5, 10), +(@CGUID+13, 15103, 0, -5033.75, -931.287, 501.743, 1.32645, 300, 300, 100, 5, 10), +(@CGUID+14, 15103, 0, -5032.97, -926.68, 501.743, 4.64258, 300, 300, 100, 5, 10), +(@CGUID+15, 15103, 0, -4916.61, -852.305, 501.745, 1.48353, 300, 300, 100, 5, 10), +(@CGUID+16, 15103, 0, -4916.43, -848.374, 501.745, 4.72984, 300, 300, 100, 5, 10), +(@CGUID+17, 15103, 0, -4839.37, -1169.09, 502.279, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+18, 15103, 0, -4836.85, -1171.63, 502.277, 2.44346, 300, 300, 100, 5, 10), +(@CGUID+19, 15103, 0, -4683.46, -985.091, 501.627, 6.03884, 300, 300, 100, 5, 10), +(@CGUID+20, 15103, 0, -4680.56, -985.584, 501.646, 3.08923, 300, 300, 100, 5, 10), +(@CGUID+21, 15106, 1, -1381.3, -61.6688, 159.135, 0.0174533, 300, 300, 100, 5, 10), +(@CGUID+22, 15106, 1, -1377.62, -61.9991, 159.279, 2.93215, 300, 300, 100, 5, 10), +(@CGUID+23, 15106, 1, -1277.94, 138.47, 131.94, 5.35816, 300, 300, 100, 5, 10), +(@CGUID+24, 15106, 1, -1275.75, 135.88, 132.1, 2.32129, 300, 300, 100, 5, 10), +(@CGUID+25, 15106, 1, -1247.75, 54.7024, 127.217, 1.0472, 300, 300, 100, 5, 10), +(@CGUID+26, 15106, 1, -1245.48, 58.3111, 127.087, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+27, 15106, 1, -1091.7, -17.997, 140.475, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+28, 15106, 1, -1090.22, -15.3547, 140.657, 4.15388, 300, 300, 100, 5, 10), +(@CGUID+29, 15106, 0, 1329.25, 344.726, -63.6213, 5.06145, 300, 300, 100, 5, 10), +(@CGUID+30, 15106, 0, 1331.1, 340.068, -63.6164, 1.98968, 300, 300, 100, 5, 10), +(@CGUID+31, 15106, 0, 1520.59, 239.869, -41.3065, 0.925025, 300, 300, 100, 5, 10), +(@CGUID+32, 15106, 0, 1522.88, 242.296, -41.3065, 3.89208, 300, 300, 100, 5, 10), +(@CGUID+33, 15106, 0, 1593.39, 166.775, -41.3411, 5.61996, 300, 300, 100, 5, 10), +(@CGUID+34, 15106, 0, 1593.71, 316.03, -41.3411, 6.23083, 300, 300, 100, 5, 10), +(@CGUID+35, 15106, 0, 1596.28, 164.606, -41.3411, 2.53073, 300, 300, 100, 5, 10), +(@CGUID+36, 15106, 0, 1596.7, 315.65, -41.3411, 3.10669, 300, 300, 100, 5, 10), +(@CGUID+37, 15106, 1, 1658.86, -4389.01, 23.7694, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+38, 15106, 1, 1660.66, -4385.63, 23.9798, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+39, 15106, 1, 1665.84, -4344.94, 61.3295, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+40, 15106, 1, 1667.64, -4346.96, 61.3295, 2.37365, 300, 300, 100, 5, 10), +(@CGUID+41, 15106, 1, 1743.73, -3966.88, 49.2422, 0.418879, 300, 300, 100, 5, 10), +(@CGUID+42, 15106, 1, 1747.5, -3965.36, 49.8576, 3.49066, 300, 300, 100, 5, 10), +(@CGUID+43, 15106, 1, 1937.56, -4713.03, 37.3228, 1.18682, 300, 300, 100, 5, 10), +(@CGUID+44, 15106, 1, 1938.41, -4709.56, 36.0506, 4.36332, 300, 300, 100, 5, 10), +(@CGUID+45, 15103, 1, 9724.21, 2545, 1335.76, 5.58505, 300, 300, 100, 5, 10), +(@CGUID+46, 15103, 1, 9727.12, 2542.52, 1335.24, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+47, 15103, 1, 9916.48, 2345.54, 1330.87, 1.74533, 300, 300, 100, 5, 10), +(@CGUID+48, 15103, 1, 9916.64, 2349.3, 1330.87, 4.92183, 300, 300, 100, 5, 10), +(@CGUID+49, 15103, 1, 9959.3, 2484.38, 1316.15, 0.750492, 300, 300, 100, 5, 10), +(@CGUID+50, 15103, 1, 9961.1, 2179.29, 1327.8, 5.13127, 300, 300, 100, 5, 10), +(@CGUID+51, 15103, 1, 9962.13, 2487.17, 1316.12, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+52, 15103, 1, 9962.88, 2175.22, 1327.8, 1.97222, 300, 300, 100, 5, 10); + +INSERT INTO `game_event_creature` (`guid`, `event`) VALUES +(@CGUID+1, 18), +(@CGUID+2, 18), +(@CGUID+3, 18), +(@CGUID+4, 18), +(@CGUID+5, 18), +(@CGUID+6, 18), +(@CGUID+7, 18), +(@CGUID+8, 18), +(@CGUID+9, 18), +(@CGUID+10, 18), +(@CGUID+11, 18), +(@CGUID+12, 18), +(@CGUID+13, 18), +(@CGUID+14, 18), +(@CGUID+15, 18), +(@CGUID+16, 18), +(@CGUID+17, 18), +(@CGUID+18, 18), +(@CGUID+19, 18), +(@CGUID+20, 18), +(@CGUID+21, 18), +(@CGUID+22, 18), +(@CGUID+23, 18), +(@CGUID+24, 18), +(@CGUID+25, 18), +(@CGUID+26, 18), +(@CGUID+27, 18), +(@CGUID+28, 18), +(@CGUID+29, 18), +(@CGUID+30, 18), +(@CGUID+31, 18), +(@CGUID+32, 18), +(@CGUID+33, 18), +(@CGUID+34, 18), +(@CGUID+35, 18), +(@CGUID+36, 18), +(@CGUID+37, 18), +(@CGUID+38, 18), +(@CGUID+39, 18), +(@CGUID+40, 18), +(@CGUID+41, 18), +(@CGUID+42, 18), +(@CGUID+43, 18), +(@CGUID+44, 18), +(@CGUID+45, 18), +(@CGUID+46, 18), +(@CGUID+47, 18), +(@CGUID+48, 18), +(@CGUID+49, 18), +(@CGUID+50, 18), +(@CGUID+51, 18), +(@CGUID+52, 18); + +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `health_percent`, `patch_min`, `patch_max`) VALUES +(@CGUID+53, 13843, 0, -4903.01, -968.237, 501.533, 2.47837, 300, 300, 100, 1, 10), +(@CGUID+54, 13842, 1, 1607.92, -4376.44, 9.65736, 4.06662, 300, 300, 100, 1, 10); + +UPDATE `game_event_creature_data` SET `guid` = @CGUID+54 WHERE `guid` = 703; + +-- EVENT 19 WSG (15102 15105) +SET @CGUID = 18756; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `health_percent`, `patch_min`, `patch_max`) VALUES +(@CGUID+1, 15102, 0, -8876.83, 542.382, 106.366, 0.558505, 300, 300, 100, 5, 10), +(@CGUID+2, 15102, 0, -8873.52, 544.724, 106.367, 3.82227, 300, 300, 100, 5, 10), +(@CGUID+3, 15102, 0, -8853.08, 587.01, 94.0289, 0.680678, 300, 300, 100, 5, 10), +(@CGUID+4, 15102, 0, -8850.69, 589.49, 93.7805, 4.06662, 300, 300, 100, 5, 10), +(@CGUID+5, 15102, 0, -8840.63, 652.959, 97.1951, 5.60251, 300, 300, 100, 5, 10), +(@CGUID+6, 15102, 0, -8838.8, 651.394, 96.8924, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+7, 15102, 0, -8460.44, 317.161, 120.969, 5.53269, 300, 300, 100, 5, 10), +(@CGUID+8, 15102, 0, -8457.36, 314.096, 120.969, 2.30383, 300, 300, 100, 5, 10), +(@CGUID+9, 15102, 0, -8411.89, 575.031, 92.3179, 0.855211, 300, 300, 100, 5, 10), +(@CGUID+10, 15102, 0, -8409.07, 578.255, 92.0611, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+11, 15102, 0, -5033.75, -931.287, 501.743, 1.32645, 300, 300, 100, 5, 10), +(@CGUID+12, 15102, 0, -5032.97, -926.68, 501.743, 4.64258, 300, 300, 100, 5, 10), +(@CGUID+13, 15102, 0, -5030.94, -1269.32, 505.383, 0.296706, 300, 300, 100, 5, 10), +(@CGUID+14, 15102, 0, -5026.13, -1267.75, 505.383, 3.47321, 300, 300, 100, 5, 10), +(@CGUID+15, 15102, 0, -4916.61, -852.305, 501.745, 1.48353, 300, 300, 100, 5, 10), +(@CGUID+16, 15102, 0, -4916.43, -848.374, 501.745, 4.72984, 300, 300, 100, 5, 10), +(@CGUID+17, 15102, 0, -4839.37, -1169.09, 502.279, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+18, 15102, 0, -4836.85, -1171.63, 502.277, 2.44346, 300, 300, 100, 5, 10), +(@CGUID+19, 15102, 0, -4683.46, -985.091, 501.627, 6.03884, 300, 300, 100, 5, 10), +(@CGUID+20, 15102, 0, -4680.7, -985.645, 501.642, 3.08923, 300, 300, 100, 5, 10), +(@CGUID+21, 15105, 1, -1381.3, -61.6688, 159.135, 0.0174533, 300, 300, 100, 5, 10), +(@CGUID+22, 15105, 1, -1377.62, -61.9991, 159.279, 2.93215, 300, 300, 100, 5, 10), +(@CGUID+23, 15105, 1, -1277.94, 138.47, 131.94, 5.35816, 300, 300, 100, 5, 10), +(@CGUID+24, 15105, 1, -1275.75, 135.88, 132.1, 2.32129, 300, 300, 100, 5, 10), +(@CGUID+25, 15105, 1, -1247.75, 54.7024, 127.217, 1.0472, 300, 300, 100, 5, 10), +(@CGUID+26, 15105, 1, -1245.48, 58.3111, 127.087, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+27, 15105, 1, -1091.7, -17.997, 140.475, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+28, 15105, 1, -1090.22, -15.3547, 140.657, 4.15388, 300, 300, 100, 5, 10), +(@CGUID+29, 15105, 0, 1258.96, 348.256, -63.6283, 0.977384, 300, 300, 100, 5, 10), +(@CGUID+30, 15105, 0, 1260.82, 351.139, -63.618, 4.15388, 300, 300, 100, 5, 10), +(@CGUID+31, 15105, 0, 1521.09, 238.709, -41.3065, 1.18682, 300, 300, 100, 5, 10), +(@CGUID+32, 15105, 0, 1522.57, 242.055, -41.3065, 4.2586, 300, 300, 100, 5, 10), +(@CGUID+33, 15105, 0, 1593.22, 166.868, -41.3411, 5.81195, 300, 300, 100, 5, 10), +(@CGUID+34, 15105, 0, 1593.71, 316.03, -41.3411, 6.21337, 300, 300, 100, 5, 10), +(@CGUID+35, 15105, 0, 1596.57, 315.891, -41.3411, 3.12414, 300, 300, 100, 5, 10), +(@CGUID+36, 15105, 0, 1597.46, 164.685, -41.3411, 2.6529, 300, 300, 100, 5, 10), +(@CGUID+37, 15105, 1, 1658.86, -4389.01, 23.7694, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+38, 15105, 1, 1660.66, -4385.63, 23.9798, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+39, 15105, 1, 1665.84, -4344.94, 61.3295, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+40, 15105, 1, 1667.64, -4346.96, 61.3295, 2.37365, 300, 300, 100, 5, 10), +(@CGUID+41, 15105, 1, 1743.73, -3966.88, 49.2422, 0.418879, 300, 300, 100, 5, 10), +(@CGUID+42, 15105, 1, 1747.5, -3965.36, 49.8576, 3.49066, 300, 300, 100, 5, 10), +(@CGUID+43, 15105, 1, 1936.91, -4712.06, 37.1041, 1.18682, 300, 300, 100, 5, 10), +(@CGUID+44, 15105, 1, 1937.18, -4707.45, 35.5453, 4.36332, 300, 300, 100, 5, 10), +(@CGUID+45, 15102, 1, 9724.21, 2545, 1335.76, 5.58505, 300, 300, 100, 5, 10), +(@CGUID+46, 15102, 1, 9727.12, 2542.52, 1335.24, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+47, 15102, 1, 9959.42, 2484.32, 1316.13, 0.750492, 300, 300, 100, 5, 10), +(@CGUID+48, 15102, 1, 9961.1, 2179.29, 1327.8, 5.13127, 300, 300, 100, 5, 10), +(@CGUID+49, 15102, 1, 9962.13, 2487.17, 1316.12, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+50, 15102, 1, 9962.88, 2175.22, 1327.8, 1.97222, 300, 300, 100, 5, 10), +(@CGUID+51, 15102, 1, 9983.62, 2350.23, 1330.87, 4.92183, 300, 300, 100, 5, 10), +(@CGUID+52, 15102, 1, 9984.56, 2345.23, 1330.87, 1.74533, 300, 300, 100, 5, 10); + +INSERT INTO `game_event_creature` (`guid`, `event`) VALUES +(@CGUID+1, 19), +(@CGUID+2, 19), +(@CGUID+3, 19), +(@CGUID+4, 19), +(@CGUID+5, 19), +(@CGUID+6, 19), +(@CGUID+7, 19), +(@CGUID+8, 19), +(@CGUID+9, 19), +(@CGUID+10, 19), +(@CGUID+11, 19), +(@CGUID+12, 19), +(@CGUID+13, 19), +(@CGUID+14, 19), +(@CGUID+15, 19), +(@CGUID+16, 19), +(@CGUID+17, 19), +(@CGUID+18, 19), +(@CGUID+19, 19), +(@CGUID+20, 19), +(@CGUID+21, 19), +(@CGUID+22, 19), +(@CGUID+23, 19), +(@CGUID+24, 19), +(@CGUID+25, 19), +(@CGUID+26, 19), +(@CGUID+27, 19), +(@CGUID+28, 19), +(@CGUID+29, 19), +(@CGUID+30, 19), +(@CGUID+31, 19), +(@CGUID+32, 19), +(@CGUID+33, 19), +(@CGUID+34, 19), +(@CGUID+35, 19), +(@CGUID+36, 19), +(@CGUID+37, 19), +(@CGUID+38, 19), +(@CGUID+39, 19), +(@CGUID+40, 19), +(@CGUID+41, 19), +(@CGUID+42, 19), +(@CGUID+43, 19), +(@CGUID+44, 19), +(@CGUID+45, 19), +(@CGUID+46, 19), +(@CGUID+47, 19), +(@CGUID+48, 19), +(@CGUID+49, 19), +(@CGUID+50, 19), +(@CGUID+51, 19), +(@CGUID+52, 19); + +-- EVENT 20 AB (14990 14991) +SET @CGUID = 28620; +INSERT INTO `creature` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecsmin`, `spawntimesecsmax`, `health_percent`, `patch_min`, `patch_max`) VALUES +(@CGUID+1, 14991, 0, -8876.83, 542.382, 106.366, 0.558505, 300, 300, 100, 5, 10), +(@CGUID+2, 14991, 0, -8873.52, 544.724, 106.367, 3.82227, 300, 300, 100, 5, 10), +(@CGUID+3, 14991, 0, -8853.08, 587.01, 94.0289, 0.680678, 300, 300, 100, 5, 10), +(@CGUID+4, 14991, 0, -8850.69, 589.49, 93.7805, 4.06662, 300, 300, 100, 5, 10), +(@CGUID+5, 14991, 0, -8840.63, 652.959, 97.1951, 5.60251, 300, 300, 100, 5, 10), +(@CGUID+6, 14991, 0, -8838.8, 651.394, 96.8924, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+7, 14991, 0, -8416.18, 329.05, 120.969, 5.53269, 300, 300, 100, 5, 10), +(@CGUID+8, 14991, 0, -8414.17, 326.23, 120.969, 2.30383, 300, 300, 100, 5, 10), +(@CGUID+9, 14991, 0, -8411.89, 575.031, 92.3179, 0.855211, 300, 300, 100, 5, 10), +(@CGUID+10, 14991, 0, -8409.07, 578.255, 92.0611, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+11, 14991, 0, -5037.07, -1261.52, 505.383, 5.42797, 300, 300, 100, 5, 10), +(@CGUID+12, 14991, 0, -5033.87, -1266.07, 505.383, 2.07694, 300, 300, 100, 5, 10), +(@CGUID+13, 14991, 0, -5033.75, -931.287, 501.743, 1.32645, 300, 300, 100, 5, 10), +(@CGUID+14, 14991, 0, -5032.97, -926.68, 501.743, 4.64258, 300, 300, 100, 5, 10), +(@CGUID+15, 14991, 0, -4916.61, -852.305, 501.745, 1.48353, 300, 300, 100, 5, 10), +(@CGUID+16, 14991, 0, -4916.43, -848.374, 501.745, 4.72984, 300, 300, 100, 5, 10), +(@CGUID+17, 14991, 0, -4839.37, -1169.09, 502.279, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+18, 14991, 0, -4836.85, -1171.63, 502.277, 2.44346, 300, 300, 100, 5, 10), +(@CGUID+19, 14991, 0, -4683.46, -985.091, 501.627, 6.03884, 300, 300, 100, 5, 10), +(@CGUID+20, 14991, 0, -4680.56, -985.584, 501.646, 3.08923, 300, 300, 100, 5, 10), +(@CGUID+21, 14990, 1, -1381.3, -61.6688, 159.135, 0.0174533, 300, 300, 100, 5, 10), +(@CGUID+22, 14990, 1, -1277.94, 138.47, 131.94, 5.35816, 300, 300, 100, 5, 10), +(@CGUID+23, 14990, 1, -1275.75, 135.88, 132.1, 2.32129, 300, 300, 100, 5, 10), +(@CGUID+24, 14990, 1, -1247.75, 54.7024, 127.217, 1.0472, 300, 300, 100, 5, 10), +(@CGUID+25, 14990, 1, -1245.48, 58.3111, 127.087, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+26, 14990, 1, -1091.7, -17.997, 140.475, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+27, 14990, 1, -1090.22, -15.3547, 140.657, 4.15388, 300, 300, 100, 5, 10), +(@CGUID+28, 14990, 1, -1050.61, 235.155, 134.653, 2.93215, 300, 300, 100, 5, 10), +(@CGUID+29, 14990, 0, 1284.94, 282.267, -63.6046, 6.19592, 300, 300, 100, 5, 10), +(@CGUID+30, 14990, 0, 1288.96, 281.482, -63.6061, 2.86234, 300, 300, 100, 5, 10), +(@CGUID+31, 14990, 0, 1521.09, 238.709, -41.3065, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+32, 14990, 0, 1522.88, 242.33, -41.3065, 4.29351, 300, 300, 100, 5, 10), +(@CGUID+33, 14990, 0, 1593.48, 166.616, -41.3411, 5.84685, 300, 300, 100, 5, 10), +(@CGUID+34, 14990, 0, 1593.71, 316.03, -41.3411, 6.17847, 300, 300, 100, 5, 10), +(@CGUID+35, 14990, 0, 1596.16, 315.656, -41.3411, 2.98451, 300, 300, 100, 5, 10), +(@CGUID+36, 14990, 0, 1597.46, 164.685, -41.3411, 2.70526, 300, 300, 100, 5, 10), +(@CGUID+37, 14990, 1, 1658.86, -4389.01, 23.7694, 1.13446, 300, 300, 100, 5, 10), +(@CGUID+38, 14990, 1, 1660.66, -4385.63, 23.9798, 4.11898, 300, 300, 100, 5, 10), +(@CGUID+39, 14990, 1, 1665.84, -4344.94, 61.3295, 5.37561, 300, 300, 100, 5, 10), +(@CGUID+40, 14990, 1, 1667.64, -4346.96, 61.3295, 2.37365, 300, 300, 100, 5, 10), +(@CGUID+41, 14990, 1, 1743.73, -3966.88, 49.2422, 0.418879, 300, 300, 100, 5, 10), +(@CGUID+42, 14990, 1, 1747.5, -3965.36, 49.8576, 3.49066, 300, 300, 100, 5, 10), +(@CGUID+43, 14990, 1, 1936.46, -4710.1, 36.5287, 1.18682, 300, 300, 100, 5, 10), +(@CGUID+44, 14990, 1, 1937.02, -4707.39, 35.5506, 4.36332, 300, 300, 100, 5, 10), +(@CGUID+45, 14991, 1, 9724.21, 2545, 1335.76, 5.58505, 300, 300, 100, 5, 10), +(@CGUID+46, 14991, 1, 9727.12, 2542.52, 1335.24, 2.42601, 300, 300, 100, 5, 10), +(@CGUID+47, 14991, 1, 9959.42, 2484.32, 1316.13, 0.750492, 300, 300, 100, 5, 10), +(@CGUID+48, 14991, 1, 9961.1, 2179.29, 1327.8, 5.13127, 300, 300, 100, 5, 10), +(@CGUID+49, 14991, 1, 9962.13, 2487.17, 1316.12, 3.9968, 300, 300, 100, 5, 10), +(@CGUID+50, 14991, 1, 9962.88, 2175.22, 1327.8, 1.97222, 300, 300, 100, 5, 10), +(@CGUID+51, 14991, 1, 9983.62, 2350.23, 1330.87, 4.92183, 300, 300, 100, 5, 10), +(@CGUID+52, 14991, 1, 9984.56, 2345.23, 1330.87, 1.74533, 300, 300, 100, 5, 10), +(@CGUID+53, 14990, 0, -1377.62, -61.9991, 159.279, 2.93215, 300, 300, 100, 5, 10); + +INSERT INTO `game_event_creature` (`guid`, `event`) VALUES +(@CGUID+1, 20), +(@CGUID+2, 20), +(@CGUID+3, 20), +(@CGUID+4, 20), +(@CGUID+5, 20), +(@CGUID+6, 20), +(@CGUID+7, 20), +(@CGUID+8, 20), +(@CGUID+9, 20), +(@CGUID+10, 20), +(@CGUID+11, 20), +(@CGUID+12, 20), +(@CGUID+13, 20), +(@CGUID+14, 20), +(@CGUID+15, 20), +(@CGUID+16, 20), +(@CGUID+17, 20), +(@CGUID+18, 20), +(@CGUID+19, 20), +(@CGUID+20, 20), +(@CGUID+21, 20), +(@CGUID+22, 20), +(@CGUID+23, 20), +(@CGUID+24, 20), +(@CGUID+25, 20), +(@CGUID+26, 20), +(@CGUID+27, 20), +(@CGUID+28, 20), +(@CGUID+29, 20), +(@CGUID+30, 20), +(@CGUID+31, 20), +(@CGUID+32, 20), +(@CGUID+33, 20), +(@CGUID+34, 20), +(@CGUID+35, 20), +(@CGUID+36, 20), +(@CGUID+37, 20), +(@CGUID+38, 20), +(@CGUID+39, 20), +(@CGUID+40, 20), +(@CGUID+41, 20), +(@CGUID+42, 20), +(@CGUID+43, 20), +(@CGUID+44, 20), +(@CGUID+45, 20), +(@CGUID+46, 20), +(@CGUID+47, 20), +(@CGUID+48, 20), +(@CGUID+49, 20), +(@CGUID+50, 20), +(@CGUID+51, 20), +(@CGUID+52, 20), +(@CGUID+53, 20); + +-- OBJECTS +-- EVENT 18 AV (180395 180397 180399) +SET @OGUID = 24799; +INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES +(@OGUID+1, 180399, 0, -8869.83, 543.576, 106.861, 4.67748, 0, 0, -0.719339, 0.694659, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+2, 180399, 0, -8847.33, 594.026, 94.0901, 5.58505, 0, 0, -0.34202, 0.939693, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+3, 180399, 0, -8843.05, 654.157, 97.8323, 3.75246, 0, 0, -0.953716, 0.300708, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+4, 180399, 0, -8418.02, 347.772, 121.629, 3.80482, 0, 0, -0.945518, 0.325568, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+5, 180399, 0, -8402.93, 576.101, 92.1175, 5.32326, 0, 0, -0.461748, 0.887011, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+6, 180399, 0, -5036.72, -920.928, 502.333, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+7, 180399, 0, -5034.39, -1263.01, 505.994, 0.663223, 0, 0, 0.325567, 0.945519, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+8, 180399, 0, -4918.03, -843.841, 502.425, 3.87463, 0, 0, -0.93358, 0.358368, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+9, 180399, 0, -4833.56, -1172.25, 502.923, 1.20428, 0, 0, 0.566406, 0.824126, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+10, 180399, 0, -4675.35, -984.821, 502.297, 4.4855, 0, 0, -0.782608, 0.622515, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+11, 180395, 1, -1379.01, -58.6698, 158.927, 3.4034, 0, 0, -0.991445, 0.130528, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+12, 180395, 1, -1273.59, 134.621, 132.174, 3.9619, 0, 0, -0.91706, 0.39875, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+13, 180395, 1, -1249.68, 52.2836, 127.186, 1.90241, 0, 0, 0.814116, 0.580703, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+14, 180395, 1, -1091.78, -20.9857, 140.129, 0.296705, 0, 0, 0.147809, 0.989016, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+15, 180395, 0, 1331.46, 337.249, -63.7058, 3.4383, 0, 0, -0.989016, 0.147811, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+16, 180395, 0, 1524.65, 242.972, -41.3899, 4.72984, 0, 0, -0.700909, 0.713251, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+17, 180395, 0, 1592.72, 168.947, -41.4244, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+18, 180395, 0, 1598.8, 311.823, -41.4244, 3.14159, 0, 0, -1, 0, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+19, 180395, 1, 1657.65, -4385.68, 23.5493, 5.02655, 0, 0, -0.587785, 0.809017, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+20, 180395, 1, 1663.65, -4343.05, 61.2462, 0.750491, 0, 0, 0.366501, 0.930418, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+21, 180395, 1, 1749.5, -3963.36, 49.7743, 3.75246, 0, 0, -0.953716, 0.300708, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+22, 180395, 1, 1934.82, -4711.71, 37.2294, 1.5708, 0, 0, 0.707107, 0.707107, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+23, 180399, 1, 9723.84, 2541.49, 1336.3, 5.88176, 0, 0, -0.199368, 0.979925, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+24, 180399, 1, 9920.2, 2349.05, 1331.37, 4.72984, 0, 0, -0.700909, 0.713251, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+25, 180399, 1, 9963.14, 2488.85, 1316.42, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+26, 180399, 1, 9964.96, 2178.06, 1328.47, 0.471238, 0, 0, 0.233445, 0.97237, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+27, 180397, 0, -8869.82, 544.096, 106.284, 3.10665, 0, 0, 0.999847, 0.0174693, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+28, 180397, 0, -8846.94, 593.738, 93.4625, 2.42601, 0, 0, 0.936672, 0.350207, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+29, 180397, 0, -8842.54, 654.447, 97.2713, 3.75246, 0, 0, -0.953716, 0.300708, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+30, 180397, 0, -8417.59, 348.152, 120.886, 3.80482, 0, 0, -0.945518, 0.325568, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+31, 180397, 0, -8403.31, 576.532, 91.5694, 5.32326, 0, 0, -0.461748, 0.887011, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+32, 180397, 0, -5037.26, -920.918, 501.659, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+33, 180397, 0, -5034.8, -1263.32, 505.3, 0.680677, 0, 0, 0.333806, 0.942642, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+34, 180397, 0, -4917.61, -843.449, 501.661, 3.87463, 0, 0, -0.93358, 0.358368, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+35, 180397, 0, -4833.71, -1172.75, 502.193, 5.93412, 0, 0, -0.173648, 0.984808, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+36, 180397, 0, -4675.45, -985.328, 501.659, 1.3439, 0, 0, 0.622514, 0.782609, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+37, 180397, 1, 9723.25, 2541.69, 1335.68, 4.31097, 0, 0, -0.833885, 0.551938, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+38, 180397, 1, 9920.18, 2349.57, 1330.78, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+39, 180397, 1, 9963.71, 2488.86, 1315.88, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+40, 180397, 1, 9965.34, 2178.41, 1327.95, 3.59538, 0, 0, -0.97437, 0.224951, 180, 180, 100, 1, 0, 0, 5, 10); + +INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES +(@OGUID+1, 18), +(@OGUID+2, 18), +(@OGUID+3, 18), +(@OGUID+4, 18), +(@OGUID+5, 18), +(@OGUID+6, 18), +(@OGUID+7, 18), +(@OGUID+8, 18), +(@OGUID+9, 18), +(@OGUID+10, 18), +(@OGUID+11, 18), +(@OGUID+12, 18), +(@OGUID+13, 18), +(@OGUID+14, 18), +(@OGUID+15, 18), +(@OGUID+16, 18), +(@OGUID+17, 18), +(@OGUID+18, 18), +(@OGUID+19, 18), +(@OGUID+20, 18), +(@OGUID+21, 18), +(@OGUID+22, 18), +(@OGUID+23, 18), +(@OGUID+24, 18), +(@OGUID+25, 18), +(@OGUID+26, 18), +(@OGUID+27, 18), +(@OGUID+28, 18), +(@OGUID+29, 18), +(@OGUID+30, 18), +(@OGUID+31, 18), +(@OGUID+32, 18), +(@OGUID+33, 18), +(@OGUID+34, 18), +(@OGUID+35, 18), +(@OGUID+36, 18), +(@OGUID+37, 18), +(@OGUID+38, 18), +(@OGUID+39, 18), +(@OGUID+40, 18); + +-- EVENT 19 WSG (180394 180397 180400) +SET @OGUID = 27517; +INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES +(@OGUID+1, 180400, 0, -8870.22, 544.18, 107.381, 1.88495, 0, 0, 0.809016, 0.587786, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+2, 180400, 0, -8847.87, 594.554, 94.5125, 5.5676, 0, 0, -0.350207, 0.936672, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+3, 180400, 0, -8843.32, 654.261, 98.6822, 0.645772, 0, 0, 0.317305, 0.948324, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+4, 180400, 0, -8460.94, 313.787, 121.997, 3.82227, 0, 0, -0.942641, 0.333808, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+5, 180400, 0, -8403.57, 576.764, 93.0165, 5.28835, 0, 0, -0.477159, 0.878817, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+6, 180400, 0, -5035.72, -922.074, 502.826, 2.9845, 0, 0, 0.996917, 0.0784664, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+7, 180400, 0, -5034.64, -1263.19, 506.717, 3.85718, 0, 0, -0.936671, 0.35021, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+8, 180400, 0, -4919.79, -844.952, 503.127, 0.663223, 0, 0, 0.325567, 0.945519, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+9, 180400, 0, -4832.72, -1171.25, 503.501, 4.45059, 0, 0, -0.793353, 0.608762, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+10, 180400, 0, -4675.23, -985.175, 503.026, 4.4855, 0, 0, -0.782608, 0.622515, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+11, 180394, 1, -1377.53, -58.1542, 158.909, 3.26377, 0, 0, -0.998135, 0.0610518, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+12, 180394, 1, -1273.51, 134.157, 132.078, 3.927, 0, 0, -0.923879, 0.382686, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+13, 180394, 1, -1249.68, 52.4457, 127.18, 1.90241, 0, 0, 0.814116, 0.580703, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+14, 180394, 1, -1091.86, -20.8769, 140.129, 0.279252, 0, 0, 0.139173, 0.990268, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+15, 180394, 0, 1262.65, 353.735, -63.693, 5.48033, 0, 0, -0.390731, 0.920505, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+16, 180394, 0, 1524.69, 243.914, -41.3899, 4.72984, 0, 0, -0.700909, 0.713251, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+17, 180394, 0, 1592.2, 168.617, -41.4244, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+18, 180394, 0, 1599, 311.549, -41.4244, 3.15906, 0, 0, -0.999962, 0.00873464, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+19, 180394, 1, 1657.46, -4385.4, 23.5797, 5.2709, 0, 0, -0.484809, 0.87462, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+20, 180394, 1, 1663.59, -4343.19, 61.2462, 0.750491, 0, 0, 0.366501, 0.930418, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+21, 180394, 1, 1749.5, -3963.36, 49.7743, 3.4034, 0, 0, -0.991445, 0.130528, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+22, 180394, 1, 1933.51, -4709.62, 36.7444, 1.62316, 0, 0, 0.725374, 0.688355, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+23, 180400, 1, 9720.44, 2545, 1336.91, 2.14675, 0, 0, 0.878817, 0.47716, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+24, 180400, 1, 9963.42, 2490.15, 1317.3, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+25, 180400, 1, 9965.23, 2179.72, 1329.41, 0.541051, 0, 0, 0.267238, 0.963631, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+26, 180400, 1, 9984.69, 2342.52, 1331.81, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+27, 180397, 1, 9985.21, 2342.41, 1330.79, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+28, 180397, 0, -8870.4, 544.658, 106.284, 5.06146, 0, 0, -0.573576, 0.819152, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+29, 180397, 0, -8847.53, 594.128, 93.4274, 2.42601, 0, 0, 0.936672, 0.350207, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+30, 180397, 0, -8842.86, 654.543, 97.2775, 3.80482, 0, 0, -0.945518, 0.325568, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+31, 180397, 0, -8461.34, 313.517, 120.886, 0.698131, 0, 0, 0.34202, 0.939693, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+32, 180397, 0, -8404.05, 577.197, 91.9778, 5.28835, 0, 0, -0.477159, 0.878817, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+33, 180397, 0, -5036.14, -921.804, 501.659, 6.16101, 0, 0, -0.0610485, 0.998135, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+34, 180397, 0, -5035.03, -1263.47, 505.3, 0.698131, 0, 0, 0.34202, 0.939693, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+35, 180397, 0, -4919.31, -844.615, 501.661, 5.42797, 0, 0, -0.414693, 0.909961, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+36, 180397, 0, -4832.88, -1171.66, 502.195, 1.309, 0, 0, 0.608761, 0.793354, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+37, 180397, 0, -4675.27, -985.681, 501.659, 1.36136, 0, 0, 0.62932, 0.777146, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+38, 180397, 1, 9720.18, 2545.46, 1335.68, 5.3058, 0, 0, -0.469471, 0.882948, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+39, 180397, 1, 9963.93, 2490.04, 1316.05, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+40, 180397, 1, 9965.64, 2179.93, 1328.07, 3.73501, 0, 0, -0.956305, 0.292372, 180, 180, 100, 1, 0, 0, 5, 10); + +INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES +(@OGUID+1, 19), +(@OGUID+2, 19), +(@OGUID+3, 19), +(@OGUID+4, 19), +(@OGUID+5, 19), +(@OGUID+6, 19), +(@OGUID+7, 19), +(@OGUID+8, 19), +(@OGUID+9, 19), +(@OGUID+10, 19), +(@OGUID+11, 19), +(@OGUID+12, 19), +(@OGUID+13, 19), +(@OGUID+14, 19), +(@OGUID+15, 19), +(@OGUID+16, 19), +(@OGUID+17, 19), +(@OGUID+18, 19), +(@OGUID+19, 19), +(@OGUID+20, 19), +(@OGUID+21, 19), +(@OGUID+22, 19), +(@OGUID+23, 19), +(@OGUID+24, 19), +(@OGUID+25, 19), +(@OGUID+26, 19), +(@OGUID+27, 19), +(@OGUID+28, 19), +(@OGUID+29, 19), +(@OGUID+30, 19), +(@OGUID+31, 19), +(@OGUID+32, 19), +(@OGUID+33, 19), +(@OGUID+34, 19), +(@OGUID+35, 19), +(@OGUID+36, 19), +(@OGUID+37, 19), +(@OGUID+38, 19), +(@OGUID+39, 19), +(@OGUID+40, 19); + +-- EVENT 20 AB (180396 180398) +SET @OGUID = 5963; +INSERT INTO `gameobject` (`guid`, `id`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecsmin`, `spawntimesecsmax`, `animprogress`, `state`, `spawn_flags`, `visibility_mod`, `patch_min`, `patch_max`) VALUES +(@OGUID+1, 180398, 0, -8870.97, 545.69, 106.284, 4.72984, 0, 0, -0.700909, 0.713251, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+2, 180398, 0, -8849.03, 591.574, 93.5795, 2.44346, 0, 0, 0.939692, 0.34202, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+3, 180398, 0, -8842.61, 654.864, 97.3015, 3.78737, 0, 0, -0.948323, 0.317306, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+4, 180398, 0, -8411.64, 327.647, 120.886, 3.01941, 0, 0, 0.998135, 0.0610518, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+5, 180398, 0, -8403.36, 576.668, 91.5761, 2.18166, 0, 0, 0.887011, 0.461749, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+6, 180398, 0, -5038.93, -1258.81, 505.3, 0.715585, 0, 0, 0.350207, 0.936672, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+7, 180398, 0, -5035.22, -921.683, 501.659, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+8, 180398, 0, -4917.68, -844.409, 501.661, 3.82227, 0, 0, -0.942641, 0.333808, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+9, 180398, 0, -4833.52, -1171.66, 502.195, 1.25664, 0, 0, 0.587785, 0.809017, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+10, 180398, 0, -4675.3, -985.274, 501.659, 1.37881, 0, 0, 0.636078, 0.771625, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+11, 180396, 1, -1273.78, 134.171, 132.044, 3.9619, 0, 0, -0.91706, 0.39875, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+12, 180396, 1, -1249.95, 52.8591, 127.187, 1.88495, 0, 0, 0.809016, 0.587786, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+13, 180396, 1, -1091.66, -20.7783, 140.086, 0.279252, 0, 0, 0.139173, 0.990268, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+14, 180396, 1, -1049.53, 232.828, 134.71, 0.977383, 0, 0, 0.469471, 0.882948, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+15, 180396, 0, 1282.28, 283.433, -63.6946, 1.3439, 0, 0, 0.622514, 0.782609, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+16, 180396, 0, 1525.18, 243.557, -41.3899, 4.7473, 0, 0, -0.694658, 0.71934, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+17, 180396, 0, 1592.34, 168.966, -41.4244, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+18, 180396, 0, 1599.25, 311.107, -41.4244, 3.15906, 0, 0, -0.999962, 0.00873464, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+19, 180396, 1, 1657.95, -4384.94, 23.7052, 4.88692, 0, 0, -0.642787, 0.766045, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+20, 180396, 1, 1663.83, -4343.29, 61.2462, 0.767944, 0, 0, 0.374606, 0.927184, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+21, 180396, 1, 1749.5, -3963.36, 49.7743, 3.50812, 0, 0, -0.983254, 0.182238, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+22, 180396, 1, 1933.43, -4708.68, 36.4909, 1.5708, 0, 0, 0.707107, 0.707107, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+23, 180398, 1, 9722.7, 2542.97, 1335.68, 5.51524, 0, 0, -0.374606, 0.927184, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+24, 180398, 1, 9963.71, 2489.41, 1316.03, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+25, 180398, 1, 9964.45, 2179.26, 1327.95, 3.83973, 0, 0, -0.939692, 0.34202, 180, 180, 100, 1, 0, 0, 5, 10), +(@OGUID+26, 180398, 1, 9985.22, 2348.01, 1330.79, 0, 0, 0, 0, 1, 180, 180, 100, 1, 0, 0, 5, 10); + +INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES +(@OGUID+1, 20), +(@OGUID+2, 20), +(@OGUID+3, 20), +(@OGUID+4, 20), +(@OGUID+5, 20), +(@OGUID+6, 20), +(@OGUID+7, 20), +(@OGUID+8, 20), +(@OGUID+9, 20), +(@OGUID+10, 20), +(@OGUID+11, 20), +(@OGUID+12, 20), +(@OGUID+13, 20), +(@OGUID+14, 20), +(@OGUID+15, 20), +(@OGUID+16, 20), +(@OGUID+17, 20), +(@OGUID+18, 20), +(@OGUID+19, 20), +(@OGUID+20, 20), +(@OGUID+21, 20), +(@OGUID+22, 20), +(@OGUID+23, 20), +(@OGUID+24, 20), +(@OGUID+25, 20), +(@OGUID+26, 20); + +UPDATE `creature` SET `movement_type` = 0, `wander_distance` = 0 WHERE `id` IN (13843, 15103, 15106, 13842, 15102, 15105, 14990, 14991) AND `guid` NOT IN (190496, 190498, 190500, 190512, 190514, 190516, 190520, 190522, 190524, 190532, 190548, 190556, 190497, 190499, 190501, 190513, 190515, 190517, 190521, 190523, 190525, 190533, 190549, 190557); + + +-- End of migration. +END IF; +END?? +delimiter ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;