Hi guys, I'm doing a MMORPG server and since I can't find plugins to change the durability of the items, it seemed like a good idea to make certain items have "chance%" to cancel the damage event of the event-item so that the items last longer Here is an example of what I want to do.
The code does not give errors, but it does not fulfill the function that I want !.
Only this way it works but cancels the damage of all items, not just the specific item:
So .. how do I detect item damage for a specific item? Or is there some other way to change the durability of the items? Thank you
Code:
on item damage:
if item is a stone sword:
chance of 50%:
cancel event
The code does not give errors, but it does not fulfill the function that I want !.
Only this way it works but cancels the damage of all items, not just the specific item:
Code:
on item damage:
chance of 50%:
cancel event
So .. how do I detect item damage for a specific item? Or is there some other way to change the durability of the items? Thank you