-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct Stonetalon Grunt waypoints. (#2253)
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
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`='20231024231735'); | ||
IF v=0 THEN | ||
INSERT INTO `migrations` VALUES ('20231024231735'); | ||
-- Add your query below. | ||
|
||
|
||
-- Pathing for Stonetalon Grunt Entry: 7730 | ||
SET @NPC := 29225; | ||
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=918.57745,`position_y`=1063.6381,`position_z`=105.48613 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,918.57745,1063.6381,105.48613,100,0,0,0), | ||
(@NPC,2,924.49524,1057.6725,105.318115,100,0,0,0), | ||
(@NPC,3,926.7589,1040.2358,105.65347,100,0,0,0), | ||
(@NPC,4,923.363,1022.2447,102.83465,100,0,0,0), | ||
(@NPC,5,926.2235,1006.6331,105.61268,100,0,0,0), | ||
(@NPC,6,928.36914,994.52716,102.83914,100,0,0,0), | ||
(@NPC,7,932.93317,982.3051,102.64874,100,0,0,0), | ||
(@NPC,8,940.7857,969.80927,103.11479,100,0,0,0), | ||
(@NPC,9,940.15625,961.43146,103.29346,100,0,0,0), | ||
(@NPC,10,935.6819,945.2628,103.284996,100,0,0,0), | ||
(@NPC,11,935.22266,934.243,104.140854,100,0,0,0), | ||
(@NPC,12,933.8903,921.1858,103.841606,100,0,0,0), | ||
(@NPC,13,936.9965,911.3036,104.413994,100,0,0,0), | ||
(@NPC,14,931.44293,903.93634,104.42827,100,0,0,0), | ||
(@NPC,15,923.4308,906.7333,105.03448,100,0,0,0), | ||
(@NPC,16,931.44293,903.93634,104.42827,100,0,0,0), | ||
(@NPC,17,936.9965,911.3036,104.413994,100,0,0,0), | ||
(@NPC,18,933.8903,921.1858,103.841606,100,0,0,0), | ||
(@NPC,19,935.22266,934.243,104.140854,100,0,0,0), | ||
(@NPC,20,935.6846,945.2324,103.30251,100,0,0,0), | ||
(@NPC,21,940.15625,961.43146,103.29346,100,0,0,0), | ||
(@NPC,22,940.7857,969.80927,103.11479,100,0,0,0), | ||
(@NPC,23,932.93317,982.3051,102.64874,100,0,0,0), | ||
(@NPC,24,928.36914,994.52716,102.83914,100,0,0,0), | ||
(@NPC,25,926.2235,1006.6331,105.61268,100,0,0,0), | ||
(@NPC,26,923.363,1022.2447,102.83465,100,0,0,0), | ||
(@NPC,27,926.7589,1040.2358,105.65347,100,0,0,0), | ||
(@NPC,28,924.49524,1057.6725,105.318115,100,0,0,0); | ||
-- 0x204CB00020078C8000007800009C65EE .go xyz 918.57745 1063.6381 105.48613 | ||
|
||
-- Pathing for Stonetalon Grunt Entry: 7730 | ||
SET @NPC := 29231; | ||
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=930.31036,`position_y`=822.6024,`position_z`=105.069115 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,930.31036,822.6024,105.069115,100,0,0,0), | ||
(@NPC,2,930.3479,844.14966,105.52287,100,0,0,0), | ||
(@NPC,3,929.8289,864.2955,105.3141,100,0,0,0), | ||
(@NPC,4,935.5893,882.4848,104.43348,100,0,0,0), | ||
(@NPC,5,933.9421,896.86426,104.3853,100,0,0,0), | ||
(@NPC,6,937.62823,911.3337,104.40768,100,0,0,0), | ||
(@NPC,7,948.3455,914.2003,104.78436,100,0,0,0), | ||
(@NPC,8,961.7512,920.89966,104.610146,100,0,0,0), | ||
(@NPC,9,967.3431,941.7137,104.65217,100,0,0,0), | ||
(@NPC,10,976.31165,959.5086,104.483734,100,0,0,0), | ||
(@NPC,11,981.21027,970.241,104.51577,100,0,0,0), | ||
(@NPC,12,976.31165,959.5086,104.483734,100,0,0,0), | ||
(@NPC,13,967.3431,941.7137,104.65217,100,0,0,0), | ||
(@NPC,14,961.7512,920.89966,104.610146,100,0,0,0), | ||
(@NPC,15,948.3455,914.2003,104.78436,100,0,0,0), | ||
(@NPC,16,937.62823,911.3337,104.40768,100,0,0,0), | ||
(@NPC,17,933.9421,896.86426,104.3853,100,0,0,0), | ||
(@NPC,18,935.5893,882.4848,104.43348,100,0,0,0), | ||
(@NPC,19,929.8289,864.2955,105.3141,100,0,0,0), | ||
(@NPC,20,930.3479,844.14966,105.52287,100,0,0,0); | ||
-- 0x204CB00020078C8000007800029C65F0 .go xyz 930.31036 822.6024 105.069115 | ||
|
||
|
||
-- End of migration. | ||
END IF; | ||
END?? | ||
delimiter ; | ||
CALL add_migration(); | ||
DROP PROCEDURE IF EXISTS add_migration; |