Jump to content
  • 0

@quest command


Question

Posted

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 ! ❤️

2 answers to this question

Recommended Posts

  • 1
Posted (edited)
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
  • 0
Posted

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.

 

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