summaryrefslogtreecommitdiff
path: root/npc/009-5
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-04 11:24:57 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-04 11:24:57 -0300
commitf673e1596a206172eb7b578c4c278e54a25700a7 (patch)
tree599849e784b00869307ad7653e83b4e01935a932 /npc/009-5
parentee5e3ea9dd45b31b9bfec888cdda323ffcc32d6e (diff)
downloadserverdata-f673e1596a206172eb7b578c4c278e54a25700a7.tar.gz
serverdata-f673e1596a206172eb7b578c4c278e54a25700a7.tar.bz2
serverdata-f673e1596a206172eb7b578c4c278e54a25700a7.tar.xz
serverdata-f673e1596a206172eb7b578c4c278e54a25700a7.zip
Alvasus was not really repeatable due a design bug.
Diffstat (limited to 'npc/009-5')
-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;