Question about vitality calculation

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Question about vitality calculation

Post 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!
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: Question about vitality calculation

Post 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.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Question about vitality calculation

Post 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
Image
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: Question about vitality calculation

Post 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
User avatar
sam.jr
Posts: 258
Joined: Wed Feb 02, 2011 6:23 am
Location: Russia

Re: Question about vitality calculation

Post 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.
== ==
User avatar
Raikkon35
Posts: 178
Joined: Sat Mar 08, 2008 2:54 pm

Re: Question about vitality calculation

Post by Raikkon35 »

I will try it, but it seems very extrange, the formula that I posted is the retail, thank you :)
Post Reply