From f1a2a02f18b8e14d65b9183f703a62fbf7e5173a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 Feb 2020 01:28:04 -0300 Subject: TMW2 DAY EVENT: AUTOMATIZE --- npc/functions/event.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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. -- cgit v1.2.3-60-g2f50