HpBar Update

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
energy
Posts: 37
Joined: Tue Jun 24, 2008 2:55 pm

HpBar Update

Post by energy »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Freya:
L2JDP Revision Freya:


Hi,
i have one question maybe someone can help me to find it! i have search but nothing

where is called the HpBar Update for L2Monster ?
i mean where the monster is updating the PixelBar Up or Down

i want to put there some packet but i can't find it.
ty
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: HpBar Update

Post by JIV »

com.l2jserver.gameserver.model.actor.L2Character.broadcastStatusUpdate()
energy
Posts: 37
Joined: Tue Jun 24, 2008 2:55 pm

Re: HpBar Update

Post by energy »

ty jiv but there i think is for player not for Mob!!!

i want to send a AbstractNpcInfo.NpcInfo packet to player every time mobs hp is updated

i have a title on every monster with his HP
now i have it on l2attackable,when i hit mob title is updated but not when i dont hit!

how send npc info to player when he just see the mob?

ty
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: HpBar Update

Post by JIV »

its not used by player, but if you think you know better why you asked? :roll:
energy
Posts: 37
Joined: Tue Jun 24, 2008 2:55 pm

Re: HpBar Update

Post by energy »

JIV wrote:its not used by player, but if you think you know better why you asked? :roll:

i try there to send the packet but not work

anyway ty jiv
User avatar
LasTravel
Posts: 888
Joined: Tue Jan 05, 2010 12:08 am
Location: Spain

Re: HpBar Update

Post by LasTravel »

try npc.updateAbnormalEffect();
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: HpBar Update

Post by JIV »

simply because NpcInfo do not update hp bars.
User avatar
LasTravel
Posts: 888
Joined: Tue Jan 05, 2010 12:08 am
Location: Spain

Re: HpBar Update

Post by LasTravel »

I think he want update the npc/title when no one are attacking him, so when the npc are regenerating his hp he want update too his title with his current hp, you mean this energy?
energy
Posts: 37
Joined: Tue Jun 24, 2008 2:55 pm

Re: HpBar Update

Post by energy »

LasTravel wrote:I think he want update the npc/title when no one are attacking him, so when the npc are regenerating his hp he want update too his title with his current hp, you mean this energy?


yes man! this i mean

now i have it on l2attackable!
when player hit mob title of mob is changed like title is HP=1000 title goes 853 etc.

but its wrong in l2attackable. Must updated when you just see the mob not on hit
example :like i am in hell i see a mob with full HP like 1000 on title !someone attacked it hp goes 853 etc.
when the player goe away or he just stop attacked it title must updated to UP like 853 855 856 etc.
thats my problem
Post Reply