Jump to content
  • 0

Warp with password Fast help pls!


Question

Posted (edited)

idk if that thing

is already maken but i will try to ask about it

 

--------

 

a warp with a passworrd

when some one stand over it he need to write a password to enter

 

Edited by SpongeBOB

8 answers to this question

Recommended Posts

Posted
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;
}

 

Problem was : if (.@input != .password$)

Should be  if (.@input$ != .password$)

Posted


location,x,y,angle script warp 45,{

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 "Incorrect.!";

close;

}

warp "location",x,y;

end;

}

Posted (edited)

now when i come over it he ask me for the password

but when i write it right or wrong

i just get stunned need to  @refresh to walk

 

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 "Incorrect.!";
		close;
	}
	warp "que_temsky",151,133;
	end;
}

Am still testing it but its not working



any help pls

Edited by SpongeBOB

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