Skip to content

Commit

Permalink
Respawn Spire Spider Eggs. (#2849)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickTyrer authored Dec 13, 2024
1 parent 1cb0126 commit 6442742
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions sql/migrations/20241213073447_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
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`='20241213073447');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20241213073447');
-- Add your query below.


-- Rspawn Spire Spider Egg (175606)
SET @OGUID = 74000;
DELETE FROM `gameobject` WHERE `id` = 175606;
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, 175606, 229, -154.889, -570.339, 10.0172, 2.47837, 0, 0, 0.945518, 0.325568, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+2, 175606, 229, -154.77, -541.317, 9.02217, 6.17847, 0, 0, -0.0523357, 0.99863, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+3, 175606, 229, -154.592, -525.219, 8.16182, 2.04204, 0, 0, 0.85264, 0.522499, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+4, 175606, 229, -154.378, -552.234, 9.91885, 4.2237, 0, 0, -0.857167, 0.515038, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+5, 175606, 229, -154.15, -576.464, 11.8097, 0.314158, 0, 0, 0.156434, 0.987688, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+6, 175606, 229, -153.788, -515.227, -15.9504, 5.32326, 0, 0, -0.461748, 0.887011, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+7, 175606, 229, -151.329, -472.323, 14.0097, 2.09439, 0, 0, 0.866025, 0.500001, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+8, 175606, 229, -150.541, -525.868, 7.43845, 3.85718, 0, 0, -0.936671, 0.35021, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+9, 175606, 229, -150.525, -484.228, 11.3473, 4.45059, 0, 0, -0.793353, 0.608762, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+10, 175606, 229, -150.104, -470.008, 16.2278, 1.76278, 0, 0, 0.771625, 0.636078, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+11, 175606, 229, -149.205, -458.286, 16.8712, 3.4034, 0, 0, -0.991445, 0.130528, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+12, 175606, 229, -147.881, -448.549, 20.0911, 1.32645, 0, 0, 0.615661, 0.788011, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+13, 175606, 229, -146.907, -441.463, 22.4744, 5.48033, 0, 0, -0.390731, 0.920505, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+14, 175606, 229, -144.505, -441.603, 23.1016, 0.331611, 0, 0, 0.165047, 0.986286, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+15, 175606, 229, -139.523, -525.879, 6.36398, 3.85718, 0, 0, -0.936671, 0.35021, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+16, 175606, 229, -139.153, -434.738, 23.1123, 3.54302, 0, 0, -0.979924, 0.19937, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+17, 175606, 229, -138.894, -439.497, 24.8088, 1.76278, 0, 0, 0.771625, 0.636078, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+18, 175606, 229, -138.669, -555.321, 14.5388, 1.6057, 0, 0, 0.719339, 0.694659, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+19, 175606, 229, -132.404, -514.961, -15.9374, 4.4855, 0, 0, -0.782608, 0.622515, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+20, 175606, 229, -132.261, -474.848, 9.82244, 3.45576, 0, 0, -0.987688, 0.156436, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+21, 175606, 229, -131.805, -526.784, 6.55651, 3.99681, 0, 0, -0.909961, 0.414694, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+22, 175606, 229, -131.633, -460.694, 17.0553, 3.17653, 0, 0, -0.999847, 0.0174693, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+23, 175606, 229, -131.57, -439.602, 22.8934, 5.14872, 0, 0, -0.537299, 0.843392, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+24, 175606, 229, -130.184, -420.555, 28.1423, 2.21657, 0, 0, 0.894934, 0.446199, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+25, 175606, 229, -129.514, -441.7, 24.4328, 0.977383, 0, 0, 0.469471, 0.882948, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+26, 175606, 229, -128.213, -399.329, 30.4635, 0.59341, 0, 0, 0.292371, 0.956305, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+27, 175606, 229, -126.746, -514.164, -12.147, 3.10665, 0, 0, 0.999847, 0.0174693, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+28, 175606, 229, -125.794, -490.418, 11.9901, 5.61996, 0, 0, -0.325567, 0.945519, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+29, 175606, 229, -125.354, -491.7, 11.9901, 3.54302, 0, 0, -0.979924, 0.19937, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+30, 175606, 229, -125.229, -576.664, 13.7726, 5.98648, 0, 0, -0.147809, 0.989016, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+31, 175606, 229, -124.179, -576.163, 13.9393, 4.08407, 0, 0, -0.891006, 0.453991, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+32, 175606, 229, -123.203, -576.224, 14.1865, 1.37881, 0, 0, 0.636078, 0.771625, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+33, 175606, 229, -121.45, -519.638, -10.1789, 4.20625, 0, 0, -0.861629, 0.507539, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+34, 175606, 229, -120.866, -523.033, 11.1616, 3.38594, 0, 0, -0.992546, 0.12187, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+35, 175606, 229, -112.21, -569.506, 10.1992, 2.18166, 0, 0, 0.887011, 0.461749, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+36, 175606, 229, -102.465, -575.651, 9.90089, 2.47837, 0, 0, 0.945518, 0.325568, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+37, 175606, 229, -101.886, -521.985, -7.84199, 6.24828, 0, 0, -0.0174522, 0.999848, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+38, 175606, 229, -100.325, -523.847, 10.7029, 2.11185, 0, 0, 0.870356, 0.492424, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+39, 175606, 229, -100.23, -529.537, -5.77381, 5.84685, 0, 0, -0.216439, 0.976296, 180, 180, 100, 1, 0, 0, 0, 10),
(@OGUID+40, 175606, 229, -99.9989, -517.764, 10.6956, 5.68977, 0, 0, -0.292372, 0.956305, 180, 180, 100, 1, 0, 0, 0, 10);
UPDATE `gameobject` SET `spawntimesecsmin` = 604800, `spawntimesecsmax` = 604800 WHERE `id` = 175606;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;

0 comments on commit 6442742

Please sign in to comment.