Good Day, Seeking for your assistance on how to add mute on the script below upon logging in and remove the mute if the secondary password is correct. because when the player use @go the script is useless, that's why i want to add mute so that he can't warp.
-scriptLogin_Events-1,{
OnPCLoginEvent:
if ( #secuquestion == 0 ) {
mes "Just in case you forget your secondary password. Please set up a security question";
input @secquestion$;
set #questsec$,@secquestion$;
next;
mes "Now give me the answer";
input @secquestion$;
set #questsecans$,@secquestion$;
next;
set #secuquestion,1;
mes "Thank you! You can now reset your secondary password if ever you forget it.";
mes "You will now be disconnected";
close2;
atcommand "@kick "+strcharinfo(0);
end;
}
if ( #secondpass == 0 ) {
mes "We are now requiring that each player have a secondary account password.";
mes "The system indicates that you don't have one yet.";
mes "What would you like your secondary password to be?";
callsub L_SetPass;
set #secondpass,1;
mes "Thanks for setting up your password. You will now be disconnected.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
} else {
mes "Please type in your secondary password or type in 'Forgot' if you can't remember.";
input @secondpass$;
if ( @secondpass$ == "Forgot" ) {
next;
mes "You seem to have forgotten your password.";
mes "Please give me the answer to...";
mes #questsec$;
input @secquestion$;
if ( @secquestion$ != #questsecans$ ) {
mes "That's the wrong answer.";
mes "Please contact a GM for further assistance.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
} else {
next;
mes "Thank you! Please tell me what you want your new secondary password to be..";
callsub L_SetPass;
mes "Thanks for setting up your password. You will now be disconnected.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
}
} else if ( @secondpass$ == #passsec$ ) {
mes "Thank you and have a great day!";
close;
}
mes "You typed in the wrong password.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
}
L_SetPass:
input @secondpass$;
set #passsec$,@secondpass$;
next;
return;
}
Please advise,
Thanks,
following this up please... following this up please...
Question
nesotomayor
Hi All,
Good Day, Seeking for your assistance on how to add mute on the script below upon logging in and remove the mute if the secondary password is correct. because when the player use @go the script is useless, that's why i want to add mute so that he can't warp.
following this up please...
following this up please...
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.