diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-01 14:27:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-01 14:27:33 -0300 |
commit | f92335a4c2024993899188d3548eaa7d6dbd7444 (patch) | |
tree | 7794d192c9cdcabcc20f92147035c9079c7200ee /npc/029-1 | |
parent | 1da05d24db230a695fce7522b383762f29f93f38 (diff) | |
download | serverdata-f92335a4c2024993899188d3548eaa7d6dbd7444.tar.gz serverdata-f92335a4c2024993899188d3548eaa7d6dbd7444.tar.bz2 serverdata-f92335a4c2024993899188d3548eaa7d6dbd7444.tar.xz serverdata-f92335a4c2024993899188d3548eaa7d6dbd7444.zip |
Update Valon to new quest system
Diffstat (limited to 'npc/029-1')
-rw-r--r-- | npc/029-1/valon.txt | 19 |
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: |