aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-20 19:01:12 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-30 16:16:32 +0200
commit16c83d7737400ba53034b89827ac1cd14ebcb6e1 (patch)
tree6f5d5e02a25681ea401cfb38e2b3696531cd7fc1 /sql
parentc601ea7b40673bd21f21b794ed2280e29bb98a3d (diff)
DB/The Slave Pens: Migrate linked_respawn to spawn groups
(cherry picked from commit c0c8c3bf5d3a7f63fced17a7e8518a81a850e47f)
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2022_09_30_03_world_2022_09_20_03_world.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_09_30_03_world_2022_09_20_03_world.sql b/sql/updates/world/master/2022_09_30_03_world_2022_09_20_03_world.sql
new file mode 100644
index 00000000000..8e92c39b35c
--- /dev/null
+++ b/sql/updates/world/master/2022_09_30_03_world_2022_09_20_03_world.sql
@@ -0,0 +1,22 @@
+DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 176 AND 178;
+INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES
+(176,'Coilfang: The Slave Pens - Mennu the Betrayer',4),
+(177,'Coilfang: The Slave Pens - Rokmar the Crackler',4),
+(178,'Coilfang: The Slave Pens - Quagmirran',4);
+
+DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 176 AND 178;
+INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES
+(547,0,23,176,1),
+(547,1,23,177,1),
+(547,2,23,178,1);
+
+DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 176 AND 178;
+INSERT INTO `spawn_group` SELECT 176, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=79362 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 177, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=79339 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 178, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=80260 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES
+(176,0,79362),
+(177,0,79339),
+(178,0,80260);
+
+DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (79362,79339,80260);