diff --git a/sql/migrations/20230716202706_world.sql b/sql/migrations/20230716202706_world.sql new file mode 100644 index 00000000000..3afb3313e69 --- /dev/null +++ b/sql/migrations/20230716202706_world.sql @@ -0,0 +1,334 @@ +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`='20230716202706'); +IF v=0 THEN +INSERT INTO `migrations` VALUES ('20230716202706'); +-- Add your query below. + + +-- Lunar Festival +-- Pool Lantern spawns in Moonglade. +SET @OGUID = 52659; +SET @PTEMPLATE = 7200; +DELETE FROM `game_event_gameobject` WHERE `guid` IN (64666, 64667, 64668, 64669, 64670, 64671, 64672, 64673, 64674, 64675, 64676, 64677, 64678, 64679, 64680, 64681, 64682, 64683, 64684, 64685, 64686, 64687, 64688, 64689, 64690, 64691, 64692, 64693, 64694, 64695, 64696, 64697, 64698, 64699, 64700, 64701, 64702, 64703, 64704, 64705, 64837, 64838, 64839, 64840, 64841, 64842, 64843, 64844, 64845, 64846, 64847, 64848, 64849, 64850, 64851, 64852, 64853, 64854, 64855, 64856, 64857, 64858, 64859, 64860, 64861, 64862, 64863, 64864, 64865, 64866, 64867, 64868, 64869, 64870, 64871, 64872, 64873, 64874, 64875, 64876); +DELETE FROM `gameobject` WHERE `guid` IN (64666, 64667, 64668, 64669, 64670, 64671, 64672, 64673, 64674, 64675, 64676, 64677, 64678, 64679, 64680, 64681, 64682, 64683, 64684, 64685, 64686, 64687, 64688, 64689, 64690, 64691, 64692, 64693, 64694, 64695, 64696, 64697, 64698, 64699, 64700, 64701, 64702, 64703, 64704, 64705, 64837, 64838, 64839, 64840, 64841, 64842, 64843, 64844, 64845, 64846, 64847, 64848, 64849, 64850, 64851, 64852, 64853, 64854, 64855, 64856, 64857, 64858, 64859, 64860, 64861, 64862, 64863, 64864, 64865, 64866, 64867, 64868, 64869, 64870, 64871, 64872, 64873, 64874, 64875, 64876); + +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, 180765, 1, 7472.89, -2651.32, 455.138, 5.48033, 0, 0, -0.390731, 0.920505, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+2, 180765, 1, 7478.56, -2652.31, 455.145, 3.82227, 0, 0, -0.942641, 0.333808, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+3, 180765, 1, 7526.87, -2464.8, 455.183, 0.087266, 0, 0, 0.0436192, 0.999048, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+4, 180765, 1, 7532.16, -2467.02, 455.591, 0.85521, 0, 0, 0.414693, 0.909962, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+5, 180765, 1, 7547.99, -2399.73, 456.721, 0.820303, 0, 0, 0.398748, 0.91706, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+6, 180765, 1, 7553.5, -2401.66, 456.994, 1.48353, 0, 0, 0.67559, 0.737278, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+7, 180765, 1, 7764.76, -2444.31, 495.587, 4.55531, 0, 0, -0.760405, 0.649449, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+8, 180765, 1, 7770.78, -2420.89, 495.476, 4.4855, 0, 0, -0.782608, 0.622515, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+9, 180765, 1, 7783.38, -2563.99, 497.555, 3.89209, 0, 0, -0.930417, 0.366502, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+10, 180765, 1, 7785.37, -2587.58, 497.624, 1.88495, 0, 0, 0.809016, 0.587786, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+11, 180765, 1, 7789.09, -2453.35, 494.773, 5.53269, 0, 0, -0.366501, 0.930418, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+12, 180765, 1, 7792.22, -2575.03, 504.43, 3.78737, 0, 0, -0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+13, 180765, 1, 7826.32, -2535.33, 503.597, 2.30383, 0, 0, 0.913545, 0.406738, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+14, 180765, 1, 7827.34, -2546.64, 503.597, 1.0472, 0, 0, 0.5, 0.866025, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+15, 180765, 1, 7831.95, -2594.87, 503.597, 0.663223, 0, 0, 0.325567, 0.945519, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+16, 180765, 1, 7833.26, -2607.05, 503.597, 2.49582, 0, 0, 0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+17, 180765, 1, 7844.05, -2569.99, 505.267, 0.418879, 0, 0, 0.207912, 0.978148, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+18, 180765, 1, 7846.75, -2595.48, 494.174, 3.17653, 0, 0, -0.999847, 0.0174693, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+19, 180765, 1, 7857.63, -2486.78, 496.671, 2.77507, 0, 0, 0.983254, 0.182238, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+20, 180765, 1, 7860.25, -2568.45, 501.588, 6.05629, 0, 0, -0.113203, 0.993572, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+21, 180765, 1, 7861.15, -2519.11, 496.652, 0.174532, 0, 0, 0.0871553, 0.996195, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+22, 180765, 1, 7871.58, -2470.44, 498.786, 0.226893, 0, 0, 0.113203, 0.993572, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+23, 180765, 1, 7872.55, -2478.92, 498.78, 1.3439, 0, 0, 0.622514, 0.782609, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+24, 180765, 1, 7879.61, -2478.38, 498.821, 4.24115, 0, 0, -0.85264, 0.522499, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+25, 180765, 1, 7887.91, -2501.87, 501.987, 4.97419, 0, 0, -0.608761, 0.793354, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+26, 180765, 1, 7891.54, -2477.24, 498.728, 4.88692, 0, 0, -0.642787, 0.766045, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+27, 180765, 1, 7897.03, -2467.57, 498.767, 4.06662, 0, 0, -0.894934, 0.446199, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+28, 180765, 1, 7898.02, -2476.25, 498.773, 1.36136, 0, 0, 0.62932, 0.777146, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+29, 180765, 1, 7914.28, -2481.34, 496.647, 5.20108, 0, 0, -0.515037, 0.857168, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+30, 180765, 1, 7917.5, -2513.8, 496.711, 4.81711, 0, 0, -0.66913, 0.743145, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+31, 180765, 1, 7927.91, -2401.15, 498.453, 0.0349062, 0, 0, 0.0174522, 0.999848, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+32, 180765, 1, 7931.39, -2426.61, 498.437, 0.680677, 0, 0, 0.333806, 0.942642, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+33, 180765, 1, 7936.62, -2400.23, 498.442, 1.81514, 0, 0, 0.788011, 0.615662, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+34, 180765, 1, 7939.98, -2425.35, 498.421, 3.7001, 0, 0, -0.961261, 0.27564, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+35, 180765, 1, 7941.81, -2383.62, 496.297, 0.191985, 0, 0, 0.0958452, 0.995396, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+36, 180765, 1, 7948.69, -2440.54, 496.291, 1.88495, 0, 0, 0.809016, 0.587786, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+37, 180765, 1, 7948.81, -2575.67, 516.43, 1.18682, 0, 0, 0.559193, 0.829038, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+38, 180765, 1, 7972.68, -2380.01, 496.279, 5.48033, 0, 0, -0.390731, 0.920505, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+39, 180765, 1, 7980.54, -2436.58, 496.332, 6.17847, 0, 0, -0.0523357, 0.99863, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+40, 180765, 1, 8003.72, -2672.31, 538.656, 4.71239, 0, 0, -0.707107, 0.707107, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+41, 180765, 1, 8013.81, -2638.38, 521.009, 0.401425, 0, 0, 0.199367, 0.979925, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+42, 180765, 1, 8018.68, -2687.19, 521.25, 3.08918, 0, 0, 0.999657, 0.0262017, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+43, 180765, 1, 8022.06, -2671.01, 521.282, 2.49582, 0, 0, 0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+44, 180767, 1, 7472.89, -2651.32, 455.138, 5.48033, 0, 0, -0.390731, 0.920505, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+45, 180767, 1, 7478.56, -2652.31, 455.145, 3.82227, 0, 0, -0.942641, 0.333808, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+46, 180767, 1, 7526.87, -2464.8, 455.183, 0.087266, 0, 0, 0.0436192, 0.999048, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+47, 180767, 1, 7532.16, -2467.02, 455.591, 0.85521, 0, 0, 0.414693, 0.909962, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+48, 180767, 1, 7547.99, -2399.73, 456.721, 0.820303, 0, 0, 0.398748, 0.91706, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+49, 180767, 1, 7553.5, -2401.66, 456.994, 1.48353, 0, 0, 0.67559, 0.737278, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+50, 180767, 1, 7764.76, -2444.31, 495.587, 4.55531, 0, 0, -0.760405, 0.649449, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+51, 180767, 1, 7770.78, -2420.89, 495.476, 4.4855, 0, 0, -0.782608, 0.622515, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+52, 180767, 1, 7783.38, -2563.99, 497.555, 3.89209, 0, 0, -0.930417, 0.366502, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+53, 180767, 1, 7785.37, -2587.58, 497.624, 1.88495, 0, 0, 0.809016, 0.587786, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+54, 180767, 1, 7789.09, -2453.35, 494.773, 5.53269, 0, 0, -0.366501, 0.930418, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+55, 180767, 1, 7792.22, -2575.03, 504.43, 3.78737, 0, 0, -0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+56, 180767, 1, 7826.32, -2535.33, 503.597, 2.30383, 0, 0, 0.913545, 0.406738, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+57, 180767, 1, 7827.34, -2546.64, 503.597, 1.0472, 0, 0, 0.5, 0.866025, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+58, 180767, 1, 7831.95, -2594.87, 503.597, 0.663223, 0, 0, 0.325567, 0.945519, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+59, 180767, 1, 7833.26, -2607.05, 503.597, 2.49582, 0, 0, 0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+60, 180767, 1, 7844.05, -2569.99, 505.267, 0.418879, 0, 0, 0.207912, 0.978148, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+61, 180767, 1, 7846.75, -2595.48, 494.174, 3.17653, 0, 0, -0.999847, 0.0174693, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+62, 180767, 1, 7857.63, -2486.78, 496.671, 2.77507, 0, 0, 0.983254, 0.182238, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+63, 180767, 1, 7860.25, -2568.45, 501.588, 6.05629, 0, 0, -0.113203, 0.993572, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+64, 180767, 1, 7861.15, -2519.11, 496.652, 0.174532, 0, 0, 0.0871553, 0.996195, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+65, 180767, 1, 7871.58, -2470.44, 498.786, 0.226893, 0, 0, 0.113203, 0.993572, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+66, 180767, 1, 7872.55, -2478.92, 498.78, 1.3439, 0, 0, 0.622514, 0.782609, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+67, 180767, 1, 7879.61, -2478.38, 498.821, 4.24115, 0, 0, -0.85264, 0.522499, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+68, 180767, 1, 7887.91, -2501.87, 501.987, 4.97419, 0, 0, -0.608761, 0.793354, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+69, 180767, 1, 7891.54, -2477.24, 498.728, 4.88692, 0, 0, -0.642787, 0.766045, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+70, 180767, 1, 7897.03, -2467.57, 498.767, 4.06662, 0, 0, -0.894934, 0.446199, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+71, 180767, 1, 7898.02, -2476.25, 498.773, 1.36136, 0, 0, 0.62932, 0.777146, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+72, 180767, 1, 7914.28, -2481.34, 496.647, 5.20108, 0, 0, -0.515037, 0.857168, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+73, 180767, 1, 7917.5, -2513.8, 496.711, 4.81711, 0, 0, -0.66913, 0.743145, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+74, 180767, 1, 7927.91, -2401.15, 498.453, 0.0349062, 0, 0, 0.0174522, 0.999848, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+75, 180767, 1, 7931.39, -2426.61, 498.437, 0.680677, 0, 0, 0.333806, 0.942642, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+76, 180767, 1, 7936.62, -2400.23, 498.442, 1.81514, 0, 0, 0.788011, 0.615662, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+77, 180767, 1, 7939.98, -2425.35, 498.421, 3.7001, 0, 0, -0.961261, 0.27564, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+78, 180767, 1, 7941.81, -2383.62, 496.297, 0.191985, 0, 0, 0.0958452, 0.995396, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+79, 180767, 1, 7948.69, -2440.54, 496.291, 1.88495, 0, 0, 0.809016, 0.587786, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+80, 180767, 1, 7948.81, -2575.67, 516.43, 1.18682, 0, 0, 0.559193, 0.829038, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+81, 180767, 1, 7972.68, -2380.01, 496.279, 5.48033, 0, 0, -0.390731, 0.920505, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+82, 180767, 1, 7980.54, -2436.58, 496.332, 6.17847, 0, 0, -0.0523357, 0.99863, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+83, 180767, 1, 8003.72, -2672.31, 538.656, 4.71239, 0, 0, -0.707107, 0.707107, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+84, 180767, 1, 8013.81, -2638.38, 521.009, 0.401425, 0, 0, 0.199367, 0.979925, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+85, 180767, 1, 8018.68, -2687.19, 521.25, 3.08918, 0, 0, 0.999657, 0.0262017, 120, 120, 100, 1, 0, 0, 7, 10), +(@OGUID+86, 180767, 1, 8022.06, -2671.01, 521.282, 2.49582, 0, 0, 0.948323, 0.317306, 120, 120, 100, 1, 0, 0, 7, 10); + +INSERT INTO `pool_template` (`entry`, `max_limit`, `description`, `patch_min`, `patch_max`) VALUES +(@PTEMPLATE+1, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+2, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+3, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+4, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+5, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+6, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+7, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+8, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+9, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+10, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+11, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+12, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+13, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+14, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+15, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+16, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+17, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+18, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+19, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+20, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+21, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+22, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+23, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+24, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+25, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+26, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+27, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+28, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+29, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+30, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+31, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+32, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+33, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+34, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+35, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+36, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+37, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+38, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+39, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+40, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+41, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+42, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@PTEMPLATE+43, 1, 'Lunar Festival - Moonglade Lanterns', 7, 10); + +INSERT INTO `pool_gameobject` (`guid`, `pool_entry`, `description`, `patch_min`, `patch_max`) VALUES +(@OGUID+1, @PTEMPLATE+1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+2, @PTEMPLATE+2, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+3, @PTEMPLATE+3, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+4, @PTEMPLATE+4, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+5, @PTEMPLATE+5, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+6, @PTEMPLATE+6, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+7, @PTEMPLATE+7, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+8, @PTEMPLATE+8, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+9, @PTEMPLATE+9, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+10, @PTEMPLATE+10, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+11, @PTEMPLATE+11, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+12, @PTEMPLATE+12, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+13, @PTEMPLATE+13, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+14, @PTEMPLATE+14, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+15, @PTEMPLATE+15, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+16, @PTEMPLATE+16, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+17, @PTEMPLATE+17, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+18, @PTEMPLATE+18, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+19, @PTEMPLATE+19, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+20, @PTEMPLATE+20, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+21, @PTEMPLATE+21, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+22, @PTEMPLATE+22, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+23, @PTEMPLATE+23, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+24, @PTEMPLATE+24, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+25, @PTEMPLATE+25, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+26, @PTEMPLATE+26, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+27, @PTEMPLATE+27, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+28, @PTEMPLATE+28, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+29, @PTEMPLATE+29, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+30, @PTEMPLATE+30, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+31, @PTEMPLATE+31, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+32, @PTEMPLATE+32, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+33, @PTEMPLATE+33, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+34, @PTEMPLATE+34, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+35, @PTEMPLATE+35, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+36, @PTEMPLATE+36, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+37, @PTEMPLATE+37, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+38, @PTEMPLATE+38, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+39, @PTEMPLATE+39, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+40, @PTEMPLATE+40, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+41, @PTEMPLATE+41, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+42, @PTEMPLATE+42, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+43, @PTEMPLATE+43, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+44, @PTEMPLATE+1, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+45, @PTEMPLATE+2, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+46, @PTEMPLATE+3, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+47, @PTEMPLATE+4, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+48, @PTEMPLATE+5, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+49, @PTEMPLATE+6, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+50, @PTEMPLATE+7, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+51, @PTEMPLATE+8, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+52, @PTEMPLATE+9, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+53, @PTEMPLATE+10, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+54, @PTEMPLATE+11, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+55, @PTEMPLATE+12, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+56, @PTEMPLATE+13, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+57, @PTEMPLATE+14, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+58, @PTEMPLATE+15, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+59, @PTEMPLATE+16, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+60, @PTEMPLATE+17, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+61, @PTEMPLATE+18, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+62, @PTEMPLATE+19, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+63, @PTEMPLATE+20, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+64, @PTEMPLATE+21, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+65, @PTEMPLATE+22, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+66, @PTEMPLATE+23, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+67, @PTEMPLATE+24, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+68, @PTEMPLATE+25, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+69, @PTEMPLATE+26, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+70, @PTEMPLATE+27, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+71, @PTEMPLATE+28, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+72, @PTEMPLATE+29, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+73, @PTEMPLATE+30, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+74, @PTEMPLATE+31, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+75, @PTEMPLATE+32, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+76, @PTEMPLATE+33, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+77, @PTEMPLATE+34, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+78, @PTEMPLATE+35, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+79, @PTEMPLATE+36, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+80, @PTEMPLATE+37, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+81, @PTEMPLATE+38, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+82, @PTEMPLATE+39, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+83, @PTEMPLATE+40, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+84, @PTEMPLATE+41, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+85, @PTEMPLATE+42, 'Lunar Festival - Moonglade Lanterns', 7, 10), +(@OGUID+86, @PTEMPLATE+43, 'Lunar Festival - Moonglade Lanterns', 7, 10); + +INSERT INTO `game_event_gameobject` (`guid`, `event`) VALUES +(@OGUID+1, 7), +(@OGUID+2, 7), +(@OGUID+3, 7), +(@OGUID+4, 7), +(@OGUID+5, 7), +(@OGUID+6, 7), +(@OGUID+7, 7), +(@OGUID+8, 7), +(@OGUID+9, 7), +(@OGUID+10, 7), +(@OGUID+11, 7), +(@OGUID+12, 7), +(@OGUID+13, 7), +(@OGUID+14, 7), +(@OGUID+15, 7), +(@OGUID+16, 7), +(@OGUID+17, 7), +(@OGUID+18, 7), +(@OGUID+19, 7), +(@OGUID+20, 7), +(@OGUID+21, 7), +(@OGUID+22, 7), +(@OGUID+23, 7), +(@OGUID+24, 7), +(@OGUID+25, 7), +(@OGUID+26, 7), +(@OGUID+27, 7), +(@OGUID+28, 7), +(@OGUID+29, 7), +(@OGUID+30, 7), +(@OGUID+31, 7), +(@OGUID+32, 7), +(@OGUID+33, 7), +(@OGUID+34, 7), +(@OGUID+35, 7), +(@OGUID+36, 7), +(@OGUID+37, 7), +(@OGUID+38, 7), +(@OGUID+39, 7), +(@OGUID+40, 7), +(@OGUID+41, 7), +(@OGUID+42, 7), +(@OGUID+43, 7), +(@OGUID+44, 7), +(@OGUID+45, 7), +(@OGUID+46, 7), +(@OGUID+47, 7), +(@OGUID+48, 7), +(@OGUID+49, 7), +(@OGUID+50, 7), +(@OGUID+51, 7), +(@OGUID+52, 7), +(@OGUID+53, 7), +(@OGUID+54, 7), +(@OGUID+55, 7), +(@OGUID+56, 7), +(@OGUID+57, 7), +(@OGUID+58, 7), +(@OGUID+59, 7), +(@OGUID+60, 7), +(@OGUID+61, 7), +(@OGUID+62, 7), +(@OGUID+63, 7), +(@OGUID+64, 7), +(@OGUID+65, 7), +(@OGUID+66, 7), +(@OGUID+67, 7), +(@OGUID+68, 7), +(@OGUID+69, 7), +(@OGUID+70, 7), +(@OGUID+71, 7), +(@OGUID+72, 7), +(@OGUID+73, 7), +(@OGUID+74, 7), +(@OGUID+75, 7), +(@OGUID+76, 7), +(@OGUID+77, 7), +(@OGUID+78, 7), +(@OGUID+79, 7), +(@OGUID+80, 7), +(@OGUID+81, 7), +(@OGUID+82, 7), +(@OGUID+83, 7), +(@OGUID+84, 7), +(@OGUID+85, 7), +(@OGUID+86, 7); + + +-- End of migration. +END IF; +END?? +delimiter ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;