diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/custom/banks/kafra_bank.txt | 6 | ||||
-rw-r--r-- | npc/kafras/functions_kafras.txt | 9 |
2 files changed, 6 insertions, 9 deletions
diff --git a/npc/custom/banks/kafra_bank.txt b/npc/custom/banks/kafra_bank.txt index a8a178b1f..04d762985 100644 --- a/npc/custom/banks/kafra_bank.txt +++ b/npc/custom/banks/kafra_bank.txt @@ -46,10 +46,9 @@ L_NoIncomeToday: mes"[Maniss]"; mes "Please, tell me how much zeny you would like to deposit."; next; - input @kafrabank; + if(input(@kafrabank) == 1) goto L_TOO_BIG_AMOUNT; if(@kafrabank<1000) goto L_LESS_1000; - if(@kafrabank>10000000) goto L_TOO_BIG_AMOUNT; if(@kafrabank>zeny) goto L_NOT_ENOUGH; set zeny,zeny-@kafrabank; set #kafrabank,#kafrabank+@kafrabank; @@ -65,10 +64,9 @@ M_WITHDRAW: mes "Your account: ^135445" + #kafrabank + "^000000 zeny."; mes "How much zeny would you like to withdraw?"; next; - input @kafrabank; + if(input(@kafrabank) == 1) goto L_TOO_BIG_AMOUNT; if(@kafrabank<1) goto B_EXIT2; - if(@kafrabank>10000000) goto L_TOO_BIG_AMOUNT; if(@kafrabank>#kafrabank) goto L_NOT_ENOUGH; set #kafrabank,#kafrabank-@kafrabank; set zeny,zeny+@kafrabank; diff --git a/npc/kafras/functions_kafras.txt b/npc/kafras/functions_kafras.txt index 83994d87c..268b54f64 100644 --- a/npc/kafras/functions_kafras.txt +++ b/npc/kafras/functions_kafras.txt @@ -665,13 +665,12 @@ function script F_EntKafCode { set @kafcode_try,0; logmes "Hack: Tried to fit storage password."; } - input @code_; - if(@code_<1000) { - mes "You shouldn't use such short password."; + if(input(@code_) == 1) { + mes "You can't use such big password."; return 0; } - if(@code_>10000000) { - mes "You can't use such big password."; + if(@code_<1000) { + mes "You shouldn't use such short password."; return 0; } return @code_; |