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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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