L2JMobius

High Five No exp Gain Lv Dif

WereWoofer · 4 · 212

Offline WereWoofer

  • Vassal
  • *
    • Posts: 6
why i cant receive exp on mobs 11 lvls above or below me. how to change it?


Offline WereWoofer

  • Vassal
  • *
    • Posts: 6
why i cant receive exp on mobs 11 lvls above or below me. how to change it?

Help please. it is destroying my server
I want ppl lvl 1 to get exp from mob lvl 85


Online nasseka

  • Inner Circle
  • Distinguished King
  • *****
    • Posts: 1355
    • L2Unknown
why i cant receive exp on mobs 11 lvls above or below me. how to change it?

because that's retail like :D

check calculateExpAndSp() on attackable.java
Discord: NasSeKa`#7122



Offline WereWoofer

  • Vassal
  • *
    • Posts: 6
because that's retail like :D

check calculateExpAndSp() on attackable.java

thx! i find it

Code: [Select]
private double[] calculateExpAndSp(int charLevel, long damage, long totalDamage)
{
final int levelDiff = charLevel - getLevel();
double xp = 0;
double sp = 0;

if ((levelDiff < 11) && (levelDiff > -11))
{
xp = Math.max(0, (getExpReward() * damage) / totalDamage);
sp = Math.max(0, (getSpReward() * damage) / totalDamage);


................