From a0d9cd7ffe37ae4b1af8b97d335bdd2b6ce48926 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Wed, 1 Sep 2021 15:43:18 +0200 Subject: [PATCH] fix(DB/Creature): Lord Xiz (#7620) --- .../rev_1630228897555898489.sql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1630228897555898489.sql diff --git a/data/sql/updates/pending_db_world/rev_1630228897555898489.sql b/data/sql/updates/pending_db_world/rev_1630228897555898489.sql new file mode 100644 index 000000000..69764b503 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1630228897555898489.sql @@ -0,0 +1,24 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1630228897555898489'); + +-- Set the Creature Lord Xiz a patrol route movement +UPDATE `creature` SET `MovementType` = 2 WHERE (`id` = 17701) AND (`guid` = 63448); +UPDATE `creature_template` SET `MovementType` = 2 WHERE (`entry` = 17701); + +-- Delete previous routes +DELETE FROM `creature_addon` WHERE (`guid` = 63448); + +-- Routes +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES +(63448, 634480, 0, 0, 0, 0, 0, NULL); + +-- Delete all waypoints routes +DELETE FROM `waypoint_data` WHERE `id` = 634480; + +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +-- Waypoint route 1 (GUID: 63448) +(634480,1,-2255.01,-12318.75,57.29,0,0,0,0,100,0), +(634480,2,-2205.076,-12318.180,54.73,0,0,0,0,100,0), +(634480,3,-2182.07,-12321.914,55.31,0,0,0,0,100,0), +(634480,4,-2205.076,-12318.180,54.73,0,0,0,0,100,0), +(634480,5,-2255.01,-12318.75,57.29,0,0,0,0,100,0); +