summaryrefslogtreecommitdiff
path: root/npc/functions/banker.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/banker.txt')
-rw-r--r--npc/functions/banker.txt25
1 files changed, 10 insertions, 15 deletions
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index d46c1735..6a43b90d 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -45,53 +45,48 @@ L_Dep_Input:
L_Dep_5k:
if (zeny<5000) goto L_NoMoney;
set @Amount, 5000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_10k:
if (zeny<10000) goto L_NoMoney;
set @Amount, 10000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_25k:
if (zeny<25000) goto L_NoMoney;
set @Amount, 25000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_50k:
if (zeny<50000) goto L_NoMoney;
set @Amount, 50000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_100k:
if (zeny<100000) goto L_NoMoney;
set @Amount, 100000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_250k:
if (zeny<250000) goto L_NoMoney;
set @Amount, 250000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_500k:
if (zeny<500000) goto L_NoMoney;
set @Amount, 500000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_1kk:
if (zeny<1000000) goto L_NoMoney;
set @Amount, 1000000;
- goto L_Deposit;
+ goto L_Dep_Continue;
L_Dep_All:
if (zeny<1) goto L_NoMoney;
set @Amount, zeny;
- goto L_Deposit;
-
-L_Dep_All:
- set @Amount, zeny;
L_Dep_Continue:
-
if (zeny < @Amount) goto L_NoMoney;
set zeny, zeny - @Amount;
set #BankAccount, #BankAccount + @Amount;
@@ -167,9 +162,9 @@ L_With_1kk:
goto L_With_Continue;
L_With_All:
- if (#BankAccount < 1000000) goto L_NoMoney;
+ if (#BankAccount < 0) goto L_NoMoney;
set @Amount, #BankAccount;
-
+
L_With_Continue:
if (#BankAccount < @Amount) goto L_NoMoney;
set zeny, zeny + @Amount;