how to disable @go,@warp

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
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.
default_smile.png


 
permissions: { disable_commands_when_dead: true }
Add like this ^ in your group.conf

or I missunderstood the question? O-O

 
Last edited by a moderator:
well, using rathena so ...

you don't have to do source modification too

bindatcmd can overwrite the original atcommand, useful for this operation

Code:
-	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;}
 
Back
Top