Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Help (https://postpacific.mmorpg-game.online/forumdisplay.php?f=37)
-   -   ≈ For L2J users, way to lower Hp Regen for Bosses (https://postpacific.mmorpg-game.online/showthread.php?t=1059)

Undeady 29.06.2005 23:50

For L2J users, way to lower Hp Regen for Bosses
 
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

SoaPy 30.06.2005 02:23

mmmm sry if i´m wrong but this forum isnt a support for l2j servers

Undeady 30.06.2005 02:39

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.

Sauron 30.06.2005 02:50

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


All times are GMT. The time now is 22:50.