aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-20 22:49:13 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-20 22:49:13 +0200
commit403825750d4a40f78a955fbafb254d33203139ab (patch)
treed37c2e486c027c6cff737175af0b35aa1223991d
parente7e860111d31cd880cf1ed0b79414c4ccca69f5e (diff)
DB/The Arcatraz: Migrate linked_respawn to spawn groups
-rw-r--r--sql/updates/world/3.3.5/2022_09_20_05_world.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2022_09_20_05_world.sql b/sql/updates/world/3.3.5/2022_09_20_05_world.sql
new file mode 100644
index 00000000000..e358954a02c
--- /dev/null
+++ b/sql/updates/world/3.3.5/2022_09_20_05_world.sql
@@ -0,0 +1,22 @@
+DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 184 AND 186;
+INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES
+(184,'Tempest Keep: The Arcatraz - Zereketh the Unbound',4),
+(185,'Tempest Keep: The Arcatraz - Wrath-Scryer Soccothrates',4),
+(186,'Tempest Keep: The Arcatraz - Harbinger Skyriss',4);
+
+DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 184 AND 186;
+INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES
+(552,0,23,184,1),
+(552,2,23,185,1),
+(552,3,23,186,1);
+
+DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 184 AND 186;
+INSERT INTO `spawn_group` SELECT 184, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=79391 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 185, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=79398 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 186, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=79451 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES
+(184,0,79391),
+(185,0,79398),
+(186,0,79451);
+
+DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (79391,79398,79451);