Mobiles don't always die when hp drop to 0 (POL97-2007-01-04

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
Xandros
Expert Poster
Posts: 76
Joined: Fri Feb 17, 2006 12:25 pm

Mobiles don't always die when hp drop to 0 (POL97-2007-01-04

Post by Xandros »

Hi,

we have found a problem in the vital system than can cause
the hitpoints of a mobile to drop to 0, without causing the
mobiles death.

If the current regen rate for the mobiles hitpoints is set to a
slightly negative value, like -800 (e.g. the character is suffering
from a weak poison), then the hitpoints (as shown in the status
window) will drop from 1 to 0, but the character will still be
alive.
We think we have figured out the cause of this problem. We think
the core currently only kills a mobile when GetVital(who, VITALID_LIFE)
drops to 0, although for other purposes, like the status bar/window, the
hitpoints will already be handled as 0 when GetVital(who, VITALID_LIFE)
drops to 99 or less (in other words, it's rounded down).

As a solution, we suggest the core should already kill a mobile when
GetVital(who, VITALID_LIFE) drops below 100.

Thanks,
Xandros
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

FYI this has been a problem for a while. I've had players even under POL 0.95 reach 0 HP and not die.
Locked