summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-02 11:44:16 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-02 11:44:16 -0700
commitf79b60f344bcd5304ab37ad002c8fd8871066c31 (patch)
tree69a49386901c2fdb4d1d6172fb46c68c1406d6a1
parentd69f17d48933b92e9d1c26c86e41dabaac86e609 (diff)
downloadserverdata-f79b60f344bcd5304ab37ad002c8fd8871066c31.tar.gz
serverdata-f79b60f344bcd5304ab37ad002c8fd8871066c31.tar.bz2
serverdata-f79b60f344bcd5304ab37ad002c8fd8871066c31.tar.xz
serverdata-f79b60f344bcd5304ab37ad002c8fd8871066c31.zip
Fix the banker function
Everything should be fine now.
-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;