diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-09-21 00:10:07 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-09-21 00:10:07 +0200 |
commit | e4d489f1e7a7098be166b2a95a46ec07f1209f0c (patch) | |
tree | b6443d4b0f99d3278c9ebfa09b92a9efd34770cf | |
parent | 2e0c1710ff5464c6d8e165d60d1042fa287a1bb3 (diff) |
DB/The Mechanar: Migrate linked_respawn to spawn groups
-rw-r--r-- | sql/updates/world/3.3.5/2022_09_21_00_world.sql | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2022_09_21_00_world.sql b/sql/updates/world/3.3.5/2022_09_21_00_world.sql new file mode 100644 index 00000000000..35cb6fc96c9 --- /dev/null +++ b/sql/updates/world/3.3.5/2022_09_21_00_world.sql @@ -0,0 +1,22 @@ +DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 192 AND 194; +INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES +(192,'Tempest Keep: The Mechanar - Mechano-Lord Capacitus',4), +(193,'Tempest Keep: The Mechanar - Nethermancer Sepethrea',4), +(194,'Tempest Keep: The Mechanar - Pathaleon the Calculator',4); + +DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 192 AND 194; +INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES +(554,2,23,192,1), +(554,3,23,193,1), +(554,4,23,194,1); + +DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 192 AND 194; +INSERT INTO `spawn_group` SELECT 192, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=83160 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 193, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=83230 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 194, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=83241 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES +(192,0,83160), +(193,0,83230), +(194,0,83241); + +DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (83160,83230,83241); |