From 4f0b6da633c484f5da0ece136f6236796e877b77 Mon Sep 17 00:00:00 2001 From: ZhengPeiRu21 <98835050+ZhengPeiRu21@users.noreply.github.com> Date: Sun, 6 Mar 2022 10:40:46 -0700 Subject: [PATCH] fix(DB/Pathing): Add missing pathing and fix position for Booty Bay Bruiser (#10855) --- .../rev_1646083844689714100.sql | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1646083844689714100.sql diff --git a/data/sql/updates/pending_db_world/rev_1646083844689714100.sql b/data/sql/updates/pending_db_world/rev_1646083844689714100.sql new file mode 100644 index 000000000..fc4fb02b2 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1646083844689714100.sql @@ -0,0 +1,40 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1646083844689714100'); + +SET @NPC := 591; +SET @PATH := @NPC * 10; + +UPDATE `creature` SET `position_x` = -14449.2, `position_y` = 451.524, `position_z` = 20.5557, `orientation` = 5.00151 WHERE `guid` = @NPC; + +UPDATE `creature_addon` SET `path_id` = @PATH WHERE `guid` = @NPC; +UPDATE `creature` SET `MovementType` = 2 WHERE `guid` = @NPC; + +DELETE FROM `waypoint_data` WHERE `id` = @PATH; +INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`) VALUES +(@PATH, 1, -14444.9, 445.531, 20.4134, 100, 0), +(@PATH, 2, -14441.3, 438.778, 20.4903, 100, 0), +(@PATH, 3, -14440.8, 432.276, 20.3793, 100, 0), +(@PATH, 4, -14435.4, 430.078, 20.2879, 100, 0), +(@PATH, 5, -14433.8, 427.503, 20.2863, 100, 0), +(@PATH, 6, -14440.7, 422.971, 15.5599, 100, 0), +(@PATH, 7, -14442.9, 426.732, 15.5587, 100, 0), +(@PATH, 8, -14438.8, 432.066, 15.5848, 100, 0), +(@PATH, 9, -14434.1, 432.398, 15.5545, 100, 0), +(@PATH, 10, -14431.3, 428.801, 15.5621, 100, 0), +(@PATH, 11, -14439.6, 423.793, 9.06026, 100, 0), +(@PATH, 12, -14441.4, 425.5, 9.06026, 100, 0), +(@PATH, 13, -14443.9, 430.25, 4.18761, 100, 0), +(@PATH, 14, -14438.3, 434.884, 4.19606, 100, 0), +(@PATH, 15, -14439.3, 437.73, 4.19911, 100, 0), +(@PATH, 16, -14444.7, 430.757, 4.18845, 100, 0), +(@PATH, 17, -14441.4, 425.5, 9.06026, 100, 0), +(@PATH, 18, -14431.3, 428.801, 15.5621, 100, 0), +(@PATH, 19, -14434.1, 432.398, 15.5545, 100, 0), +(@PATH, 20, -14438.8, 432.066, 15.5848, 100, 0), +(@PATH, 21, -14442.9, 426.732, 15.5587, 100, 0), +(@PATH, 22, -14440.7, 422.971, 15.5599, 100, 0), +(@PATH, 23, -14433.8, 427.503, 20.2863, 100, 0), +(@PATH, 24, -14435.4, 430.078, 20.2879, 100, 0), +(@PATH, 25, -14440.6, 432.196, 20.3668, 100, 0), +(@PATH, 26, -14441.3, 438.778, 20.4903, 100, 0), +(@PATH, 27, -14444.9, 445.531, 20.4134, 100, 0), +(@PATH, 28, -14449.4, 451.391, 20.4759, 100, 0);