Jump to content
  • 0

Question

Hi,

 

I wonder if it's possible to block an item just in a certain map. Just like the code bellow from map_zone_db.conf, but just for a map. Is it possible or I would have to create an NPC to do not let players with this item on the map?

 

 

	disabled_items: {		Wing_Of_Fly: true	}

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Yes. Just make sure you added the mapflag
 

{	name: "Event"		disabled_items: {		Yggdrasilberry: true		Leaf_Of_Yggdrasil: true	}}
//Eventsquiz_02	mapflag	zone	Eventquiz_01	mapflag	zone	Event

Share this post


Link to post
Share on other sites
  • 0

 

Yes. Just make sure you added the mapflag

 

{	name: "Event"		disabled_items: {		Yggdrasilberry: true		Leaf_Of_Yggdrasil: true	}}
//Eventsquiz_02	mapflag	zone	Eventquiz_01	mapflag	zone	Event

Even with this the merchants can enter in the pvp arena with the item Yggdrasil. They put it in their cart...is there anyway to block the item in their cart?

Share this post


Link to post
Share on other sites
  • 0

 

 

Yes. Just make sure you added the mapflag

 

{	name: "Event"		disabled_items: {		Yggdrasilberry: true		Leaf_Of_Yggdrasil: true	}}
//Eventsquiz_02	mapflag	zone	Eventquiz_01	mapflag	zone	Event

Even with this the merchants can enter in the pvp arena with the item Yggdrasil. They put it in their cart...is there anyway to block the item in their cart?

They can bring and use it but it wont have any effect.

Share this post


Link to post
Share on other sites
  • 0
// Will disabled consumables (disabled by map_zone_db.conf) be consumed when trying to use them?// 1 (official): yes// 0: noitem_restricted_consumption_type: 1// Unequip the equipments that has disabled by map_zone_db.conf ?// 0 : disabled equipments and cards are nullify (official)// 1 : disabled equipments are unequip, disabled cards are nullify// 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip// 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2)unequip_restricted_equipment: 0

https://github.com/HerculesWS/Hercules/blob/master/conf/battle/items.conf

Share this post


Link to post
Share on other sites
  • 0

It's still not working.

 

Script:

 

//Noygg Eventpvp_n_6-5	mapflag	zone	Noyggpvp_n_6-5	mapflag	zone	Noygg

 

MapZoneDB:

 

{	name: "Noygg"		disabled_items: {		Yggdrasil_Seed_Box: true		Underripe_Yggseed: true		Dried_Yggdrasilberry: true		Leaf_Of_Yggdrasil: true		Seed_Of_Yggdrasil: true		Yggdrasilberry: true	 }},
Edited by Yoh Asakura

Share this post


Link to post
Share on other sites
  • 0

I tried to add a npc to block the item but it's still possible to bring the item in the cart (with merchant and alchemist)

Is there anyway to block the item inside the cart?

 

@edit

Maybe I can add a script that checks each second if a player has this item, this way, when they pick the item from the cart the script will detect.

Who can do the edition to me?

 

Like the AFK script, but this one to check an item in the inventory...

Edited by Yoh Asakura

Share this post


Link to post
Share on other sites
  • 0

I tried to add a npc to block the item but it's still possible to bring the item in the cart (with merchant and alchemist)

Is there anyway to block the item inside the cart?

 

@edit

Maybe I can add a script that checks each second if a player has this item, this way, when they pick the item from the cart the script will detect.

Who can do the edition to me?

 

Like the AFK script, but this one to check an item in the inventory...

 

even the whatever class bring the ygg in the cart they won't be able to use it, that mean your purpose served and don't forget set the items.conf as @@Emistry said above

 

 

// Will disabled consumables (disabled by map_zone_db.conf) be consumed when trying to use them?// 1 (official): yes// 0: noitem_restricted_consumption_type: 1// Unequip the equipments that has disabled by map_zone_db.conf ?// 0 : disabled equipments and cards are nullify (official)// 1 : disabled equipments are unequip, disabled cards are nullify// 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip// 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2)unequip_restricted_equipment: 0

https://github.com/HerculesWS/Hercules/blob/master/conf/battle/items.conf

 

item_restricted_consumption_type: 0 // so your player won't feel scamed using item without feeling the effect

Share this post


Link to post
Share on other sites
  • 0

 

I tried to add a npc to block the item but it's still possible to bring the item in the cart (with merchant and alchemist)

Is there anyway to block the item inside the cart?

 

@edit

Maybe I can add a script that checks each second if a player has this item, this way, when they pick the item from the cart the script will detect.

Who can do the edition to me?

 

Like the AFK script, but this one to check an item in the inventory...

 

even the whatever class bring the ygg in the cart they won't be able to use it, that mean your purpose served and don't forget set the items.conf as @@Emistry said above

 

// Will disabled consumables (disabled by map_zone_db.conf) be consumed when trying to use them?// 1 (official): yes// 0: noitem_restricted_consumption_type: 1// Unequip the equipments that has disabled by map_zone_db.conf ?// 0 : disabled equipments and cards are nullify (official)// 1 : disabled equipments are unequip, disabled cards are nullify// 2 : disabled equipments are nullify, disabled cards will caused the equipment to unequip// 3 : disabled equipments are unequip, disabled cards will caused the equipment to unequip (1+2)unequip_restricted_equipment: 0

https://github.com/HerculesWS/Hercules/blob/master/conf/battle/items.conf

 

item_restricted_consumption_type: 0 // so your player won't feel scamed using item without feeling the effect

 

Already did that but it's still possible to use the item.

Share this post


Link to post
Share on other sites
  • 0

not sure why, but i have used it since along ago and it was fine for me, if it were bug maybe you have to report it to dev

Share this post


Link to post
Share on other sites
  • 0

not sure why, but i have used it since along ago and it was fine for me, if it were bug maybe you have to report it to dev

Solved. Thank you.

Edited by Yoh Asakura

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.