SphereServer BugTracker - SphereServer
View Issue Details
0002208SphereServernew feature requestpublic19-09-13 21:5103-12-13 20:05
Coruja 
XuN 
normalminorN/A
resolvedfixed 
 
 
Not Available
None
None
0002208: Support for the new OSI item durability style
on sphere, the durability property uses the old style (legacy) where the item is destroyed when MORE1L (current durability) reach 0, no matter the MORE1H (max durability) value

OSI doesnt use this style anymore, the new method allow MORE1L reach 0, then keep it 0 and start decreasing MORE1H. And I cant remember if sphere have an internal repair engine, but using the new repair style the MORE1L got maxed to MORE1H and then MORE1H got decreased. Something like this:

[FUNCTION RepairItem]
MORE1H -= 5
MORE1L = <MORE1H>

So the idea is make sphere support this new style. It could replace the old style, or if someone prefer it would be great switch between these 2 styles using a .ini setting
http://www.uoguide.com/Durability [^]
No tags attached.
Issue History
19-09-13 21:51CorujaNew Issue
03-12-13 20:04XuNNote Added: 0001802
03-12-13 20:05XuNStatusnew => resolved
03-12-13 20:05XuNResolutionopen => fixed
03-12-13 20:05XuNAssigned To => XuN

Notes
(0001802)
XuN   
03-12-13 20:04   
Sphere already support this new Durability Style

ON=@Damage
if (<more1l>>0)//If Hits greater than 0
 more1l -- //We take 1 Hitpoint
else //If Hits !greater than 0
 more1h -- //we take 1 Maxhits
 if (<more1h><=0) // if Maxhits Equal or less than 0
  destroy //we destroy the item
 endif
endif


Just add this to any generic typedef for items and you got it working