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
Reflecct damage cap
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 7
- Joined: Fri Dec 18, 2009 5:30 pm
Re: Reflecct damage cap
there is in model/actor/l2character.java
-
- Posts: 102
- Joined: Wed Dec 10, 2008 9:29 pm
Re: Reflecct damage cap
Retail reflect cap is 99%.
- gmakhs
- Posts: 215
- Joined: Sat Apr 14, 2007 12:00 pm
Re: Reflecct damage cap
reflectedDamage = (int) (reflectPercent / 100. * damage);
change this to
reflectedDamage = (int) (reflectPercent / 20. * damage);
will make cap 20%??
change this to
reflectedDamage = (int) (reflectPercent / 20. * damage);
will make cap 20%??
-
- Posts: 48
- Joined: Fri Sep 17, 2010 7:24 pm
Re: Reflecct damage cap
I think that it will make it 500%gmakhs wrote:reflectedDamage = (int) (reflectPercent / 100. * damage);
change this to
reflectedDamage = (int) (reflectPercent / 20. * damage);
will make cap 20%??


- gmakhs
- Posts: 215
- Joined: Sat Apr 14, 2007 12:00 pm
Re: Reflecct damage cap
so it should be 500???
-
- Posts: 48
- Joined: Fri Sep 17, 2010 7:24 pm
Re: Reflecct damage cap
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 ....gmakhs wrote:so it should 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

-
- Posts: 48
- Joined: Fri Sep 17, 2010 7:24 pm
Re: Reflecct damage cap
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 againDiego Vargas wrote:Retail reflect cap is 99%.

- gmakhs
- Posts: 215
- Joined: Sat Apr 14, 2007 12:00 pm
Re: Reflecct damage cap
im gonna try to test it:P