Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 29.06.2005, 23:50   #1
Undeady
Архивный участник
 
Join Date: Jun 2005
Posts: 2
Default 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
Undeady is offline  
Old 30.06.2005, 02:23   #2
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

mmmm sry if i´m wrong but this forum isnt a support for l2j servers
SoaPy is offline  
Old 30.06.2005, 02:39   #3
Undeady
Архивный участник
 
Join Date: Jun 2005
Posts: 2
Default

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.
Undeady is offline  
Old 30.06.2005, 02:50   #4
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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
Sauron is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:54.