From 8f3fa394c52785d51c92bcc845b500b47132305a Mon Sep 17 00:00:00 2001 From: FlagFlayer <76889547+FlagFlayer@users.noreply.github.com> Date: Fri, 7 Mar 2025 23:18:19 +0200 Subject: [PATCH 1/4] Create 20250307204042_world.sql --- sql/migrations/20250307204042_world.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sql/migrations/20250307204042_world.sql diff --git a/sql/migrations/20250307204042_world.sql b/sql/migrations/20250307204042_world.sql new file mode 100644 index 00000000000..5c25e790a20 --- /dev/null +++ b/sql/migrations/20250307204042_world.sql @@ -0,0 +1,22 @@ +DROP PROCEDURE IF EXISTS add_migration; +DELIMITER ?? +CREATE PROCEDURE `add_migration`() +BEGIN +DECLARE v INT DEFAULT 1; +SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250307204042'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20250307204042'); +-- Add your query below. + +-- Update spawnpoints (credit cmangos) +UPDATE `creature` SET `position_x` = -4181.31005859375, `position_y` = -2184.330078125, `position_z` = 50.26649856567383, `orientation` = 0.2923249900341034 WHERE `guid` = 13984 AND `id` = 3392; +UPDATE `creature` SET `position_x` = -4134.08984375, `position_y` = -2190.56005859375, `position_z` = 50.93259811401367, `orientation` = 5.971350193023682 WHERE `guid` = 14326 AND `id` = 3392; +UPDATE `creature` SET `position_x` = -4208.52001953125, `position_y` = -2274.22998046875, `position_z` = 50.26689910888672, `orientation` = 3.9258201122283936 WHERE `guid` = 14325 AND `id` = 3392; +UPDATE `creature` SET `position_x` = -4176.35009765625, `position_y` = -2235.199951171875, `position_z` = 51.03120040893555, `orientation` = 5.194900035858154 WHERE `guid` = 14324 AND `id` = 3392; + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration; \ No newline at end of file From 1eed507fe1cea375ee8b07524ece6cfa30b3c837 Mon Sep 17 00:00:00 2001 From: FlagFlayer <76889547+FlagFlayer@users.noreply.github.com> Date: Sat, 8 Mar 2025 00:48:29 +0200 Subject: [PATCH 2/4] Update 20250307204042_world.sql --- sql/migrations/20250307204042_world.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/migrations/20250307204042_world.sql b/sql/migrations/20250307204042_world.sql index 5c25e790a20..3a391b3819f 100644 --- a/sql/migrations/20250307204042_world.sql +++ b/sql/migrations/20250307204042_world.sql @@ -8,7 +8,7 @@ IF v = 0 THEN INSERT INTO `migrations` VALUES ('20250307204042'); -- Add your query below. --- Update spawnpoints (credit cmangos) +-- Prospector Khazgorm (credit cmangos) UPDATE `creature` SET `position_x` = -4181.31005859375, `position_y` = -2184.330078125, `position_z` = 50.26649856567383, `orientation` = 0.2923249900341034 WHERE `guid` = 13984 AND `id` = 3392; UPDATE `creature` SET `position_x` = -4134.08984375, `position_y` = -2190.56005859375, `position_z` = 50.93259811401367, `orientation` = 5.971350193023682 WHERE `guid` = 14326 AND `id` = 3392; UPDATE `creature` SET `position_x` = -4208.52001953125, `position_y` = -2274.22998046875, `position_z` = 50.26689910888672, `orientation` = 3.9258201122283936 WHERE `guid` = 14325 AND `id` = 3392; @@ -19,4 +19,4 @@ END IF; END?? DELIMITER ; CALL add_migration(); -DROP PROCEDURE IF EXISTS add_migration; \ No newline at end of file +DROP PROCEDURE IF EXISTS add_migration; From 62b64a446e2615fcd053fb254550f3d502b51492 Mon Sep 17 00:00:00 2001 From: FlagFlayer <76889547+FlagFlayer@users.noreply.github.com> Date: Fri, 21 Mar 2025 22:10:13 +0200 Subject: [PATCH 3/4] Update 20250307204042_world.sql --- sql/migrations/20250307204042_world.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/migrations/20250307204042_world.sql b/sql/migrations/20250307204042_world.sql index 3a391b3819f..2b707c39417 100644 --- a/sql/migrations/20250307204042_world.sql +++ b/sql/migrations/20250307204042_world.sql @@ -14,6 +14,12 @@ UPDATE `creature` SET `position_x` = -4134.08984375, `position_y` = -2190.560058 UPDATE `creature` SET `position_x` = -4208.52001953125, `position_y` = -2274.22998046875, `position_z` = 50.26689910888672, `orientation` = 3.9258201122283936 WHERE `guid` = 14325 AND `id` = 3392; UPDATE `creature` SET `position_x` = -4176.35009765625, `position_y` = -2235.199951171875, `position_z` = 51.03120040893555, `orientation` = 5.194900035858154 WHERE `guid` = 14324 AND `id` = 3392; +INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES +(4130,-1,4105,4018,0,0,0); -- Player is Tauren and Patch is 1.10 or later + +UPDATE `gossip_menu` SET `condition_id` = 4130, `text_id` = 8370 WHERE `entry` = 4015 AND `text_id` = 8368; -- Velma Warnam +UPDATE `gossip_menu` SET `condition_id` = 4130 WHERE `entry` = 4022 AND `text_id` = 8407; -- Xar'Ti + -- End of migration. END IF; END?? From 7ad11519d4c6f679e83198faf8c57b248ccc8142 Mon Sep 17 00:00:00 2001 From: FlagFlayer <76889547+FlagFlayer@users.noreply.github.com> Date: Sat, 5 Apr 2025 08:51:16 +0300 Subject: [PATCH 4/4] Update 20250307204042_world.sql --- sql/migrations/20250307204042_world.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/migrations/20250307204042_world.sql b/sql/migrations/20250307204042_world.sql index 2b707c39417..e9df3b1e379 100644 --- a/sql/migrations/20250307204042_world.sql +++ b/sql/migrations/20250307204042_world.sql @@ -20,6 +20,9 @@ INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3 UPDATE `gossip_menu` SET `condition_id` = 4130, `text_id` = 8370 WHERE `entry` = 4015 AND `text_id` = 8368; -- Velma Warnam UPDATE `gossip_menu` SET `condition_id` = 4130 WHERE `entry` = 4022 AND `text_id` = 8407; -- Xar'Ti +-- Correct lockId for Jinxed Hoodoo Pile according to both 1.8 and Classic sniffs +UPDATE `gameobject_template` SET `data0` = 43 WHERE `entry` IN (180228, 180229); + -- End of migration. END IF; END??