summaryrefslogtreecommitdiff
path: root/npc/029-1/valon.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/029-1/valon.txt')
-rw-r--r--npc/029-1/valon.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/npc/029-1/valon.txt b/npc/029-1/valon.txt
index eb168fee..91cb7892 100644
--- a/npc/029-1/valon.txt
+++ b/npc/029-1/valon.txt
@@ -12,7 +12,7 @@ OnInit:
mes "Reset?";
if (askyesno() == ASK_YES) {
- QL_VALON = 0;
+ setq CandorQuest_Valon, 0;
STARTAREA = (STARTAREA & ~(NIBBLE_2_MASK) | (0 << NIBBLE_2_SHIFT));
mes "";
mes "Reset!";
@@ -29,13 +29,14 @@ OnInit:
if(@npc_check) end;
ValonCount();
- if (QL_VALON >= 6)
+ .@q=getq(CandorQuest_Valon);
+ if (.@q >= 6)
goto L_QuestComplete;
- if (QL_VALON == 1)
+ if (.@q == 1)
goto L_QuestAskAgain;
if (@valon_count >= $@ValonMobCnt[@valon_mob])
goto L_NextMob;
- if ((QL_VALON >= 2) && (QL_VALON < 6))
+ if ((.@q >= 2) && (.@q < 6))
goto L_QuestStarted;
goto L_QuestAsk;
@@ -55,14 +56,14 @@ L_QuestAsk:
mes "\"I should know I guard this gate from all manner of island beasts.\"";
mes "\"Maybe you would like help and earn your stripes?\"";
mes "\"The Council of Wizard's does offer a reward for helping...\"";
- QL_VALON = 1;
+ setq CandorQuest_Valon, 1;
ResetValonCntMask();
menu
"YES!!! let me at them!", L_Accept,
"Maybe some other time.", L_close;
L_Accept:
- QL_VALON = 2;
+ setq CandorQuest_Valon, 2;
ValonCount();
goto L_NewMob;
@@ -70,8 +71,8 @@ L_NextMob:
getexp 40, 0;
mesq l("I see you killed all the %s needed.", getmonsterlink(@valon_mob));
mesq l("The Wizard's thank thee as well.");
- Zeny = Zeny + 25;
- QL_VALON = (QL_VALON + 1);
+ Zeny += 25;
+ setq CandorQuest_Valon, (.@q + 1);
ResetValonCntMask();
ValonCount();
if (@valon_mob == getarraysize($@ValonMob))
@@ -94,7 +95,7 @@ L_QuestOver:
mesn;
mesq l("Thanks once again for helping with the monsters in the island.");
getexp 50, 0;
- QL_VALON = (QL_VALON + 1);
+ setq CandorQuest_Valon, (.@q + 1);
close;
L_QuestComplete: