storage block on a map

Does anyone know how to block storage on a map pvp ? 
did u try with mapflag nocommand ?
but it will block every command and he wants to block only @storage
default_tongue.png


 
Well just want @storage @gstorage
you can use bindatcmd command to override the existing command

for example

Code:
-	script	asdfjkl	-1,{	end;OnInit:    	bindatcmd "storage", strnpcinfo(0)+"::OnAtcommand";	bindatcmd "guildstorage", strnpcinfo(0)+"::OnAtcommand";    	bindatcmd "gstorage", strnpcinfo(0)+"::OnAtcommand";    	end;OnAtcommand:	if( strcharinfo(3) == "YOUR MAP")		end;	atcommand .@atcmd_command$;	end;}
 
Last edited by a moderator:
Well just want @storage @gstorage
you can use bindatcmd command to override the existing command
for example

- script asdfjkl -1,{ end;OnInit: bindatcmd "storage", strnpcinfo(0)+"::OnAtcommand"; bindatcmd "guildstorage", strnpcinfo(0)+"::OnAtcommand"; bindatcmd "gstorage", strnpcinfo(0)+"::OnAtcommand"; end;OnAtcommand: if( strcharinfo(3) == "YOUR MAP") end; atcommand .@atcmd_command$; end;}
What part as the script can put a msg?

@edit

command has been blocked on all maps

 
Last edited by a moderator:
oh I thought using map_zone is more formal?

{ /* PvP zone is applied to all maps with a pvp mapflag */ name: "PvP" /* changing this name requires MAP_ZONE_PVP_NAME to also be changed in src/map/map.h file */ disabled_skills: { BS_GREED: "PLAYER" CG_HERMODE: "PLAYER" } disabled_items: { Greed_Scroll: true } mapflags: ( "nocashshop", ) disabled_commands: { storage: 2 <~~~ makes @storage be used in PVP maps only by those group lv 2 and above } }, 
Assuming your default group for players is set to 0, on conf/groups.conf

 
Back
Top