You would need to read memory or packets (packets are less precise because if I remember correctly there is no incoming packet saying current hp unless you are going offscreen and then back on..)
Then again memory address wouldn't really make that much sense to store hp for each surrounding monster easy, would be a bit of a memory hog <_<
Basically you will need to record monster hp by uid when it is spawned (spawning onscreen or jumping near enough to it to receive the spawn information which contains hp), then reduce the number by tracking all incoming damage information for that uid (which contains the damage amount)
Not a simple task really...
|