How to remove item durability? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: How to remove item durability? (/Thread-How-to-remove-item-durability) |
How to remove item durability? - amonvangrell - 12-30-2016 03:55 PM Hi All long time no see.. Hey I was wonder if someone can help me to turn off this feature. My equipment now get destroyed after some use... The only thing I could find is the msgs inside Sphere_Msg.scp: Code: //item_dmg_damage1 "You damage %s's %s" thanks! RE: How to remove item durability? - Leonidas - 12-30-2016 04:36 PM I've been trying to figure this out as well. Everytime you get hit it says "Your blah may have been damaged", i dont want to disable it but where can you decrease the chance of this message popping up? RE: How to remove item durability? - darksun84 - 12-30-2016 07:59 PM LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor). RE: How to remove item durability? - amonvangrell - 12-31-2016 05:24 AM (12-30-2016 07:59 PM)darksun84 Wrote: LOCAL.ItemDamageChance (value range: 0~100) on triggers @Hit (weapon) / @GetHit (armor). I could not find inside my sphere, anything mentioned. Not: LOCAL.ItemDamageChance or ItemDamageChance Under @Hit or @GetHit there is only normal or custom codes. Nothing with the mentioned ItemDamageChance. RE: How to remove item durability? - darksun84 - 12-31-2016 05:29 AM You have to add them in your @hit/@gethit triggers: ON=@Hit local.ItemDamageChance = 0 ON=@GetHit local.ItemDamageChance = 0 RE: How to remove item durability? - amonvangrell - 12-31-2016 06:33 AM oh Thanks! So I imagine that this is hardcoded... :/ wonder if this would work in itemdef t_weapon? this did not worked... Code: [TYPEDEF t_armor] Any idea how to implement this change to all items? RE: How to remove item durability? - darksun84 - 12-31-2016 07:38 AM @Hit and @GetHit are character triggers, not items trigger. Create two new events and put them in a .scp file Code: [EVENTS e_NoDamage_Npc] Open Sphere.ini and add the name of the event in the following lines // Events related to all NPCs EventsPet=e_NoDamage_Npc // Events related to all players EventsPlayer=e_NoDamage_Player RE: How to remove item durability? - amonvangrell - 12-31-2016 08:07 AM Thank you!!! RE: How to remove item durability? - Soulless - 01-26-2017 12:55 PM It does seem like things get damaged rather quickly, perhaps a bit too quick. |