Jump to content
  • 0

Secondary Password Adding Mute


nesotomayor

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.02
  • Content Count:  122
  • Reputation:   0
  • Joined:  06/08/14
  • Last Seen:  

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.

 

- script Login_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...
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...