Jump to content
  • 0

@quest command


Vale

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/16/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/16/20
  • Last Seen:  

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