From b596cf2452a2e2121fcbc58c806c8fbfe0a954eb Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 20 Sep 2022 16:24:31 +0200 Subject: DB/Shattered Halls: Migrate linked_respawn to spawn groups (cherry picked from commit f982e566a71e320f2c88bac06eeabaebed14ba84) --- .../2022_09_30_01_world_2022_09_20_01_world.sql | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sql/updates/world/master/2022_09_30_01_world_2022_09_20_01_world.sql (limited to 'sql') diff --git a/sql/updates/world/master/2022_09_30_01_world_2022_09_20_01_world.sql b/sql/updates/world/master/2022_09_30_01_world_2022_09_20_01_world.sql new file mode 100644 index 00000000000..37c7363efc5 --- /dev/null +++ b/sql/updates/world/master/2022_09_30_01_world_2022_09_20_01_world.sql @@ -0,0 +1,26 @@ +DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 169 AND 172; +INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES +(169,'Hellfire Citadel: The Shattered Halls - Grand Warlock Nethekurse',4), +(170,'Hellfire Citadel: The Shattered Halls - Blood Guard Porung',4), +(171,'Hellfire Citadel: The Shattered Halls - Warbringer O''mrogg',4), +(172,'Hellfire Citadel: The Shattered Halls - Warchief Kargath Bladefist',4); + +DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 169 AND 172; +INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES +(540,0,23,169,1), +(540,1,23,170,1), +(540,2,23,171,1), +(540,3,23,172,1); + +DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 169 AND 172; +INSERT INTO `spawn_group` SELECT 169, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=57853 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 170, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=34038 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 171, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=57855 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 172, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=57854 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES +(169,0,57853), +(170,0,34038), +(171,0,57855), +(172,0,57854); + +DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (57853,34038,57855,57854); -- cgit v1.2.3