How to show HP of custom mobs

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

How to show HP of custom mobs

Post by sahar »

I noticed that if I make a custom mob (L2Monster) that uses a template of L2Npc it will not show the HP bar of the mob once targeted...
Is there a way to change it so HP will be shown?
User avatar
Battlecruiser
L2j Veteran
L2j Veteran
Posts: 332
Joined: Thu May 01, 2008 9:44 am

Re: How to show HP of custom mobs

Post by Battlecruiser »

This depends on the original template used for your custom mob, so base your custom mob on an existing mob instead of existing NPC (change displayId to appropriate value)
Git user
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: How to show HP of custom mobs

Post by sahar »

I use displayId, and I want to use lindvior, but its initially declared as L2NPC, and I want to use it as a mob, there's no way to change it so it will show its HP? for sure there iss omething...
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to show HP of custom mobs

Post by Sdw »

Something not allowed in this forum. iykwim
sahar
Posts: 582
Joined: Mon Jun 20, 2011 2:40 pm
Contact:

Re: How to show HP of custom mobs

Post by sahar »

Why not allowed that has nothing to do with client editing of any kind.
i dont have sources in front of me atm but im sure this can be changed by checking if the instance itself is a mob somewhere rather than checking if the template itself is a mob
User avatar
Battlecruiser
L2j Veteran
L2j Veteran
Posts: 332
Joined: Thu May 01, 2008 9:44 am

Re: How to show HP of custom mobs

Post by Battlecruiser »

You must use displayId of something which is originally a mob (the original NPC must have the HP bar) in order to your new NPC have the HP bar.
Git user
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: How to show HP of custom mobs

Post by Sdw »

sahar wrote:Why not allowed that has nothing to do with client editing of any kind.
i dont have sources in front of me atm but im sure this can be changed by checking if the instance itself is a mob somewhere rather than checking if the template itself is a mob
Just listen once in a while, I answered you already.
Post Reply