you can try do it in this way then...
prontera,155,181,5 script Sample 757,{
if( getgmlevel() < .GMLevel ){
mes "This Services only provided for GM.";
close;
}
mes "How can i help you GM ?";
if( select("Set Password:Cancel") == 1 ){
mes "Please input a new password with Minimum length of "+.Min+" ~ "+.Max+" words.";
do{
input #Password$;
}while( getstrlen( #Password$ ) < .Min || getstrlen( #Password$ ) > .Max );
next;
mes "Your new password is ^FF0000"+#Password$+"^000000";
}
close;
OnPCLoginEvent:
OnPCLoadMapEvent:
if( !@Verified && getgmlevel() > .GMLevel && #Password$ != "" ){
setmapflag strcharinfo(3),mf_loadevent;
mes "Please insert the Password";
input .@Password$;
if( .@Password$ == #Password$ ){
set @Verified,1;
mes "Thank you...you have verified yourself.";
removemapflag strcharinfo(3),mf_loadevent;
close;
}
mes "You have entered a Wrong Password.";
mes "And you will be kicked out within 3 Seconds.";
sleep2 ( 3 * 1000 );
removemapflag strcharinfo(3),mf_loadevent;
atcommand "@Kick "+strcharinfo(0);
}
end;
OnInit:
// Min GM Level who must Verify themself upon Login.
set .GMLevel,10;
// Password Length
set .Min,6;
set .Max,24;
}
my script doesnt implant with the feature that force player to create a password if they didnt have one..
so, you have to force your GM Staffs go set a Password...that they can change it everytime they want...
( Lazy to write in the function for that )
i think this type of script would be better..as it apply on all GM
this script has been tested and work perfectly fine in my test server without fail.
those above script in previous script require the Admin to keep update the script whenever there is a new staffs...so...it is annoying ( for me xD ) to keep updating the script