Page 1 of 1

Reflecct damage cap

Posted: Tue Feb 02, 2010 8:01 pm
by Vinius
L2J Revision Number: 3886
L2JDP Revision Number:6990

Hello, I would like to create a cap for reflect damage. Correct buffs will lead to 150% damge reflected ( some bad arithmetic in core ). Can anyone give me a hand, how to create some maximal value ( f.e. in percentages ) of damage reflected?

Many thanks

Re: Reflecct damage cap

Posted: Sun Feb 07, 2010 1:45 pm
by KaOs2055
there is in model/actor/l2character.java

Re: Reflecct damage cap

Posted: Tue Feb 09, 2010 8:24 am
by Diego Vargas
Retail reflect cap is 99%.

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 12:41 pm
by gmakhs
reflectedDamage = (int) (reflectPercent / 100. * damage);
change this to
reflectedDamage = (int) (reflectPercent / 20. * damage);


will make cap 20%??

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 9:34 pm
by Artour24
gmakhs wrote:reflectedDamage = (int) (reflectPercent / 100. * damage);
change this to
reflectedDamage = (int) (reflectPercent / 20. * damage);


will make cap 20%??
I think that it will make it 500% :) it is simple arithmetic so if you will divide reflect damage percent with a smaller amount than 100 then the result will be bigger .... i think so :)

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 11:09 pm
by gmakhs
so it should be 500???

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 11:17 pm
by Artour24
gmakhs wrote:so it should be 500???
You want to decrease the amount of reflected damage right ? if it so then you have to divide the percentage with a bigger number than 100. For example if you want to make it 50% you have to divide with 200 then the reflected damage from e.g 1000 damage reflected will be 500 ....

Be aware i am not any kind of devs so all what i say above is just my guess, i haven't make any experiments with that but with a mathimatical logic it should be so as i say... why you just don't decrease the reflect damage from skills.xml files ? there is 4 skills that make reflect just find the ID of them and change them ;)

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 11:20 pm
by Artour24
Diego Vargas wrote:Retail reflect cap is 99%.
If i understand right all the topics thema then the most % of damage that can be reflected is 40% with a buff of reflect and the song that give 20% each.... maybe i am wrong again :D

Re: Reflecct damage cap

Posted: Fri Nov 04, 2011 11:53 pm
by gmakhs
im gonna try to test it:P