Anyways, I use L2J to run a test server for C3, but some of the bosses with high hp would have regen faster than a large group of characters can do damage. (IE: Monsters like lilium Knights etc)
Anyways, i found a way to mod the regen rates in build 218.
Find the formulas.java file in the svn packs, should be in java/net/sf/l2j/gameserver/skills
find the line
public final double calcHpRegen(L2Character char)
and mod the contents, since hp regen is only a problem with monsters wiht high hp, and I didnt want to modify the character regen I just added this:
Code:
public final double calcHpRegen(L2Character cha)
{
if(cha.getMaxHp() > 100000)
{
double init = 0.01*cha.getMaxHp()*cha.getTemplate().baseHpReg;
return cha.calcStat(Stats.REGENERATE_HP_RATE, init, null, null);
}
else
{
double init = cha.getMaxHp()*cha.getTemplate().baseHpReg;
return cha.calcStat(Stats.REGENERATE_HP_RATE, init, null, null);
}
}
Notice the 0.01 added, the modification slowed down monster regen for monsters that has > 100,000 hp.
if somebody has a better way, please tell me, its really troublesome to seive through the source files looking for one function xD