From 19601c0e028576b26fac6b19e718783bc4e81bd2 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Fri, 6 Aug 2021 11:50:49 +0200 Subject: [PATCH] fix(DB/Creature): add patrolling to Azurous (10202) (#7189) --- .../rev_1627741035221642000.sql | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1627741035221642000.sql diff --git a/data/sql/updates/pending_db_world/rev_1627741035221642000.sql b/data/sql/updates/pending_db_world/rev_1627741035221642000.sql new file mode 100644 index 000000000..9f36e654c --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1627741035221642000.sql @@ -0,0 +1,30 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1627741035221642000'); + +-- Set the Creature Azurous a patrol route movement +UPDATE `creature` SET `MovementType` = 2 WHERE (`id` = 10202) AND (`guid` = 51890); + +-- Changed his movement from 1.74 to 1 so he dont speedwalk. +UPDATE `creature_template` SET `speed_walk` = 1 WHERE (`entry` = 10202); + +-- Delete previous routes +DELETE FROM `creature_addon` WHERE (`guid` = 51890); + +-- Routes +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES +(51890, 518900, 0, 0, 0, 0, 0, NULL); + +-- Delete all waypoints routes +DELETE FROM `waypoint_data` WHERE (`id` = 518900); + +-- Waypoint route 1 (GUID: 51890) +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(518900,1,6448.333,-4494.53,734.90,0,0,0,0,100,0), +(518900,2,6437.67,-4434.99,727.15,0,0,0,0,100,0), +(518900,3,6385.43,-4397.43,733.18,0,0,0,0,100,0), +(518900,4,6352.442,-4414.85,746.33,0,0,0,0,100,0), +(518900,5,6352.72,-4433.61,754.56,0,0,0,0,100,0), +(518900,6,6390.195,-4489.12,753.99,0,0,0,0,100,0), +(518900,7,6394.71,-4519.01,748.153,0,0,0,0,100,0), +(518900,8,6431.722,-4518.271,737.40,0,0,0,0,100,0), +(518900,9,6487.26,-4542.47,717.283,0,0,0,0,100,0); +