![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 2
|
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);
}
}
if somebody has a better way, please tell me, its really troublesome to seive through the source files looking for one function xD |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
mmmm sry if i´m wrong but this forum isnt a support for l2j servers
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jun 2005
Posts: 2
|
just in case if anyone is using it, since the client modification tools are applies to everybody.
You cant assume everybody that comes here doesnt use L2j now can you. |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
i appreciate u're sharing BUT we don't want this kind of stuff here, it's useless to us and if someone here have a l2j server they would go to l2j web page to get support.
locked |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|