diff options
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r-- | npc/functions/clear_vars.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt new file mode 100644 index 00000000..82ac931f --- /dev/null +++ b/npc/functions/clear_vars.txt @@ -0,0 +1,30 @@ + +function script ClearVariables { + if (@login_event != 1) goto L_Deprecated; + + // Remove old variables to new quest system + if (QL_VALON) { + setq CandorQuest_Valon, QL_VALON; + QL_VALON=0; + } + if (QL_HIDENSEEK) { + setq CandorQuest_HideNSeek, (QL_HIDENSEEK >= 64 ? 2 : 1), (QL_HIDENSEEK-1); + } + + // Don't ask me what code below does + // ---------------------------------- + /* + if (#BankAccount >= 0) return; + if (Zeny >= -#BankAccount) { + Zeny = Zeny + #BankAccount; + #BankAccount = 0; + } + + // Partial fix + #BankAccount = #BankAccount + Zeny; + Zeny = 0; + */ + return; +} + + |