summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/009-5/alvasus.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/009-5/alvasus.txt b/npc/009-5/alvasus.txt
index 4da6ae571..7c178c344 100644
--- a/npc/009-5/alvasus.txt
+++ b/npc/009-5/alvasus.txt
@@ -14,8 +14,17 @@
//
// First time: Alvasus Pendant
// Later times: GP and EXP
+//
+// Q1: Current State
+// Q2: Current Reward
+// Q3: Current Week Number (for repeat)
009-5,29,39,0 script Alvasus NPC_PLAYER,{
+ .@q3 = getq3(HalinarzoQuest_Alvasus);
+ .@q2 = getq2(HalinarzoQuest_Alvasus);
+ if (.@q3 != atoi(gettimestr("%U", 2)))
+ setq HalinarzoQuest_Alvasus, 0, .@q2, atoi(gettimestr("%U", 2));
+
if (gettime(GETTIME_WEEKDAY) == SUNDAY) goto L_Sunday;
.@q = getq(HalinarzoQuest_Alvasus);
if (BaseLevel < 19) goto L_TooWeak;
@@ -121,6 +130,7 @@ L_Give:
setq1(HalinarzoQuest_Alvasus, 2);
setq2 HalinarzoQuest_Alvasus, .@q2+1;
+ setq3 HalinarzoQuest_Alvasus, atoi(gettimestr("%U", 2));
mes "";
mesn;