From ba3340e891ebf77ae9d7ef407a1554406f15cd14 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Fri, 3 Nov 2017 15:42:43 +0100 Subject: [PATCH] DB/Creature: Add pathing for northshire guards and fixed formation for stormwind royal guards near northshire Partial cp of https://github.com/TrinityCore/TrinityCore/commit/c8589f771c89d8ee946b0e4eb5e4a3f7f5c7c37a By Killyana --- .../world/4.3.4/2017_11_03_04_world.sql | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 sql/updates/world/4.3.4/2017_11_03_04_world.sql diff --git a/sql/updates/world/4.3.4/2017_11_03_04_world.sql b/sql/updates/world/4.3.4/2017_11_03_04_world.sql new file mode 100644 index 00000000000..557b085a5c0 --- /dev/null +++ b/sql/updates/world/4.3.4/2017_11_03_04_world.sql @@ -0,0 +1,98 @@ +UPDATE `creature_addon` SET `bytes2`=1, `mount`=29284 WHERE `guid` IN (280010); +DELETE FROM `creature_addon` WHERE `guid` IN (280023, 280024, 280025); +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES +(280023,0,29284,0,1,0,""), +(280024,0,29284,0,1,0,""), +(280025,0,29284,0,1,0,""); + +DELETE FROM `creature_formations` WHERE `leaderGUID`=280010; +INSERT INTO `creature_formations` (`leaderGUID`,`memberGUID`,`dist`,`angle`,`groupAI`,`point_1`,`point_2`) VALUES +(280010, 280010, 0, 0, 515, 0, 0), +(280010, 280023, 5, 90, 515, 0, 0), +(280010, 280024, 5, 360, 515, 0, 0), +(280010, 280025, 7, 45, 515, 0, 0); + +-- Pathing for Entry: 1642 'TDB FORMAT' +SET @NPC := 280026; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-9051.287,`position_y`=-86.44528,`position_z`=88.10067 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-9051.287,-86.44528,88.10067,0,0,0,0,100,0), +(@PATH,2,-9047.261,-96.01211,88.22417,0,0,0,0,100,0), +(@PATH,3,-9037.188,-101.4486,88.13179,0,0,0,0,100,0), +(@PATH,4,-9016.595,-93.06065,87.04225,0,0,0,0,100,0), +(@PATH,5,-9013.705,-90.6391,86.69225,0,0,0,0,100,0), +(@PATH,6,-9021.59,-96.39242,86.98774,0,0,0,0,100,0), +(@PATH,7,-9031.627,-100.3129,87.85693,0,0,0,0,100,0), +(@PATH,8,-9035.828,-101.8916,87.93728,0,0,0,0,100,0), +(@PATH,9,-9046.912,-96.52116,88.25846,0,0,0,0,100,0), +(@PATH,10,-9051.926,-86.24432,88.08818,0,0,0,0,100,0), +(@PATH,11,-9047.582,-67.47964,88.23709,0,0,0,0,100,0), +(@PATH,12,-9046.426,-51.01303,88.61902,0,0,0,0,100,0), +(@PATH,13,-9047.811,-66.24648,88.17001,0,0,0,0,100,0), +(@PATH,14,-9047.791,-66.20093,88.3699,0,0,0,0,100,0), +(@PATH,15,-9051.288,-86.4539,88.10061,0,0,0,0,100,0), +(@PATH,16,-9047.262,-96.00841,88.22412,0,0,0,0,100,0), +(@PATH,17,-9037.172,-101.4573,88.13132,0,0,0,0,100,0), +(@PATH,18,-9016.652,-93.07053,87.04451,0,0,0,0,100,0), +(@PATH,19,-9013.564,-90.72569,86.70216,0,0,0,0,100,0), +(@PATH,20,-9021.59,-96.39242,86.98774,0,0,0,0,100,0), +(@PATH,21,-9031.641,-100.3266,87.85727,0,0,0,0,100,0), +(@PATH,22,-9035.831,-101.893,87.93734,0,0,0,0,100,0), +(@PATH,23,-9047.584,-67.48804,88.23699,0,0,0,0,100,0), +(@PATH,24,-9046.429,-51.03921,88.61877,0,0,0,0,100,0), +(@PATH,25,-9047.811,-66.24648,88.17001,0,0,0,0,100,0), +(@PATH,26,-9047.789,-66.17477,88.37022,0,0,0,0,100,0), +(@PATH,27,-9051.287,-86.45163,88.10062,0,0,0,0,100,0), +(@PATH,28,-9047.262,-96.01085,88.22415,0,0,0,0,100,0), +(@PATH,29,-9037.188,-101.448,88.13183,0,0,0,0,100,0), +(@PATH,30,-9016.657,-93.07131,87.04469,0,0,0,0,100,0), +(@PATH,31,-9013.59,-90.74597,86.70449,0,0,0,0,100,0), +(@PATH,32,-9021.59,-96.39242,86.98774,0,0,0,0,100,0), +(@PATH,33,-9031.615,-100.3,87.85663,0,0,0,0,100,0), +(@PATH,34,-9035.891,-101.9166,87.93845,0,0,0,0,100,0), +(@PATH,35,-9046.97,-96.49335,88.26044,0,0,0,0,100,0), +(@PATH,36,-9051.951,-86.19553,88.08726,0,0,0,0,100,0), +(@PATH,37,-9047.548,-67.57985,88.23885,0,0,0,0,100,0); +-- 0x1C39AC0000019A8000002F00005AED8A .go -9051.287 -86.44528 88.10067 + +-- Pathing for Entry: 1642 'TDB FORMAT' +SET @NPC := 280011; +SET @PATH := @NPC * 10; +UPDATE `creature` SET `spawndist`=0,`MovementType`=2,`position_x`=-9020.053,`position_y`=3.060442,`position_z`=88.74442 WHERE `guid`=@NPC; +DELETE FROM `creature_addon` WHERE `guid`=@NPC; +INSERT INTO `creature_addon` (`guid`,`path_id`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES (@NPC,@PATH,0,0,1,0, ''); +DELETE FROM `waypoint_data` WHERE `id`=@PATH; +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(@PATH,1,-9020.053,3.060442,88.74442,0,0,0,0,100,0), +(@PATH,2,-9011.907,-14.6955,88.55376,0,0,0,0,100,0), +(@PATH,3,-9010.091,-43.59723,87.76579,0,0,0,0,100,0), +(@PATH,4,-9007.952,-67.3993,87.10921,0,0,0,0,100,0), +(@PATH,5,-9007.348,-70.33701,86.96077,0,0,0,0,100,0), +(@PATH,6,-9008.723,-63.47173,87.17122,0,0,0,0,100,0), +(@PATH,7,-9009.347,-39.19754,87.98459,0,0,0,0,100,0), +(@PATH,8,-9009.511,-31.43742,88.43657,0,0,0,0,100,0), +(@PATH,9,-9023.479,3.32865,88.58792,0,0,0,0,100,0), +(@PATH,10,-9024.754,4.297367,88.62678,0,0,0,0,100,0), +(@PATH,11,-9041.181,-21.45232,88.54501,0,0,0,0,100,0), +(@PATH,12,-9043.264,-34.89104,88.35751,0,0,0,0,100,0), +(@PATH,13,-9043.856,-30.38905,88.33578,0,0,0,0,100,0), +(@PATH,14,-9043.569,-30.13401,88.57721,0,0,0,0,100,0), +(@PATH,15,-9007.957,-67.47951,87.11135,0,0,0,0,100,0), +(@PATH,16,-9007.363,-70.47048,86.9617,0,0,0,0,100,0), +(@PATH,17,-9008.723,-63.47173,87.17122,0,0,0,0,100,0), +(@PATH,18,-9009.346,-39.20993,87.9843,0,0,0,0,100,0), +(@PATH,19,-9009.511,-31.43253,88.43684,0,0,0,0,100,0), +(@PATH,20,-9023.475,3.551373,88.58736,0,0,0,0,100,0), +(@PATH,21,-9024.744,4.290416,88.62727,0,0,0,0,100,0), +(@PATH,22,-9035.115,2.4027,88.56686,0,0,0,0,100,0), +(@PATH,23,-9039.956,-7.595201,88.55138,0,0,0,0,100,0), +(@PATH,24,-9041.176,-21.63602,88.54501,0,0,0,0,100,0), +(@PATH,25,-9043.266,-34.90955,88.35751,0,0,0,0,100,0), +(@PATH,26,-9043.856,-30.38905,88.33578,0,0,0,0,100,0), +(@PATH,27,-9043.57,-30.14145,88.57726,0,0,0,0,100,0), +(@PATH,28,-9040.069,-11.13287,88.36223,0,0,0,0,100,0); +-- 0x1C39AC0000019A8000002F0001DAED8A .go -9020.053 3.060442 88.74442