[Question]Skill Calculation

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
xapubg
Posts: 6
Joined: Sat May 29, 2010 12:11 pm

[Question]Skill Calculation

Post by xapubg »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 4420
L2JDP Revision Number:7668
Hello everyone,
i have noticed that almost all skills that use a peercent values has wrong calculation ...
For example Bless the Body lvl6 is suppose to icrease max HP by 35%, but it increse only ~ 21.5%
And its not the only skill that do a wrong calculation :(
My question is :
It is normal for L2j or I am doing something wrong ?

sory for my english
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Question]Skill Calculation

Post by _DS_ »

Second.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
xapubg
Posts: 6
Joined: Sat May 29, 2010 12:11 pm

Re: [Question]Skill Calculation

Post by xapubg »

_DS_ wrote:Second.
Also I have tryed to add some custom stats to Tattoo of Power for example, I add that line in 0400-499.XML:
<mul order="0x30" stat="pAtk" val = "1.2"/>
it suppose to add 20% pAtk, but in game calculation was wrong.
then i changed it like this:
<basemul order="0x40" stat="pAtk" val = "1.12"/>
calculation right ...
That was just for test I hope that can help you resolve the problem
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Question]Skill Calculation

Post by _DS_ »

Search forum for xml parameters and stack order definition.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
xapubg
Posts: 6
Joined: Sat May 29, 2010 12:11 pm

Re: [Question]Skill Calculation

Post by xapubg »

_DS_ wrote:Search forum for xml parameters and stack order definition.
Man I have read them allready, that I mean is why skill/buff bonuses is calcutated wrong the Tattoo was only example !
Do you mean that the DP developers need to read them too ?
Sory if I take You wrong but you can try my point very easy:
take your HP then go to calc please and do yourHP+35% apply Bless the Body lv6 (what I am tested), then compare youHP and the calculated value ...
you can try this with Focus too, and some songs

sory if I am in the wrong section or I can't explain clear ... its all form my bad english
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [Question]Skill Calculation

Post by janiii »

you cannot say it is wrong, when you dont know how it is on retail.

it is calculated the right way, depends when the multiplication is done, so it depends on the order definition of the function and also if base values are used for calculation.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: [Question]Skill Calculation

Post by _DS_ »

WS 76 lvl, 5863 MaxHp
Casting Blessed Body (1045) lvl6 (+35%). MaxHp now 7775, should be 7915 !!!!!!11111
OMG, where is my HP ? Give my HP back, you noobs !

Examining passives, found Boost HP lvl8 (+400).
5863 - 400 = 5463
5463 / 100 = 54.63
54.63 * 35 = 1912
5463 + 1912 = 7375
7375 + 400 = 7775.

Topic closed, nothing to discuss here. If you found some skill with invalid stackorder - post in in the datapack section.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply