Page 1 of 1

How to show HP of custom mobs

Posted: Sun Mar 08, 2015 2:12 pm
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?

Re: How to show HP of custom mobs

Posted: Sun Mar 08, 2015 4:20 pm
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)

Re: How to show HP of custom mobs

Posted: Sun Mar 08, 2015 8:41 pm
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...

Re: How to show HP of custom mobs

Posted: Mon Mar 09, 2015 6:25 am
by Sdw
Something not allowed in this forum. iykwim

Re: How to show HP of custom mobs

Posted: Mon Mar 09, 2015 8:58 am
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

Re: How to show HP of custom mobs

Posted: Mon Mar 09, 2015 11:57 am
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.

Re: How to show HP of custom mobs

Posted: Mon Mar 09, 2015 4:23 pm
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.