Page 1 of 1

Large drops in HP with no red damage message

Posted: 10 Apr 2008, 12:36
by Sanga
Sometimes while fighting, HP will drop by a large amount, but there's no corresponding red damage message to show why.

I chased this one down - the root problem is that when the server determines that a "critical" hit has occurred, the message is sent to the client with a type of 0x0a, rather than the type of 0 for a normal hit. The current eAthena client does not interpret this type, and so no red damage message is generated.

(From what I can tell, a "critical" hit is always for the max damage that the creature can deliver, hence the large drop)

The question is: fix it in the client (adding one line to "src/net/beinghandler.cpp"), or in the eAthena server (changing three lines in "src/map/battle.c")? A change to the client is simpler, but until everyone updates to the new version the issue won't really be resolved.

Re: Large drops in HP with no red damage message

Posted: 10 Apr 2008, 13:10
by Crush
That's definitely something which should be fixed client-sided.

Which monster can you suggest for testing?

Re: Large drops in HP with no red damage message

Posted: 10 Apr 2008, 13:16
by Sanga
Crush wrote:That's definitely something which should be fixed client-sided.

Which monster can you suggest for testing?
I used the Flowers - they seem to throw a fairly large number of criticals (I've seen this from other monsters, but the Flowers seem to do so fairly regularly). Try it with level 30ish character with best-available armor, but no weapon equipped so you only do 1 point of damage even when you do hit, and the flower's normal hits do little damage.

Re: Large drops in HP with no red damage message

Posted: 10 Apr 2008, 15:06
by Crush
Fixed in latest SVN.