summaryrefslogtreecommitdiff
path: root/npc/019-4-1/chief.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/019-4-1/chief.txt')
-rw-r--r--npc/019-4-1/chief.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index a8beecd45..58136e529 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -42,17 +42,19 @@
next;
}
+ // Start Event for the first time
+ if (gettime(GETTIME_MONTH) != JANUARY && getq(SQuest_Christmas) < gettime(GETTIME_YEAR))
+ setq SQuest_Christmas, gettime(GETTIME_YEAR), 0, 0;
+ if (gettime(GETTIME_MONTH) == JANUARY && getq(SQuest_Christmas) != gettime(GETTIME_YEAR)-1)
+ setq SQuest_Christmas, gettime(GETTIME_YEAR), 0, 0;
+ // Christmas still running
+ if ($EVENT$ == "Christmas")
+ goto L_Main;
// Last year
if (getq(SQuest_Christmas) == gettime(GETTIME_YEAR)-1)
goto L_Reward;
- // Not on season
- if ($EVENT$ != "Christmas")
- goto L_OutOfSeason;
- // Start Event for the first time
- if (getq(SQuest_Christmas) < gettime(GETTIME_YEAR))
- setq SQuest_Christmas, gettime(GETTIME_YEAR), 0, 0;
- // Main Loop
- goto L_Main;
+ // Not in season
+ goto L_OutOfSeason;
L_OutOfSeason:
mesn;