From b8f6c2a14bb8e56166a88f0b5a04e04a741f1b62 Mon Sep 17 00:00:00 2001 From: Asthalor <87535580+Asthalor@users.noreply.github.com> Date: Wed, 4 Aug 2021 00:04:43 +0200 Subject: [PATCH] fix(DB/Creature): Added patrolling to Dart(14232) (#7132) --- .../rev_1627307634943513800.sql | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1627307634943513800.sql diff --git a/data/sql/updates/pending_db_world/rev_1627307634943513800.sql b/data/sql/updates/pending_db_world/rev_1627307634943513800.sql new file mode 100644 index 000000000..bbf02a00e --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1627307634943513800.sql @@ -0,0 +1,27 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1627307634943513800'); + +-- Updated movement of Dart to patrol +UPDATE `creature_template` SET `MovementType` = 2 WHERE (`entry` = 14232); +-- Changed his spawn time from 5 minutes to 5 hours +UPDATE `creature` SET `MovementType` = 2, `spawntimesecs` = 18000 WHERE (`id` = 14232) AND (`guid` = 200145); + +-- Delete previous routes +DELETE FROM `creature_addon` WHERE (`guid` = 200145); + +-- Add new route +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `isLarge`, `auras`) VALUES +(200145, 2001450, 0, 0, 0, 0, 0, NULL); + +-- Delete all waypoints routes +DELETE FROM `waypoint_data` WHERE `id` = 2001450; + +-- Waypoint route 1 (GUID: 200145) +INSERT INTO `waypoint_data` (`id`,`point`,`position_x`,`position_y`,`position_z`,`orientation`,`delay`,`move_type`,`action`,`action_chance`,`wpguid`) VALUES +(2001450,1,-2719.64,-3532.514,34.06,0,0,0,0,100,0), +(2001450,2,-2706.71,-3550.284,34.34,0,0,0,0,100,0), +(2001450,3,-2688.80,-3562.42,35.34,0,0,0,0,100,0), +(2001450,4,-2664.38,-3546.15,33.94,0,0,0,0,100,0), +(2001450,5,-2651.111,-3457.66,34.61,0,0,0,0,100,0), +(2001450,6,-2694.37,-3460.22,34.09,0,0,0,0,100,0), +(2001450,7,-2714.64,-3489.85,34.85,0,0,0,0,100,0); +