Jump to content
  • 0
Vale

@quest command

Question

Hello, Good Day !

I am just new here and I want to have a @quest command wherein if I type @quest it will go to the quest room.

Thanks in advance ! ❤️

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
32 minutes ago, Vale said:

Hello, Good Day !

I am just new here and I want to have a @quest command wherein if I type @quest it will go to the quest room.

Thanks in advance ! ❤️

🙂

 

-	script	command_quest	-1,{

OnInit:
	bindatcmd("quest",strnpcinfo(3)+"::OnAtcommand",0,99);
	end;
	
OnAtcommand:
	
	if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") {	
	dispbottom "[@quest] : The command cannot be used on this map.";	
	end;
	}
	
	warp "map",x,y;
	end;	
	}


maps that the command cannot be used:

if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") {	


map of the quest room, where the player will be teleported.

	warp "map",x,y;



enjoy.

Edited by Gladius
  • MVP 1
Link to comment
Share on other sites

  • 0

Thanks !

21 hours ago, Gladius said:

🙂

 

-	script	command_quest	-1,{

OnInit:
	bindatcmd("quest",strnpcinfo(3)+"::OnAtcommand",0,99);
	end;
	
OnAtcommand:
	
	if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") {	
	dispbottom "[@quest] : The command cannot be used on this map.";	
	end;
	}
	
	warp "map",x,y;
	end;	
	}


maps that the command cannot be used:

if( strcharinfo(3) == "restrict01" || strcharinfo(3) == "restrict02") {	


map of the quest room, where the player will be teleported.

	warp "map",x,y;



enjoy.

 

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.