summaryrefslogtreecommitdiff
path: root/npc/019-4-1/chief.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-09 23:42:21 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-09 23:42:21 -0200
commit424aa32c75b85d8291e32780f865e0b5462cfa32 (patch)
treeb12d8584dcbe80fc4b00d4d8cba030c7ca394b93 /npc/019-4-1/chief.txt
parentc7c2fda6e8f25e53ff0094a63719e5e2df29c88e (diff)
downloadserverdata-424aa32c75b85d8291e32780f865e0b5462cfa32.tar.gz
serverdata-424aa32c75b85d8291e32780f865e0b5462cfa32.tar.bz2
serverdata-424aa32c75b85d8291e32780f865e0b5462cfa32.tar.xz
serverdata-424aa32c75b85d8291e32780f865e0b5462cfa32.zip
Diffstat (limited to 'npc/019-4-1/chief.txt')
-rw-r--r--npc/019-4-1/chief.txt21
1 files changed, 11 insertions, 10 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt
index 5d267b951..746346147 100644
--- a/npc/019-4-1/chief.txt
+++ b/npc/019-4-1/chief.txt
@@ -42,22 +42,14 @@
next;
}
- // Start Event for the first time
- if (gettime(GETTIME_MONTH) != JANUARY && getq(SQuest_Christmas) < gettime(GETTIME_YEAR)) {
- npctalk3 l("Bug, please report: Merry Christmas I am undefined");
- setq SQuest_Christmas, gettime(GETTIME_YEAR), 0, 0;
- }
- if (gettime(GETTIME_MONTH) == JANUARY && getq(SQuest_Christmas) != gettime(GETTIME_YEAR)-1) {
- npctalk3 l("Bug, please report: Merry Christmas, I am @@. I got @@/@@ on exams last week!", getq(SQuest_Christmas), getq2(SQuest_Christmas), getq3(SQuest_Christmas));
- setq SQuest_Christmas, gettime(GETTIME_YEAR)-1, 0, 0;
- }
// Christmas still running
if ($EVENT$ == "Christmas")
goto L_Main;
- npctalk3 l("Bug, please report: Merry Christmas I am no one");
+
// Last year
if (getq(SQuest_Christmas) == gettime(GETTIME_YEAR)-1)
goto L_Reward;
+
// Not in season
goto L_OutOfSeason;
@@ -162,6 +154,15 @@ L_Reward:
close;
L_Main:
+ // Start Event for the first time if needed
+ 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)-1, 0, 0;
+ }
+
+ // Begin Christmas
.@q=getq2(SQuest_Christmas);
//
if (!getq(General_Narrator)) {