diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-27 20:30:35 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-27 20:30:35 +0000 |
commit | b9d0ad6565a655649c6905cceb959c7274398011 (patch) | |
tree | c8e3f8409fd7082c8c0a598c10c3cb140afd5628 /npc/other/kafra_bank.txt | |
parent | 3c0dc9f900f2d7b6af555995189877555554a5ed (diff) | |
download | hercules-b9d0ad6565a655649c6905cceb959c7274398011.tar.gz hercules-b9d0ad6565a655649c6905cceb959c7274398011.tar.bz2 hercules-b9d0ad6565a655649c6905cceb959c7274398011.tar.xz hercules-b9d0ad6565a655649c6905cceb959c7274398011.zip |
added an extra exploit protection
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@826 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/other/kafra_bank.txt')
-rw-r--r-- | npc/other/kafra_bank.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/other/kafra_bank.txt b/npc/other/kafra_bank.txt index fbb71a039..970581ce7 100644 --- a/npc/other/kafra_bank.txt +++ b/npc/other/kafra_bank.txt @@ -1,9 +1,9 @@ //===== eAthena Script ======================================= -//= 2nd Bank of Prontera ( with daily 0.01% income! ) +//= The 2nd Bank of Prontera ( with daily 0.01% income! ) //===== By: ================================================== //= Lupus (1.0) //===== Current Version: ===================================== -//= 1.1 +//= 1.2 //===== Compatible With: ===================================== //= eAthena 1.x //===== Description: ========================================= @@ -15,6 +15,8 @@ // #kafrabank/10 = 10% of interest per day // // 1.1 Added log of bank operation -> logmes "some info"; +// 1.2 Set max income to 100,000z. It would help to avoid +// zeny exploits when you change DATE at your server //============================================================ prontera.gat,131,190,1 script Bank Clerk::bankg 833,{ @@ -25,7 +27,9 @@ prontera.gat,131,190,1 script Bank Clerk::bankg 833,{ set @income,0; //calculate % if (#kafrabank<=0 || #kb_int>=@kb_int) goto L_NoIncomeToday; - set @income,(#kafrabank/1000)*(@kb_int-#kb_int); //@income == % of the summ + set @income,(#kafrabank/1000)*(@kb_int-#kb_int); //@income == % of the sum +//max income constant: + if (@income>100000) set @income,100000; L_NoIncomeToday: set #kb_int,@kb_int; //reset days timer @@ -35,7 +39,7 @@ L_NoIncomeToday: if(#kafrabank>0) mes "Your account: ^135445" + #kafrabank + "^000000 zeny."; mes "What would you like?"; next; - if(#kafrabank==0) menu "-Open a bank account",-,"-Quit",B_EXIT2; + if(#kafrabank==0) menu "-Open an account",-,"-Quit",B_EXIT2; if(#kafrabank>0) menu "-Deposit money",-,"-Withdraw money",M_WITHDRAW,"-Quit",B_EXIT2; mes"[Maniss]"; |