diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-09-21 17:24:24 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-09-21 17:24:24 +0200 |
commit | 3ed77df4733064e64f1c7b38bf0820910ce08408 (patch) | |
tree | 392aec13d113be1196066e0036b0354efedcae2f | |
parent | ee978871b3e3c89b53ad6b2b6f4d87212a5cffdd (diff) |
DB/Utgarde Pinnacle: Migrate linked_respawn to spawn groups
-rw-r--r-- | sql/updates/world/3.3.5/2022_09_21_08_world.sql | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2022_09_21_08_world.sql b/sql/updates/world/3.3.5/2022_09_21_08_world.sql new file mode 100644 index 00000000000..5267144151d --- /dev/null +++ b/sql/updates/world/3.3.5/2022_09_21_08_world.sql @@ -0,0 +1,18 @@ +DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 224 AND 225; +INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES +(224,'Utgarde Pinnacle - Svala Sorrowgrave',4), +(225,'Utgarde Pinnacle - King Ymiron',4); + +DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 224 AND 225; +INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES +(575,0,23,224,1), +(575,3,23,225,1); + +DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 224 AND 225; +INSERT INTO `spawn_group` SELECT 224, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=126115 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` SELECT 225, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=126255 AND `linkType` IN (0,3); +INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES +(224,0,126115), +(225,0,126255); + +DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (126115,126255); |