Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Pass2 -1,{
- OnPCLoginEvent:
- if(getgmlevel()<90) end;
- set inputcheck,0;
- addtimer 500, strnpcinfo(3)+"::On_Cancel";
- if( #SecondPassword$ == "" ) {
- mes "It's the first time you log in";
- callfunc("SetSecondPassword");
- }else {
- mes strcharinfo(0) + ", please input your 2nd password to continue playing...";
- input .@input$;
- if( .@input$ != #SecondPassword$ )
- atcommand "@kick "+strcharinfo(0);
- else {
- mes "Your password is correct. Choose what to do";
- if( select("Play:Change Password") == 1){
- set inputcheck,1;
- close;
- }else {
- callfunc("SetSecondPassword");
- set inputcheck,1;
- close;
- }
- }
- end;
- }
- On_Cancel:
- if(!inputcheck)goto OnPCLoginEvent;
- end;
- }
- function script SetSecondPassword {
- mes "Please enter the second password you wish to use.";
- input .@pass$;
- mes "Is ^ff0000" + .@pass$ + "^000000 correct?";
- if( select( "No:Yes" ) == 1 )
- return;
- else {
- set #SecondPassword$, .@pass$;
- mes "Your second password has been set to [^ff0000" + #SecondPassword$ + "^000000]";
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement