Jump to content
  • 0

Question

Posted

I want warp with password , i tried to copy from another script..
but i get some stuck when the password is incorrect, please help me

 

que_temsky,144,141,0	script	warp	45,2,2,{

OnInit:
	set .password$, "Password";
end;

OnTouch:
	mes "You need a password to enter here.";
	next;
	if(select("Enter Password:Move away.")==2)
		close;
	mes "Enter the password";
	next;
	input .@input$;
	if (.@input$ != .password$)
	{
		mes "^ff0000Incorrect^000000.!";
		close;
	}
	warp "que_temsky",151,133;
	end;
}

4 answers to this question

Recommended Posts

  • 0
Posted
40 minutes ago, Ezra Edwin said:

I want warp with password , i tried to copy from another script..
but i get some stuck when the password is incorrect, please help me

 


que_temsky,144,141,0	script	warp	45,2,2,{

OnInit:
	set .password$, "Password";
end;

OnTouch:
	mes "You need a password to enter here.";
	next;
	if(select("Enter Password:Move away.")==2)
		close;
	mes "Enter the password";
	next;
	input .@input$;
	if (.@input$ != .password$)
	{
		mes "^ff0000Incorrect^000000.!";
		close;
	}
	warp "que_temsky",151,133;
	end;
}

Nothing wrong in your script, I tried it and I can still walk when I put wrong password. Any error in your console?

  • 0
Posted
Spoiler
3 hours ago, Ezra Edwin said:

I want warp with password , i tried to copy from another script..
but i get some stuck when the password is incorrect, please help me

 



que_temsky,144,141,0	script	warp	45,2,2,{

OnInit:
	set .password$, "Password";
end;

OnTouch:
	mes "You need a password to enter here.";
	next;
	if(select("Enter Password:Move away.")==2)
		close;
	mes "Enter the password";
	next;
	input .@input$;
	if (.@input$ != .password$)
	{
		mes "^ff0000Incorrect^000000.!";
		close;
	}
	warp "que_temsky",151,133;
	end;
}

Try replacing close; to end; I tested it on my Server and it works fine.

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...