From 8eafc97eb466b89048729cc93546560c062f94f8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 Feb 2020 01:34:17 -0300 Subject: Some debug, and I've found out the bug... --- npc/functions/event.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'npc/functions/event.txt') diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 631a5093f..a62c8f0a7 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -225,6 +225,7 @@ function script sThanksgiving { end; // Event Schedule (all dates are inclusive) +// NEVER, ever, include the last day of the month. OnInit: .valentine_stday=13; .valentine_stmon=FEBRUARY; @@ -253,7 +254,7 @@ OnInit: .thanks_stday=1; .thanks_stmon=NOVEMBER; - .thanks_endday=30; + .thanks_endday=29; .thanks_endmon=NOVEMBER; .xmas_stday=19; @@ -271,6 +272,12 @@ OnClock0000: debugmes "EVENT CORE, the %02d/%02d", .@d, .@m; debugmes "Valentine: %02d/%02d", .valentine_stday, .valentine_stmon; debugmes "Valentine End: %02d/%02d", .valentine_endday, .valentine_endmon; + if ($@DEBUG_OD) + .@d=$@DEBUG_OD; + if ($@DEBUG_OM) + .@m=$@DEBUG_OM; + debugmes "EVENT CORE, the %02d/%02d", .@d, .@m; + // Handle Valentine Day if (.@m >=.valentine_stmon && .@m <= .valentine_endmon) { @@ -453,6 +460,7 @@ OnClock0000: $EVENT$=""; } } + debugmes "EVENT CORE has finished"; end; } -- cgit v1.2.3-70-g09d2