added an extra exploit protection
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@826 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
d67ac93039
commit
66b7b812d2
@ -35,6 +35,7 @@ Other Ppl
|
|||||||
Date Added
|
Date Added
|
||||||
======
|
======
|
||||||
12/27
|
12/27
|
||||||
|
* kafra_bank.txt added an extra exploit protection [Lupus]
|
||||||
* kafra_bank.txt was missing an npc label [celest]
|
* kafra_bank.txt was missing an npc label [celest]
|
||||||
* Reverted gldfunc_dunsw.txt back. Some people report RC5 bugs, which have been fixed some months ago.
|
* Reverted gldfunc_dunsw.txt back. Some people report RC5 bugs, which have been fixed some months ago.
|
||||||
Next time always CHECK and READ the code, before implementing some stupid "fixes" from the forums 8) Peace [Lupus]
|
Next time always CHECK and READ the code, before implementing some stupid "fixes" from the forums 8) Peace [Lupus]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
//===== eAthena Script =======================================
|
//===== eAthena Script =======================================
|
||||||
//= 2nd Bank of Prontera ( with daily 0.01% income! )
|
//= The 2nd Bank of Prontera ( with daily 0.01% income! )
|
||||||
//===== By: ==================================================
|
//===== By: ==================================================
|
||||||
//= Lupus (1.0)
|
//= Lupus (1.0)
|
||||||
//===== Current Version: =====================================
|
//===== Current Version: =====================================
|
||||||
//= 1.1
|
//= 1.2
|
||||||
//===== Compatible With: =====================================
|
//===== Compatible With: =====================================
|
||||||
//= eAthena 1.x
|
//= eAthena 1.x
|
||||||
//===== Description: =========================================
|
//===== Description: =========================================
|
||||||
@ -15,6 +15,8 @@
|
|||||||
// #kafrabank/10 = 10% of interest per day
|
// #kafrabank/10 = 10% of interest per day
|
||||||
//
|
//
|
||||||
// 1.1 Added log of bank operation -> logmes "some info";
|
// 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,{
|
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;
|
set @income,0;
|
||||||
//calculate %
|
//calculate %
|
||||||
if (#kafrabank<=0 || #kb_int>=@kb_int) goto L_NoIncomeToday;
|
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:
|
L_NoIncomeToday:
|
||||||
set #kb_int,@kb_int; //reset days timer
|
set #kb_int,@kb_int; //reset days timer
|
||||||
|
|
||||||
@ -35,7 +39,7 @@ L_NoIncomeToday:
|
|||||||
if(#kafrabank>0) mes "Your account: ^135445" + #kafrabank + "^000000 zeny.";
|
if(#kafrabank>0) mes "Your account: ^135445" + #kafrabank + "^000000 zeny.";
|
||||||
mes "What would you like?";
|
mes "What would you like?";
|
||||||
next;
|
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;
|
if(#kafrabank>0) menu "-Deposit money",-,"-Withdraw money",M_WITHDRAW,"-Quit",B_EXIT2;
|
||||||
|
|
||||||
mes"[Maniss]";
|
mes"[Maniss]";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user