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.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 0793ec859..631a5093f 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -231,6 +231,11 @@ OnInit:
.valentine_endday=16;
.valentine_endmon=FEBRUARY;
+ .tmw2day_stday=1;
+ .tmw2day_stmon=MARCH;
+ .tmw2day_endday=7;
+ .tmw2day_endmon=MARCH;
+
.patrick_stday=15;
.patrick_stmon=MARCH;
.patrick_endday=19;
@@ -293,6 +298,31 @@ OnClock0000:
}
+
+ // Handle TMW2 Day
+ if (.@m >=.tmw2day_stmon && .@m <= .tmw2day_endmon) {
+ // It's tomorrow: Send out an announcement
+ if (.@d == .tmw2day_stday - 1) {
+ kamibroadcast("Moubootaur Legends Anniversary will start tomorrow!");
+ }
+ // Last Day: Send out an announcement
+ if (.@d == .tmw2day_endday) {
+ kamibroadcast("It's the last day of our Anniversary Event! Hurry up!");
+ }
+ // Begin the event
+ if (.@d == .tmw2day_stday) {
+ kamibroadcast("Moubootaur Legends Anniversary Event begun!");
+ $EVENT$="Anniversary";
+ }
+ // End the event the day after
+ if (.@d == .tmw2day_endday+1) {
+ kamibroadcast("Our Special Anniversary Event ended! Thanks!");
+ sClear();
+ $EVENT$="";
+ }
+ }
+
+
// Handle St. Patrick Day
// During this day, a special four leaf clover is spawned daily, at 4 times in the day
// in all forests: 6:00, 12:00, 18:00 and 00:00.