summaryrefslogtreecommitdiff
path: root/npc/functions/event.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/event.txt')
-rw-r--r--npc/functions/event.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 5bc602cc3..ada71f3dc 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -91,6 +91,11 @@ OnInit:
.worker_endday=3;
.worker_endmon=MAY;
+ .thanks_stday=1;
+ .thanks_stmon=NOVEMBER;
+ .thanks_endday=30;
+ .thanks_endmon=NOVEMBER;
+
.xmas_stday=19;
.xmas_stmon=DECEMBER;
.xmas_endday=2;
@@ -171,6 +176,7 @@ OnClock0000:
}
}
+
// Handle Easter
if (.@m >=.easter_stmon && .@m <= .easter_endmon) {
// It's tomorrow: Send out an announcement
@@ -198,6 +204,7 @@ OnClock0000:
}
}
+
// Handle Worker Day
if (.@m >=.worker_stmon && .@m <= .worker_endmon) {
// It's tomorrow: Send out an announcement
@@ -226,6 +233,30 @@ OnClock0000:
}
+ // Handle Thanksgiving Day
+ if (.@m >=.thanks_stmon && .@m <= .thanks_endmon) {
+ // It's tomorrow: Send out an announcement
+ if (.@d == .thanks_stday - 1 && .@m == .thanks_stmon) {
+ kamibroadcast("Thanksgiving will start tomorrow!");
+ }
+ // Last Day: Send out an announcement
+ if (.@d == .thanks_endday && .@m == .thanks_endmon) {
+ kamibroadcast("It's the last day for Thanksgiving Event! Hurry up!");
+ }
+ // Begin the event
+ if (.@d == .thanks_stday && .@m == .thanks_stmon) {
+ kamibroadcast("Thanksgiving begun!");
+ $EVENT$="Thanksgiving";
+ }
+ // End the event the day after
+ if (.@d == .thanks_endday+1 && .@m == .thanks_endmon) {
+ kamibroadcast("Thanksgiving ended!");
+ sClear();
+ $EVENT$="";
+ }
+ }
+
+
// Handle Christmas
if (.@m >=.xmas_stmon && .@m <= .xmas_endmon) {
// It's tomorrow: Send out an announcement