Jump to content
  • 0

Warp with password


Ezra Edwin

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   3
  • Joined:  01/13/18
  • Last Seen:  

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;
}
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  136
  • Reputation:   48
  • Joined:  06/18/12
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   3
  • Joined:  01/13/18
  • Last Seen:  

just get stuck i cant click anything when i put wrong password

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  136
  • Reputation:   48
  • Joined:  06/18/12
  • Last Seen:  

10 hours ago, Ezra Edwin said:

just get stuck i cant click anything when i put wrong password

Upgrade your SVN

Link to comment
Share on other sites

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...