Jump to content
Returning Members: Password Reset Required ×

Regarding the issue with the health bar displayed above the character's head.


Recommended Posts

Posted

Guys, I have a question: how do I display a character's health bar above their head? Do I need to modify the distribution package or reverse engineer the client?Does anyone have relevant information?

Posted

I don't think this is trivial to do. You would have to create several hooks in order to do this in full. It's not something I've done personally, but if I had to guess ... you'd probably want hooks for getting that data from MsgUserInfo (for yourself), MsgUserAttrib, and MsgInteract (I can't remember if damage is deducted automatically from MsgInteract messages). You'd also have to modify the server to send current HP (which is only done for monsters, usually). And then you'd have to hook around setting the client's flag for showing the health bar (usually only enabled for monster roles). I don't think that takes guild names into account though... so it might overlap unless you change the GUI to move all those names up or something. Again, not really trivial to do.

Posted

I believe the client has already reserved the space and code for the health bar, but I don't know how to trigger it. I need to reverse engineer the client, but my reverse engineering skills are insufficient to find the call location. How are they implemented? I've reverse engineered some clients with health bars before but didn't find anything unusual, probably due to my lack of skills.

4 hours ago, Spirited said:

I don't think this is trivial to do. You would have to create several hooks in order to do this in full. It's not something I've done personally, but if I had to guess ... you'd probably want hooks for getting that data from MsgUserInfo (for yourself), MsgUserAttrib, and MsgInteract (I can't remember if damage is deducted automatically from MsgInteract messages). You'd also have to modify the server to send current HP (which is only done for monsters, usually). And then you'd have to hook around setting the client's flag for showing the health bar (usually only enabled for monster roles). I don't think that takes guild names into account though... so it might overlap unless you change the GUI to move all those names up or something. Again, not really trivial to do.

 

Posted
On 3/18/2026 at 6:18 PM, Airplist said:

I believe the client has already reserved the space and code for the health bar, but I don't know how to trigger it. I need to reverse engineer the client, but my reverse engineering skills are insufficient to find the call location. How are they implemented? I've reverse engineered some clients with health bars before but didn't find anything unusual, probably due to my lack of skills.

 

Oh yeah, maybe... 🤔 I was thinking you might have to set it. But maybe it gets set for players as well if the field is provided. Not sure how that works for yourself, though.

Posted
On 3/18/2026 at 10:18 PM, Airplist said:

I believe the client has already reserved the space and code for the health bar, but I don't know how to trigger it. I need to reverse engineer the client, but my reverse engineering skills are insufficient to find the call location. How are they implemented? I've reverse engineered some clients with health bars before but didn't find anything unusual, probably due to my lack of skills.

 

As Spirited said, it need to be patched.

Health bars will only be displayed on certain ID range. Also, depending on the version you might need to spam the 10017 packet (unsure) because for some reason instead of calculating from the skill and attack packets, they decided to update the health bar only when he gets the packet.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...