aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-22 22:11:35 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-22 22:11:35 +0200
commit8348b93b1ab3f37e2fb3fa883e2417fef7f957d3 (patch)
tree9ba11b1bbe344ca836984517c32448e99142c398
parentede3f630bc80e3f5c9dac346c0e530fef9daf1a6 (diff)
DB/The Oculus: Migrate linked_respawn to spawn groups
-rw-r--r--sql/updates/world/3.3.5/2022_09_22_00_world.sql26
1 files changed, 26 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2022_09_22_00_world.sql b/sql/updates/world/3.3.5/2022_09_22_00_world.sql
new file mode 100644
index 00000000000..666ace74971
--- /dev/null
+++ b/sql/updates/world/3.3.5/2022_09_22_00_world.sql
@@ -0,0 +1,26 @@
+DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 228 AND 231;
+INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES
+(228,'The Oculus - Drakos the Interrogator',4),
+(229,'The Oculus - Varos Cloudstrider',4),
+(230,'The Oculus - Mage-Lord Urom',4),
+(231,'The Oculus - Ley-Guardian Eregos',4);
+
+DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 228 AND 231;
+INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES
+(578,0,23,228,1),
+(578,1,23,229,1),
+(578,2,23,230,1),
+(578,3,23,231,1);
+
+DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 228 AND 231;
+INSERT INTO `spawn_group` SELECT 228, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=100172 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 229, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=100235 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 230, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=100220 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 231, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=100221 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES
+(228,0,100172),
+(229,0,100235),
+(230,0,100220),
+(231,0,100221);
+
+DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (100172,100235,100220,100221);