summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r--npc/functions/clear_vars.txt18
1 files changed, 4 insertions, 14 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
index 60567cd8..efaa9d13 100644
--- a/npc/functions/clear_vars.txt
+++ b/npc/functions/clear_vars.txt
@@ -18,6 +18,10 @@ function script ClearVariables {
setq Quest_Doomsday, 2;
#DD5_TALLY = 0; // Whatever
}
+ if (#BankAccount) {
+ BankVault += #BankAccount;
+ #BankAccount = 0;
+ }
if (QL_CINDY) {
if (QL_CINDY == 5) QL_CINDY = 0;
else if (QL_CINDY == 6) QL_CINDY = 1;
@@ -55,20 +59,6 @@ function script ClearVariables {
QUEST_MAGIC = 0;
QUEST_MAGIC2 = 0;
}
-
- // 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;
}