diff options
| author | Shauren <shauren.trinity@gmail.com> | 2022-09-20 16:24:31 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-09-20 16:24:31 +0200 |
| commit | f982e566a71e320f2c88bac06eeabaebed14ba84 (patch) | |
| tree | 65ff91383cd153986b6906165d35f912ae1e9c72 /sql/updates | |
| parent | 9cac8d88cff2211ecffa024d89efe8059c61e2c7 (diff) | |
DB/Shattered Halls: Migrate linked_respawn to spawn groups
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/world/3.3.5/2022_09_20_01_world.sql | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2022_09_20_01_world.sql b/sql/updates/world/3.3.5/2022_09_20_01_world.sql new file mode 100644 index 00000000000..37c7363efc5 --- /dev/null +++ b/sql/updates/world/3.3.5/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); |
