Jump to content
  • 0
Sign in to follow this  
ThyroDree

how to disable @go,@warp

Question

how to disable @go,@warp because i test @die and @go 0 and the character is alive o-o i want if a character is dead and type @go 0 or any warps he/she will be warped but it is still dead. :)

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
	permissions: {		disable_commands_when_dead: true	}

Add like this ^ in your group.conf

 

 

or I missunderstood the question? O-O

Share this post


Link to post
Share on other sites
  • 0

well, using rathena so ...

 

you don't have to do source modification too

bindatcmd can overwrite the original atcommand, useful for this operation

-	script	kdjhfksjfhs	-1,{OnInit:	bindatcmd "go", strnpcinfo(0)+"::Onaaa";	bindatcmd "rura", strnpcinfo(0)+"::Onaaa";	bindatcmd "warp", strnpcinfo(0)+"::Onaaa";	bindatcmd "mapmove", strnpcinfo(0)+"::Onaaa";	end;Onaaa:	if ( !Hp ) {		message strcharinfo(0), "You can't use "+ .@atcmd_command$ +" when you are dead";		end;	}	atcommand .@atcmd_command$ +" "+ implode( .@atcmd_parameters$, " " );	end;}

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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