From 8f5100f358b65688a9b1ca8bbf3b3063b0cab552 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Fri, 30 Jul 2021 19:53:24 +0200 Subject: [PATCH] fix(DB/Creature): Added patrolling to Alshirr Banebreath (14340) (#7120) --- .../rev_1627247672807799200.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1627247672807799200.sql diff --git a/data/sql/updates/pending_db_world/rev_1627247672807799200.sql b/data/sql/updates/pending_db_world/rev_1627247672807799200.sql new file mode 100644 index 000000000..e6323f1e8 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1627247672807799200.sql @@ -0,0 +1,42 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1627247672807799200'); + +-- Set the Creature Alshirr Banebreath a patrol route movement +UPDATE `creature` SET `MovementType` = 2 WHERE (`id` = 14340) AND (`guid` = 51894); + +-- Changed his movement from 1.76 to 1 so he dont speedwalk. +UPDATE `creature_template` SET `speed_walk` = 1 WHERE (`entry` = 14340); + +-- Delete previous routes +DELETE FROM `creature_addon` WHERE (`guid` = 51894); + +-- Routes +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES +(51894, 518940, 0, 0, 0, 0, 0, NULL); + +-- Delete all waypoints routes +DELETE FROM `waypoint_data` WHERE `id` = 518940; + +-- Waypoint route 1 (GUID: 51894) +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(518940,1,3866.84,-672.53,328.888,0,0,0,0,100,0), +(518940,2,3866.84,-672.534,328.888,0,0,0,0,100,0), +(518940,3,3818.17,-768.04,314.71,0,0,0,0,100,0), +(518940,4,3881.397,-769.048,311.51,0,0,0,0,100,0), +(518940,5,3892.74,-762.76,312.98,0,0,0,0,100,0), +(518940,6,3863.57,-759.42,312.95,0,0,0,0,100,0), +(518940,7,3844.86,-719.223,324.47,0,0,0,0,100,0), +(518940,8,3856.46,-673-884,328.53,0,0,0,0,100,0), +(518940,9,3894.64,-635.31,336.71,0,0,0,0,100,0), +(518940,10,3932.94,-611.101,340.266,0,0,0,0,100,0), +(518940,11,3981.27,-598.98,338.19,0,0,0,0,100,0), +(518940,12,3932.94,-611.101,340.266,0,0,0,0,100,0), +(518940,13,3894.64,-635.31,336.71,0,0,0,0,100,0), +(518940,14,3856.46,-673-884,328.53,0,0,0,0,100,0), +(518940,15,3844.86,-719.223,324.47,0,0,0,0,100,0), +(518940,16,3863.57,-759.42,312.95,0,0,0,0,100,0), +(518940,17,3892.74,-762.76,312.98,0,0,0,0,100,0), +(518940,18,3881.397,-769.048,311.51,0,0,0,0,100,0), +(518940,19,3818.17,-768.04,314.71,0,0,0,0,100,0), +(518940,20,3866.84,-672.534,328.888,0,0,0,0,100,0), +(518940,21,3866.84,-672.53,328.888,0,0,0,0,100,0); +