aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMeji <alvaro.megias@outlook.com>2025-09-23 15:48:58 +0200
committerGitHub <noreply@github.com>2025-09-23 15:48:58 +0200
commitc575b397c591e7051c325046204da61086a0dbb9 (patch)
tree05d2cc4f088e51888b3e533c7ae54bc9fbade255 /sql
parentfa9cb13cc1b2337104999b9f369b348f7b12a942 (diff)
Core/GameEvents: Added holiday/event world state field (#31284)
Closes #30622
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/master/2025_09_23_01_world.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/updates/world/master/2025_09_23_01_world.sql b/sql/updates/world/master/2025_09_23_01_world.sql
new file mode 100644
index 00000000000..bf337bfd5cc
--- /dev/null
+++ b/sql/updates/world/master/2025_09_23_01_world.sql
@@ -0,0 +1,16 @@
+ALTER TABLE `game_event` ADD `WorldStateId` INT DEFAULT NULL AFTER `holidayStage`;
+
+DELETE FROM `world_state` WHERE `ID` IN (521, 522, 523, 524);
+INSERT INTO `world_state` (`ID`, `DefaultValue`, `MapIDs`, `AreaIDs`, `ScriptName`, `Comment`) VALUES
+(521, 0, NULL, NULL, '', 'Season - Spring'),
+(522, 0, NULL, NULL, '', 'Season - Summer'),
+(523, 0, NULL, NULL, '', 'Season - Fall'),
+(524, 0, NULL, NULL, '', 'Season - Winter');
+
+SET @EENTRY := 90;
+DELETE FROM `game_event` WHERE `eventEntry` BETWEEN @EENTRY+0 AND @EENTRY+3;
+INSERT INTO `game_event` (`eventEntry`,`start_time`,`end_time`,`occurence`,`length`,`holiday`,`holidayStage`,`WorldStateId`,`description`,`world_event`,`announce`) VALUES
+(@EENTRY+0, '2025-03-19 23:59:59', '2035-06-21 00:00:00', 525600, 133920, 0, 0, 521, 'Season - Spring', 0, 2),
+(@EENTRY+1, '2025-06-20 23:59:59', '2035-09-22 00:00:00', 525600, 133920, 0, 0, 522, 'Season - Summer', 0, 2),
+(@EENTRY+2, '2025-09-21 23:59:59', '2035-12-21 00:00:00', 525600, 131040, 0, 0, 523, 'Season - Fall', 0, 2),
+(@EENTRY+3, '2025-12-20 23:59:59', '2036-03-20 00:00:00', 525600, 128160, 0, 0, 524, 'Season - Winter', 0, 2);