Skip to content

Commit

Permalink
Correct waypoints for Huricanian. (vmangos#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daribon authored Jun 24, 2024
1 parent 9bc89fd commit 5d167ea
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions sql/migrations/20240620155345_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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`='20240620155345');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20240620155345');
-- Add your query below.


-- Pathing for Huricanian Entry: 14478
SET @NPC := 43125;
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=-6345.296,`position_y`=1774.6196,`position_z`=4.5550184 WHERE `guid`=@NPC;
DELETE FROM `creature_movement` WHERE `id`=@NPC;
INSERT INTO `creature_movement` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`waittime`,`wander_distance`,`script_id`) VALUES
(@NPC,1,-6345.296,1774.6196,4.5550184,100,0,0,0),
(@NPC,2,-6325.3813,1751.3876,1.8625244,100,0,0,0),
(@NPC,3,-6316.682,1718.2069,2.5542636,100,0,0,0),
(@NPC,4,-6304.6895,1690.9923,1.9438471,100,0,0,0),
(@NPC,5,-6279.7686,1689.2666,4.6524825,100,0,0,0),
(@NPC,6,-6274.7256,1643.7073,4.3596115,100,0,0,0),
(@NPC,7,-6275.5103,1612.6849,5.00104,100,0,0,0),
(@NPC,8,-6295.4634,1580.6515,0.49226487,100,0,0,0),
(@NPC,9,-6310.759,1549.3423,2.7265043,100,0,0,0),
(@NPC,10,-6332.532,1518.0614,1.5303156,100,0,0,0),
(@NPC,11,-6355.5312,1514.4183,4.6444654,100,0,0,0),
(@NPC,12,-6391.027,1513.2915,4.382957,100,0,0,0),
(@NPC,13,-6421.4976,1502.6038,5.5970297,100,0,0,0),
(@NPC,14,-6453.8496,1490.2762,6.7074456,100,0,0,0),
(@NPC,15,-6487.0234,1501.0323,5.4954395,100,0,0,0),
(@NPC,16,-6522.183,1504.034,2.6894567,100,0,0,0),
(@NPC,17,-6552.0337,1512.4528,3.9522433,100,0,0,0),
(@NPC,18,-6577.8975,1544.8099,-0.016361298,100,0,0,0),
(@NPC,19,-6579.297,1580.1136,3.1706502,100,0,0,0),
(@NPC,20,-6578.3584,1614.0538,8.790588,100,0,0,0),
(@NPC,21,-6598.862,1645.8755,5.9241867,100,0,0,0),
(@NPC,22,-6593.506,1689.1737,4.128006,100,0,0,0),
(@NPC,23,-6587.8228,1725.7534,3.8820236,100,0,0,0),
(@NPC,24,-6582.305,1748.8416,3.2985492,100,0,0,0),
(@NPC,25,-6554.3096,1776.0933,3.5581336,100,0,0,0),
(@NPC,26,-6518.56,1786.3973,8.61059,100,0,0,0),
(@NPC,27,-6513.037,1813.8506,3.9484806,100,0,0,0),
(@NPC,28,-6487.1646,1817.5917,3.2325697,100,0,0,0),
(@NPC,29,-6463.739,1787.981,8.050981,100,0,0,0),
(@NPC,30,-6442.454,1782.8776,10.865346,100,0,0,0),
(@NPC,31,-6413.579,1788.1747,4.5910115,100,0,0,0),
(@NPC,32,-6382.024,1780.8433,2.4358845,100,0,0,0);
-- 0x204CB000200E23800000A8000067E7DF .go xyz -6345.296 1774.6196 4.5550184


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

0 comments on commit 5d167ea

Please sign in to comment.