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

My friend told me i have to edit the dat file in client system folder. So i can add hp bar to npc and remove hp bar from like buffer who got mob skin

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock