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 ?

 

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

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.