aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-09-20 18:55:33 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-30 16:14:46 +0200
commitc601ea7b40673bd21f21b794ed2280e29bb98a3d (patch)
tree584d91a986a13dd53f192edc0753d24f558292f1
parentb596cf2452a2e2121fcbc58c806c8fbfe0a954eb (diff)
DB/The Steamvault: Migrate linked_respawn to spawn groups
(cherry picked from commit 1a2b6a24d29f0a19cd424ff90debc2d67c75039e)
-rw-r--r--sql/updates/world/master/2022_09_30_02_world_2022_09_20_02_world.sql22
1 files changed, 22 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_09_30_02_world_2022_09_20_02_world.sql b/sql/updates/world/master/2022_09_30_02_world_2022_09_20_02_world.sql
new file mode 100644
index 00000000000..93e99d17373
--- /dev/null
+++ b/sql/updates/world/master/2022_09_30_02_world_2022_09_20_02_world.sql
@@ -0,0 +1,22 @@
+DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 173 AND 175;
+INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES
+(173,'Coilfang: The Steamvault - Hydromancer Thespia',4),
+(174,'Coilfang: The Steamvault - Mekgineer Steamrigger',4),
+(175,'Coilfang: The Steamvault - Warchief Kargath Bladefist',4);
+
+DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 173 AND 175;
+INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES
+(545,0,23,173,1),
+(545,1,23,174,1),
+(545,2,23,175,1);
+
+DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 173 AND 175;
+INSERT INTO `spawn_group` SELECT 173, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=3453 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 174, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=12597 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` SELECT 175, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=12613 AND `linkType` IN (0,3);
+INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES
+(173,0,3453),
+(174,0,12597),
+(175,0,12613);
+
+DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (3453,12597,12613);