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/functions/clear_vars.txt | |
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/functions/clear_vars.txt')
-rw-r--r-- | npc/functions/clear_vars.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 61268afd..4b85640c 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -1,8 +1,15 @@ function script ClearVariables { - if(@login_event != 1) goto L_Deprecated; + if (@login_event != 1) goto L_Deprecated; - if(#BankAccount >= 0) return; + if (QL_VALON) { + setq CandorQuest_Valon, QL_VALON; + QL_VALON=0; + } + + // Don't ask me what code below does + // ---------------------------------- + if (#BankAccount >= 0) return; if (Zeny >= -#BankAccount) { Zeny = Zeny + #BankAccount; #BankAccount = 0; |