From d891259f5379be3b10fee44630a8b422c4a8122e Mon Sep 17 00:00:00 2001 From: acidmanifesto Date: Mon, 21 Feb 2022 19:22:55 -0500 Subject: [PATCH] fix (db): Smolderthorn Berserker not attacking (#10785) * fix (db): Smolderthorn Berserker not attacking Smolderthorn Berserker guid 43101 was not attacking due to it being assigned some weird funky smart script instead of just giving it normal pathing waypoints. * gooder formatting --- .../rev_1645476483912365838.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1645476483912365838.sql diff --git a/data/sql/updates/pending_db_world/rev_1645476483912365838.sql b/data/sql/updates/pending_db_world/rev_1645476483912365838.sql new file mode 100644 index 000000000..0f0ad254e --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1645476483912365838.sql @@ -0,0 +1,23 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1645476483912365838'); + +-- Smolderthorn Berserker guid 43101 +-- adjust npc to use waypoints +UPDATE `creature` SET `MovementType`='2' WHERE `guid`=43101; + +-- link guid to waypoint +DELETE FROM `creature_addon` WHERE `guid`=43101; +INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES +(43101, 926800, 0, 0, 0, 0, 3, NULL); + +-- waypoints are transferred to waypoint_data +DELETE FROM `waypoint_data` WHERE `id`=926800; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES +(926800, 0, -53.6383, -442.827, 78.2854, 0, 0, 0, 0, 100, 0), +(926800, 1, -53.2897, -405.473, 77.7616, 0, 0, 0, 0, 100, 0), +(926800, 2, -52.7996, -389.966, 77.7702, 0, 0, 0, 0, 100, 0); + +-- delete troublesome smart scripts +DELETE FROM `smart_scripts` WHERE `entryorguid`=-43101; + +-- delete exsisting waypoints +DELETE FROM `waypoints` WHERE `entry`=926800;