summaryrefslogtreecommitdiff
path: root/npc/kafras
diff options
context:
space:
mode:
Diffstat (limited to 'npc/kafras')
-rw-r--r--npc/kafras/functions_kafras.txt9
1 files changed, 4 insertions, 5 deletions
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_;