Jump to content
  • 0

[Request]Help how can i add hp bar to npc?


Question

Posted

I made some custom rb's with drop list everything works nice only my bosses have no hp bar :-\

Plz some1 knows where what to change? Do i need to edit in l2/system folder the NpcName-e file?

5 answers to this question

Recommended Posts

  • 0
Posted

Sorry for pulling an 11 year old post but this is what comes on google when you search for NPC's not showing health bars.

 

It doesn't have to do with L2Monster, but in class AbstractNpcInfo there is this line

_isAttackable = _npc.isAutoAttackable(attacker);

Which checks if the npc instance is attackable. If this is true, than later under writeImpl()...

writeD(_npc.getObjectId());
writeD(_idTemplate + 1000000);
writeD(_isAttackable ? 1 : 0);

If you have a custom class that copies something that was originally L2Npc, or you want all bars visible or not, than you can modify the third writeD. 1 will show the health bar, 0 will not. It will also change the cursor from the sword icon to the conversation one. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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...