From f79b60f344bcd5304ab37ad002c8fd8871066c31 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 2 Feb 2010 11:44:16 -0700 Subject: Fix the banker function Everything should be fine now. --- npc/functions/banker.txt | 25 ++++++++++--------------- 1 file 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; -- cgit v1.2.3-60-g2f50