From c32c61173aa710994aa9cfdb72cac62f3c4b88e1 Mon Sep 17 00:00:00 2001 From: brianluau Date: Thu, 30 Jul 2009 23:18:21 +0000 Subject: - Fixed some 'input' max value checks not working after r12192. (bugreport:3436) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13982 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/kafras/functions_kafras.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'npc/kafras') 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_; -- cgit v1.2.3-60-g2f50