Jump to content
  • 0
Sign in to follow this  
dfabsgwapings

equipment restriction

Question

10 answers to this question

Recommended Posts

  • 0

Make use of the map_zone_db.conf to disable specific items on specific map.

Note that you can add your own zones, apply certain restrictions and call the zone you created by using "mapflag".

Share this post


Link to post
Share on other sites
  • 0

@Legend

Can you please help me out on how to use the map_zone_db.conf? I really dont understand how to use it.

 

Let say I want to restrict the player by wearing the Angra Manyu to ordeal_1-2 map.

Or if the player enters the map while wearing it, the Angra Manyu will automatically unequip to the player and they will not be able to equip it as long as the player is inside the map.

 

Please help me out on how how to do this..

Share this post


Link to post
Share on other sites
  • 0

according to Legend also by reading this article http://herc.ws/board/topic/302-introducing-hercules-map-zone-database/ I can disable a specific item to a map. Yes it's right, it's perfectly working BUT why is it only disabling the usable items? What about an equipment? a headgears? or any wearable items? Are they not allowed to be disabled?

 

This is what I did

 

On  map_zone_db.conf 

{
	name: "Not Allowed"

	disabled_items: {
		Greed_Scroll: true,
		ID1101: true // Sword
	}
}

I even tried this

{
	name: "Not Allowed"

	disabled_items: {
		Greed_Scroll: true,
		Sword: true // Sword
	}
}

and in zone.txt

ordeal_1-2	mapflag	zone	Not Allowed

This one is only disabling the Greed_Scroll but not the Sword or any equippable items.

I tried to change the Sword to Red_Potion

And both items are starting to be restricted (Greed_Scroll and Red_Potion)

 

Why the map_zone_db.conf is not disabling those equippable items?

Is there a way to restrict an equippable item or NONE?

 

Hope someone can answer this one SPECIAL THOSE STAFF of Hercules...

Edited by dfabsgwapings

Share this post


Link to post
Share on other sites
  • 0

Why the map_zone_db.conf is not disabling those equippable items?

Is there a way to restrict an equippable item or NONE?

 

I can confirm this too...

Equippable items can't be restricted even with map_zone_db, well i thought t'was working properly.

 

So I made an alternative script

Link: http://upaste.me/b63938928ba159ff3

Please do report if you found bugs regarding to that script.

 

Edit: Oops, found a bug.

Script updated with the same link!  :P

Edited by Legend

Share this post


Link to post
Share on other sites
  • 0

Thanks Legend its working fine... I hope the Developers of Hercules can include equipments being restricted by using the map_zone_db.conf


@Legend

 

I just have a little suggestion. Instead of warping the character out of the map is it possible to just automatically unequip the item when the player tries to use it?

Share this post


Link to post
Share on other sites
  • 0

Thanks Legend its working fine... I hope the Developers of Hercules can include equipments being restricted by using the map_zone_db.conf

 

No prob. You can submit this issue regarding the map_zone_db bug on Herc Github: https://github.com/HerculesWS/Hercules/issues

 

 

 

I just have a little suggestion. Instead of warping the character out of the map is it possible to just automatically unequip the item when the player tries to use it?

 

So I modified the script to suit with your request  ;)

Same Link: http://upaste.me/b63938928ba159ff3

 

Please do report if you found bugs.

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.