Page 1 of 1

Question about vitality calculation

Posted: Sat Sep 03, 2011 9:33 am
by Raikkon35
Hello, I have a question, the vitality calculation includes exp rated?

If this is correct:

Vitality Points Consumed =
( ( (Exp) / (Level^2) )*100 ) / 9
Exp = Base exp gained from mob
Level = Mob level

To understand me better, when server calculate the vitality points that is lost in every mob we kill, it counts the exp base of the mob (1000 for example) or rated (5000 in a 5x)?

Thank you!

Re: Question about vitality calculation

Posted: Sat Sep 03, 2011 10:49 am
by Raikkon35
I tried with exaggerated rates, and it seems the server calculates the experience not rated.

This may be a bug, but can be easily solved with RateVitalityLost/Gain.

Re: Question about vitality calculation

Posted: Sat Sep 03, 2011 4:11 pm
by UnAfraid
com.l2jserver.gameserver.model.actor.L2Npc.getExpReward()
Its rated yes
There is another multiplier about that you can check it here
http://trac.l2jserver.com/browser/branc ... erties#L65

Re: Question about vitality calculation

Posted: Sun Sep 04, 2011 6:04 am
by Raikkon35
The strange thing is that, with the exp rate set to 500000x, the vitality bar is reduced the same as 1x, at least at first appearance.

Thank you for your response :D

Re: Question about vitality calculation

Posted: Sun Sep 04, 2011 10:48 am
by sam.jr
Cz in l2j vitality rate based on damage. Not that formula. Try hit another mob(with diff HP) and you can see difference.

Re: Question about vitality calculation

Posted: Mon Sep 05, 2011 7:39 pm
by Raikkon35
I will try it, but it seems very extrange, the formula that I posted is the retail, thank you :)