Page 1 of 1
[Question]Skill Calculation
Posted: Mon Oct 11, 2010 12:03 pm
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
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 12:11 pm
by _DS_
Second.
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 12:28 pm
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
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 2:05 pm
by _DS_
Search forum for xml parameters and stack order definition.
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 2:32 pm
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
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 2:52 pm
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.
Re: [Question]Skill Calculation
Posted: Mon Oct 11, 2010 3:12 pm
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.