Skip to content

Commit d41b70f

Browse files
authored
Correct old spawn position for 3 NPCs. (#3433)
1 parent e24da50 commit d41b70f

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
DROP PROCEDURE IF EXISTS add_migration;
2+
DELIMITER ??
3+
CREATE PROCEDURE `add_migration`()
4+
BEGIN
5+
DECLARE v INT DEFAULT 1;
6+
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20260528232744');
7+
IF v = 0 THEN
8+
INSERT INTO `migrations` VALUES ('20260528232744');
9+
-- Add your query below.
10+
11+
12+
-- Sniffed Magister Kalendris, previous was hand spawned
13+
UPDATE `creature` SET `position_x` = -106.239, `position_y` = 575.648, `position_z` = -4.3122, `orientation` = 5.68977 WHERE `guid` = 56802;
14+
15+
-- Sniffed Storm Shadowhoof from wowemu, previous was hand spawned
16+
UPDATE `creature` SET `position_x` = 5107.82, `position_y` = -361.647, `position_z` = 357.204, `orientation` = 0.733038 WHERE `guid` = 41759;
17+
18+
-- Sniffed Grazzle from wowemu, previous was hand spawned
19+
UPDATE `creature` SET `position_x` = 6821.94, `position_y` = -2082.56, `position_z` = 623.264, `orientation` = 3.31613 WHERE `guid` = 39107;
20+
21+
-- Twilight Avenger was missing min patch in area that was changed in 1.8
22+
UPDATE `creature` SET `patch_min` = 6 WHERE `guid` = 42985;
23+
24+
25+
-- End of migration.
26+
END IF;
27+
END??
28+
DELIMITER ;
29+
CALL add_migration();
30+
DROP PROCEDURE IF EXISTS add_migration;

0 commit comments

Comments
 (0)