ServUO Version
Publish 57
Ultima Expansion
Time Of Legends
I know this is probably an easy solution, however I am not expert coder and I can't figure out for the life of me how to make a new item with a durability level of say "indestructible".

I've tried many different things and come up with errors.

What am I missing?

It works find if you set this after the item is created in game. However I want the item to have this when created.

1658075680007.png

Thanks in advance.
 
Sorry, do this;

WeaponDurabilityLevel = WeaponDurabilityLevel.Indestructible;

Note though, that this doesn't actually make the weapon indestructible but is a durability modifier which will add the most amount of min/max hit points to a weapon.
 
Glad you got it, wasn't sure exactly what it is on ServUO, especially in the later pubs. I am used to older RunUO releases. :p
 
Back