equipment restriction

dfabsgwapings

New member
Messages
165
Points
0
Github
dfabsgwapings
Hi everyone how can I restrict a player to equip a specific gears or weapons to a map? please help me out

 
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".

 
@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..

 
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...

 
Last edited by a moderator:
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! 
default_tongue.png


 
Last edited by a moderator:
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?

 
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 
default_wink.png


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

Please do report if you found bugs.

 
Back
Top