diff options
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 282da5cde..e0b1c2ac7 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -396,6 +396,10 @@ function script gf_charid { // Request pincode and validate it. Use any non-4-digits code to cancel. Failure will dc you. // Returns 1 if pin check is OK. function script validatepin { + if (#FIRST_TIME < 2) { + mesc l("ERROR: You must set a PinCode to make use of this function."), 1; + return 0; + } mesc l("Please insert your pincode."), 1; mesc l("WARNING: If you insert wrong pincode, you'll be disconnected."); mesc l("Use @@ to cancel.", "##B-1##b"); |