-
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 Auberdine Sentinel waypoints. (#2248)
- Loading branch information
Showing
1 changed file
with
190 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,190 @@ | ||
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`='20231024003010'); | ||
IF v=0 THEN | ||
INSERT INTO `migrations` VALUES ('20231024003010'); | ||
-- Add your query below. | ||
|
||
|
||
-- Delete duplicate Auberdine Sentinel Guid: 38993 | ||
DELETE FROM `creature` WHERE `guid`=38993; | ||
DELETE FROM `creature_movement` WHERE `id`=38993; | ||
|
||
-- Pathing for Auberdine Sentinel Entry: 6086 | ||
SET @NPC := 38992; | ||
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=6370.97,`position_y`=357.7523,`position_z`=21.32085 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,6370.97,357.7523,21.32085,100,0,0,0), | ||
(@NPC,2,6379.86,358.31467,20.204288,100,0,0,0), | ||
(@NPC,3,6390.5425,358.17667,18.779434,100,0,0,0), | ||
(@NPC,4,6395.5073,361.53452,17.852531,100,0,0,0), | ||
(@NPC,5,6399.4375,364.0235,17.201603,100,0,0,0), | ||
(@NPC,6,6404.511,371.2272,15.529269,100,0,0,0), | ||
(@NPC,7,6406.2056,374.54605,15.05849,100,0,0,0), | ||
(@NPC,8,6409.579,382.6261,13.62527,100,0,0,0), | ||
(@NPC,9,6413.611,389.123,12.646601,100,0,0,0), | ||
(@NPC,10,6422.258,399.4292,11.146321,100,0,0,0), | ||
(@NPC,11,6430.588,405.14166,10.980362,100,0,0,0), | ||
(@NPC,12,6441.7075,410.7721,10.8836775,100,0,0,0), | ||
(@NPC,13,6453.1846,410.46692,11.043987,100,0,0,0), | ||
(@NPC,14,6458.066,411.1137,10.933033,100,0,0,0), | ||
(@NPC,15,6464.9736,413.08545,11.082148,100,0,0,0), | ||
(@NPC,16,6472.5884,417.08398,10.663545,100,0,0,0), | ||
(@NPC,17,6477.39,420.12906,10.570096,100,0,0,0), | ||
(@NPC,18,6484.006,423.77005,11.501895,100,0,0,0), | ||
(@NPC,19,6494.374,429.44107,6.650973,100,0,0,0), | ||
(@NPC,20,6501.9897,434.0671,6.2910223,100,0,0,0), | ||
(@NPC,21,6505.645,443.9272,5.9810715,100,0,0,0), | ||
(@NPC,22,6503.608,456.58176,5.9366984,100,0,0,0), | ||
(@NPC,23,6500.407,466.87598,6.244925,100,0,0,0), | ||
(@NPC,24,6497.54,478.1485,6.073428,100,0,0,0), | ||
(@NPC,25,6487.3174,480.21838,6.399365,100,0,0,0), | ||
(@NPC,26,6477.44,479.59924,7.145113,100,0,0,0), | ||
(@NPC,27,6463.5923,480.62082,10.266797,100,0,0,0), | ||
(@NPC,28,6457.982,480.54736,9.501382,100,0,0,0), | ||
(@NPC,29,6452.7866,480.7809,8.172089,100,0,0,0), | ||
(@NPC,30,6445.294,482.2431,8.03171,100,0,0,0), | ||
(@NPC,31,6438.2065,481.4414,7.5345078,100,0,0,0), | ||
(@NPC,32,6435.249,477.64203,7.2355566,100,0,0,0), | ||
(@NPC,33,6432.538,466.23166,7.6902094,100,0,0,0), | ||
(@NPC,34,6432.4907,458.44525,7.8765936,100,0,0,0), | ||
(@NPC,35,6432.065,449.98303,8.209666,100,0,0,0), | ||
(@NPC,36,6434.6587,441.89786,10.850488,100,0,0,0), | ||
(@NPC,37,6437.5635,432.1977,11.934133,100,0,0,0), | ||
(@NPC,38,6439.273,422.3527,11.297636,100,0,0,0), | ||
(@NPC,39,6439.0845,414.146,10.948944,100,0,0,0), | ||
(@NPC,40,6435.042,410.01535,10.928198,100,0,0,0), | ||
(@NPC,41,6427.926,404.55008,10.982686,100,0,0,0), | ||
(@NPC,42,6421.0044,398.08713,11.27943,100,0,0,0), | ||
(@NPC,43,6413.016,388.00314,12.763433,100,0,0,0), | ||
(@NPC,44,6407.297,376.47607,14.71068,100,0,0,0), | ||
(@NPC,45,6404.8164,372.33942,15.373289,100,0,0,0), | ||
(@NPC,46,6401.2847,367.14035,16.615904,100,0,0,0), | ||
(@NPC,47,6395.221,361.58035,17.881895,100,0,0,0), | ||
(@NPC,48,6385.6787,359.696,19.186064,100,0,0,0); | ||
-- 0x204CB0002005F18000007300001C65F2 .go xyz 6370.97 357.7523 21.32085 | ||
|
||
-- Pathing for Auberdine Sentinel Entry: 6086 | ||
SET @NPC := 38996; | ||
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=6452.4053,`position_y`=409.54263,`position_z`=11.084499 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,6452.4053,409.54263,11.084499,100,0,0,0), | ||
(@NPC,2,6445.1616,409.475,10.958604,100,0,0,0), | ||
(@NPC,3,6441.638,414.12048,11.00724,100,0,0,0), | ||
(@NPC,4,6438.8623,422.09805,11.297828,100,0,0,0), | ||
(@NPC,5,6437.651,430.35498,11.427738,100,0,0,0), | ||
(@NPC,6,6435.5474,438.34018,12.366342,100,0,0,0), | ||
(@NPC,7,6434.132,444.10727,9.474491,100,0,0,0), | ||
(@NPC,8,6431.816,451.74084,8.152277,100,0,0,0), | ||
(@NPC,9,6432.145,459.20236,7.8595867,100,0,0,0), | ||
(@NPC,10,6432.5566,464.65393,7.7328715,100,0,0,0), | ||
(@NPC,11,6433.5103,470.6288,7.279891,100,0,0,0), | ||
(@NPC,12,6434.1787,477.01535,7.106474,100,0,0,0), | ||
(@NPC,13,6435.1504,483.93646,7.1083884,100,0,0,0), | ||
(@NPC,14,6436.1064,491.05655,7.238331,100,0,0,0), | ||
(@NPC,15,6440.4688,496.99603,7.3978796,100,0,0,0), | ||
(@NPC,16,6446.2695,503.9539,7.0625467,100,0,0,0), | ||
(@NPC,17,6448.636,508.71442,7.160055,100,0,0,0), | ||
(@NPC,18,6444.846,511.33203,7.197237,100,0,0,0), | ||
(@NPC,19,6436.05,514.73065,8.508163,100,0,0,0), | ||
(@NPC,20,6421.5435,519.08826,8.810343,100,0,0,0), | ||
(@NPC,21,6396.7153,527.7264,8.825086,100,0,0,0), | ||
(@NPC,22,6385.694,530.0828,8.716717,100,0,0,0), | ||
(@NPC,23,6380.165,533.5661,8.230995,100,0,0,0), | ||
(@NPC,24,6375.4,535.3117,8.352715,100,0,0,0), | ||
(@NPC,25,6372.3906,535.59125,8.5448675,100,0,0,0), | ||
(@NPC,26,6370.441,530.62463,9.028212,100,0,0,0), | ||
(@NPC,27,6370.2056,524.24286,9.418837,100,0,0,0), | ||
(@NPC,28,6371.2925,519.69147,9.621962,100,0,0,0), | ||
(@NPC,29,6375.5205,514.0625,8.70687,100,0,0,0), | ||
(@NPC,30,6381.2417,508.82275,8.432012,100,0,0,0), | ||
(@NPC,31,6388.085,504.14627,7.7457647,100,0,0,0), | ||
(@NPC,32,6392.6875,500.62848,7.475828,100,0,0,0), | ||
(@NPC,33,6399.2773,498.26367,7.491496,100,0,0,0), | ||
(@NPC,34,6406.545,497.0062,7.7659826,100,0,0,0), | ||
(@NPC,35,6412.9946,495.3047,7.804269,100,0,0,0), | ||
(@NPC,36,6424.7686,490.71478,7.7268543,100,0,0,0), | ||
(@NPC,37,6437.299,487.23633,7.1626787,100,0,0,0), | ||
(@NPC,38,6445.472,486.2322,7.976465,100,0,0,0), | ||
(@NPC,39,6455.283,483.55838,8.657665,100,0,0,0), | ||
(@NPC,40,6464.498,483.86224,10.330338,100,0,0,0), | ||
(@NPC,41,6480.1284,481.57687,6.727401,100,0,0,0), | ||
(@NPC,42,6494.321,480.32016,6.0262265,100,0,0,0), | ||
(@NPC,43,6499.9795,473.5,6.225542,100,0,0,0), | ||
(@NPC,44,6502.1455,465.00336,6.1481094,100,0,0,0), | ||
(@NPC,45,6502.9287,457.2761,6.0077834,100,0,0,0), | ||
(@NPC,46,6503.893,450.01068,5.8769474,100,0,0,0), | ||
(@NPC,47,6504.6704,445.11026,5.8989105,100,0,0,0), | ||
(@NPC,48,6503.0894,438.45795,6.328868,100,0,0,0), | ||
(@NPC,49,6499.4326,431.2034,6.4994965,100,0,0,0), | ||
(@NPC,50,6493.326,428.60324,6.9104376,100,0,0,0), | ||
(@NPC,51,6484.817,424.02078,11.167041,100,0,0,0), | ||
(@NPC,52,6478.639,420.07413,10.813484,100,0,0,0), | ||
(@NPC,53,6473.6914,417.16043,10.469109,100,0,0,0), | ||
(@NPC,54,6469.389,414.68692,10.89707,100,0,0,0), | ||
(@NPC,55,6461.9956,411.63968,11.064846,100,0,0,0); | ||
-- 0x204CB0002005F18000007300009C65F1 .go xyz 6452.4053 409.54263 11.084499 | ||
|
||
-- Pathing for Auberdine Sentinel Entry: 6086 | ||
SET @NPC := 38997; | ||
UPDATE `creature` SET `wander_distance`=0,`movement_type`=2,`position_x`=6532.733,`position_y`=894.6737,`position_z`=6.674153 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,6532.733,894.6737,6.674153,100,0,0,0), | ||
(@NPC,2,6524.1553,868.82715,6.43564,100,0,0,0), | ||
(@NPC,3,6512.5938,845.8619,7.694217,100,0,0,0), | ||
(@NPC,4,6509.552,825.90753,6.8173513,100,0,0,0), | ||
(@NPC,5,6501.6597,800.2203,8.015973,100,0,0,0), | ||
(@NPC,6,6517.019,787.3334,6.3343534,100,0,0,0), | ||
(@NPC,7,6548.3804,776.90393,6.6387,100,0,0,0), | ||
(@NPC,8,6566.5493,773.31946,6.155142,100,0,0,0), | ||
(@NPC,9,6531.7285,783.4608,7.419198,100,0,0,0), | ||
(@NPC,10,6500.628,794.2159,7.977165,100,0,0,0), | ||
(@NPC,11,6474.542,801.2359,6.2183537,100,0,0,0), | ||
(@NPC,12,6445.473,811.46765,6.6381783,100,0,0,0), | ||
(@NPC,13,6434.2026,814.83453,5.801962,100,0,0,0), | ||
(@NPC,14,6463.2607,805.6153,6.977165,100,0,0,0), | ||
(@NPC,15,6493.0884,796.90607,8.045996,100,0,0,0), | ||
(@NPC,16,6498.7207,789.40497,8.150688,100,0,0,0), | ||
(@NPC,17,6492.7627,770.2416,8.395404,100,0,0,0), | ||
(@NPC,18,6482.8335,741.49603,8.18029,100,0,0,0), | ||
(@NPC,19,6469.376,713.80804,9.4758625,100,0,0,0), | ||
(@NPC,20,6463.172,684.7984,8.879026,100,0,0,0), | ||
(@NPC,21,6458.2173,670.1253,9.36779,100,0,0,0), | ||
(@NPC,22,6445.116,633.23517,9.253143,100,0,0,0), | ||
(@NPC,23,6432.2383,593.0826,9.341423,100,0,0,0), | ||
(@NPC,24,6445.116,633.23517,9.253143,100,0,0,0), | ||
(@NPC,25,6458.2173,670.1253,9.36779,100,0,0,0), | ||
(@NPC,26,6463.1543,684.7462,8.918137,100,0,0,0), | ||
(@NPC,27,6469.3643,713.75415,9.41106,100,0,0,0), | ||
(@NPC,28,6482.8335,741.49603,8.18029,100,0,0,0), | ||
(@NPC,29,6492.7363,770.1561,8.36779,100,0,0,0), | ||
(@NPC,30,6498.7207,789.40497,8.150688,100,0,0,0), | ||
(@NPC,31,6493.0884,796.90607,8.045996,100,0,0,0), | ||
(@NPC,32,6463.391,805.5739,6.984513,100,0,0,0), | ||
(@NPC,33,6434.2026,814.83453,5.801962,100,0,0,0), | ||
(@NPC,34,6445.473,811.46765,6.6381783,100,0,0,0), | ||
(@NPC,35,6474.542,801.2359,6.2183537,100,0,0,0), | ||
(@NPC,36,6500.628,794.2159,7.977165,100,0,0,0), | ||
(@NPC,37,6531.7285,783.4608,7.419198,100,0,0,0), | ||
(@NPC,38,6566.5493,773.31946,6.155142,100,0,0,0), | ||
(@NPC,39,6548.3804,776.90393,6.6387,100,0,0,0), | ||
(@NPC,40,6517.019,787.3334,6.3343534,100,0,0,0), | ||
(@NPC,41,6501.6597,800.2203,8.015973,100,0,0,0), | ||
(@NPC,42,6509.552,825.90753,6.8173513,100,0,0,0), | ||
(@NPC,43,6512.5938,845.8619,7.694217,100,0,0,0), | ||
(@NPC,44,6524.1553,868.82715,6.43564,100,0,0,0); | ||
-- 0x204CB0002005F18000007300029C65F1 .go xyz 6532.733 894.6737 6.674153 | ||
|
||
|
||
-- End of migration. | ||
END IF; | ||
END?? | ||
delimiter ; | ||
CALL add_migration(); | ||
DROP PROCEDURE IF EXISTS add_migration; |