diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-09-21 17:24:24 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-09-30 20:11:05 +0200 |
commit | db38d13d9e92ff16e29e5b556e5c52f5110cfad0 (patch) | |
tree | a2553dc5891e2974c5df303adc3e55c25bd912d2 | |
parent | 2d6c74c80a7dc82f25ddcd10205f68366e85f831 (diff) |
DB/Utgarde Pinnacle: Migrate linked_respawn to spawn groups
(cherry picked from commit 3ed77df4733064e64f1c7b38bf0820910ce08408)
-rw-r--r-- | sql/updates/world/master/2022_09_30_15_world_2022_09_21_08_world.sql | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_09_30_15_world_2022_09_21_08_world.sql b/sql/updates/world/master/2022_09_30_15_world_2022_09_21_08_world.sql new file mode 100644 index 00000000000..5bbfe455d38 --- /dev/null +++ b/sql/updates/world/master/2022_09_30_15_world_2022_09_21_08_world.sql @@ -0,0 +1,23 @@ +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); + +-- from ba1df45d36285e283a295ea93560c2215ec21e37 +DELETE FROM `linked_respawn` WHERE `linkedGuid`=126102; +DELETE FROM `creature` WHERE `guid` IN(126091,126092,126093,126094,126256); +DELETE FROM `creature_addon` WHERE `guid` IN(126091,126092,126093,126094,126256); |