summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-09-22 12:33:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-09-22 12:33:18 -0300
commitb8004ebd95cf282c919b6eb2cc6b0d061af7d79b (patch)
tree0d439d67bc5d6f3aa046c7b61dddde0d6b97bfe6 /npc
parentdefd51227f38e94b29a71f4e040d8727120e30ca (diff)
downloadserverdata-b8004ebd95cf282c919b6eb2cc6b0d061af7d79b.tar.gz
serverdata-b8004ebd95cf282c919b6eb2cc6b0d061af7d79b.tar.bz2
serverdata-b8004ebd95cf282c919b6eb2cc6b0d061af7d79b.tar.xz
serverdata-b8004ebd95cf282c919b6eb2cc6b0d061af7d79b.zip
Modify Alvasus internal workings to always have main field (Q1) set.
Diffstat (limited to 'npc')
-rw-r--r--npc/009-5/alvasus.txt15
-rw-r--r--npc/functions/clientversion.txt6
2 files changed, 15 insertions, 6 deletions
diff --git a/npc/009-5/alvasus.txt b/npc/009-5/alvasus.txt
index 3bb6ddfe4..7a3c7cbef 100644
--- a/npc/009-5/alvasus.txt
+++ b/npc/009-5/alvasus.txt
@@ -20,17 +20,20 @@
// Q3: Current Week Number (for repeat)
009-5,29,39,0 script Alvasus NPC_PLAYER,{
+ if (!getq(HalinarzoQuest_Alvasus))
+ setq HalinarzoQuest_Alvasus, 1, 0, atoi(gettimestr("%U", 2));
+
.@q3 = getq3(HalinarzoQuest_Alvasus);
.@q2 = getq2(HalinarzoQuest_Alvasus);
if (.@q3 != atoi(gettimestr("%U", 2)))
- setq HalinarzoQuest_Alvasus, 0, .@q2, atoi(gettimestr("%U", 2));
+ setq HalinarzoQuest_Alvasus, 1, .@q2, atoi(gettimestr("%U", 2));
if (gettime(GETTIME_WEEKDAY) == SUNDAY) goto L_Sunday;
.@q = getq(HalinarzoQuest_Alvasus);
if (BaseLevel < 19) goto L_TooWeak;
- if (.@q == 0) goto L_GiveTask;
- if (.@q == 1) goto L_Check;
- if (.@q == 2) goto L_Complete;
+ if (.@q == 1) goto L_GiveTask;
+ if (.@q == 2) goto L_Check;
+ if (.@q == 3) goto L_Complete;
closedialog;
goodbye;
@@ -111,7 +114,7 @@ L_Quest:
L_Start:
- setq1 HalinarzoQuest_Alvasus, 1;
+ setq1 HalinarzoQuest_Alvasus, 2;
mes "";
mesn;
mesq l("Ok, let's see how many you have and how many I need:");
@@ -152,7 +155,7 @@ L_Give:
getexp(700+.@q2, 1+.@q2);
Zeny=Zeny+(.@q2*5);
- setq1(HalinarzoQuest_Alvasus, 2);
+ setq1(HalinarzoQuest_Alvasus, 3);
setq2 HalinarzoQuest_Alvasus, .@q2+1;
setq3 HalinarzoQuest_Alvasus, atoi(gettimestr("%U", 2));
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 40fc5c56b..0492279bc 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -972,6 +972,12 @@ function script clientupdater {
strcharinfo(0), academicrank()));
}
}
+ // Change some quest inner workings
+ // qua set 22 12:30:40 BRT 2021
+ if (UPDATE < 1632324640) {
+ UPDATE=1632324640;
+ setq1 HalinarzoQuest_Alvasus, getq(HalinarzoQuest_Alvasus)+1;
+ }
// :// End of Regular Update System
////////////////////////////////////