Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
57 stars 45 forks source link

ItemHitpointsUpdate doesn't work #1113

Closed DavideRei closed 6 months ago

DavideRei commented 1 year ago

// Time in seconds for Hitpoints update on the item status bar. // Only for clients 7.0.30+ and items with CAN or CANMASK & CAN_I_DAMAGEABLE ItemHitpointsUpdate = 2

.add i_door_metal

.set canmask=can_i_damageable .set maxhits=100 .set hits=100

drag the item to open the status bar

image

.set hits=50

the status bar doesn't get updated, you have to close it and drag again

image

client 7.0.30.0 + needed

xwerswoodx commented 12 months ago

I can confirm that bug because the onTick not ticking for items so ItemHitpointsUpdate not working at all. Also if the item not created with CAN=can_i_damageable canmask at the beginning, it doesn't trigger ItemHitpointsUpdate even once. Probably the issue is same with CAN_O_NOSLEEP (https://github.com/Sphereserver/Source-X/issues/1097) not working after the server reboot while both of them working on worldticker thread.

GladieUO commented 9 months ago

fixed with #1198