From 424aa32c75b85d8291e32780f865e0b5462cfa32 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 9 Jan 2019 23:42:21 -0200 Subject: Fixes --- npc/019-4-1/chief.txt | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'npc/019-4-1/chief.txt') 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)) { -- cgit v1.2.3-70-g09d2