summaryrefslogtreecommitdiff
path: root/npc/functions/banker.txt
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-01-24 17:14:44 -0700
committerJared Adams <jaxad0127@gmail.com>2010-01-24 17:14:44 -0700
commit82d3c3b7dd9cd679a671b65abdf48159b928e83b (patch)
treee7b6de1e14c120af301feea02ba5e8fb106f9d26 /npc/functions/banker.txt
parenta763c59735d2b4b0a5322cbb8a45d3d5304b62da (diff)
downloadserverdata-82d3c3b7dd9cd679a671b65abdf48159b928e83b.tar.gz
serverdata-82d3c3b7dd9cd679a671b65abdf48159b928e83b.tar.bz2
serverdata-82d3c3b7dd9cd679a671b65abdf48159b928e83b.tar.xz
serverdata-82d3c3b7dd9cd679a671b65abdf48159b928e83b.zip
Fix bank exploit
Diffstat (limited to 'npc/functions/banker.txt')
-rw-r--r--npc/functions/banker.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/functions/banker.txt b/npc/functions/banker.txt
index 62408cd6..32c380b6 100644
--- a/npc/functions/banker.txt
+++ b/npc/functions/banker.txt
@@ -28,6 +28,7 @@ L_With:
next;
input @Amount;
+ if (#BankAccount < @Amount) goto L_NoMoney;
set zeny, zeny + @Amount;
set #BankAccount, #BankAccount - @Amount;
goto L_Balance;