Jump to content
  • 0

Monsters HP multiplier (*2 *4 *5...)


Question

Posted

Hi all,

 

I need some help. Can't find anywhere how to change monster HP multiplier to *1.

I'm managing all monster stats myself on HeidiSQL but there is no option to change HP multiplier.

Some monsters I need have their HP *2 *4 or *5. I need to change to *1 all of them.

Any tutorial how to do it? 

 

Ty.

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
1 hour ago, rtcxool said:

Thank you for your reply.

Sorry for posting in wrong section.

Your answer didn't helped me out actually. See I'm not using java. I'm managing only through base datapack files and SQL. 

I thought it should be some option on section where I can manage it from outside of java. But it's not.

 

If the base HP stat is in sql simply make a query which multiply the value of their stat. 

Here i made you an example query:

 

UPDATE items 
SET items.count = items.count * 10 
WHERE items.owner_id = '268481377' 
AND items.object_id = '268481516';

 

Basically what i do here is that i multiply and update the count by 10.

You can use that in your database without WHERE (if you don't want specific checks)

 

Now if your npc information is in XML you can search how to replace using patterns in Notepad++ to read the base HP info and multiply it in all templates

 

 

Edited by Kara
  • 0
Posted (edited)

Some packs have that implemented, like mobius. Check configs or custom configs. If u don't ur pack doesn't have it then do what ppl before me said. 

 

Also if it's not in ur pack you can do Mobius pack na d ask someone to adapt it for ur project. 

 

Or like Tryskel said create a passive skill can't get simpler than that. You can just add the skill on mobs you want and not on every mob.

Edited by Drazeal
  • 0
Posted (edited)
28 minutes ago, rtcxool said:

Hi all,

 

I need some help. Can't find anywhere how to change monster HP multiplier to *1.

I'm managing all monster stats myself on HeidiSQL but there is no option to change HP multiplier.

Some monsters I need have their HP *2 *4 or *5. I need to change to *1 all of them.

Any tutorial how to do it? 

 

Ty.

 

You can set a config as multiplier in their base HP. In L2J for instance their base HP is in L2CharTemplate.java -> getBaseHpMax() or you can simply go to CharStat.java and modify this method:

 

public int getMaxHp()
{
	return (int) calcStat(Stats.MAX_HP, _activeChar.getTemplate().getBaseHpMax());
}

 

to

 

public int getMaxHp()
{
	return (int) calcStat(Stats.MAX_HP, _activeChar.getTemplate().getBaseHpMax() * Config.NPC_HP_MULTIPLIER);
}

 

So basically you can do it in multiple ways. You can also adjust their overall  MAX_HP result

 

Also wrong section. This is not L2J Help section. Next time look where you are posting at least.

Edited by Kara
  • 0
Posted

Thank you for your reply.

Sorry for posting in wrong section.

Your answer didn't helped me out actually. See I'm not using java. I'm managing only through base datapack files and SQL. 

I thought it should be some option on section where I can manage it from outside of java. But it's not.

Guest
This topic is now closed to further replies.
×
×
  • Create New...