Jump to content
  • 0
Sign in to follow this  
Break San

storage block on a map

Question

9 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

Does anyone know how to block storage on a map pvp ? 

 

did u try with mapflag nocommand ?

Edited by exchisu

Share this post


Link to post
Share on other sites
  • 0

 

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 :P

Share this post


Link to post
Share on other sites
  • 0

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;}
Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

 

 

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

 

Edited by Break San

Share this post


Link to post
Share on other sites
  • 0
On 1/8/2015 at 3:59 AM, Break San said:

 

What part as the script can put a msg?

 

@edit

 

command has been blocked on all maps

 

tihs script blocks on all maps

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, CraftNCheez said:

tihs script blocks on all maps

didnt you notice that this thread have more than two years? o.o

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.