summaryrefslogtreecommitdiff
path: root/npc/functions/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-25 01:28:04 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-25 01:28:04 -0300
commitf1a2a02f18b8e14d65b9183f703a62fbf7e5173a (patch)
tree10af15f51e1c8d0ed0b2900e634a5c45ac22aaae /npc/functions/event.txt
parent07fb34f601fd339dc59f7be91968db075116232d (diff)
downloadserverdata-f1a2a02f18b8e14d65b9183f703a62fbf7e5173a.tar.gz
serverdata-f1a2a02f18b8e14d65b9183f703a62fbf7e5173a.tar.bz2
serverdata-f1a2a02f18b8e14d65b9183f703a62fbf7e5173a.tar.xz
serverdata-f1a2a02f18b8e14d65b9183f703a62fbf7e5173a.zip
TMW2 DAY EVENT: AUTOMATIZE
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.