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.


  • Posts

    • A widespread proxy service, operating through hijacked devices, has been shut down in a cross-industry effort led by Google. The network, known as IPIDEA, functioned by secretly converting millions of personal devices into proxies for malicious actors. The Mechanism of the Scheme The operation distributed hidden code within seemingly legitimate free apps and VPN services. Once installed, this code enrolled the user’s device into a pool of residential IP addresses. These addresses were then sold anonymously, primarily to cybercriminal and state-sponsored groups, to mask the origin of attacks, fraud, and espionage. Key impacts of the network included: Facilitating operations for more than 550 identified threat actors. Exposing unsuspecting device owners to potential legal and security risks by associating their IP addresses with criminal traffic. The Takedown Strategy Google and its partners disrupted the service by: Seizing core operational domains. Using Google Play Protect to detect and remove malicious applications. Coordinating with infrastructure providers to prevent the network from reestablishing itself. The action highlights the necessity of continuous user awareness, developer diligence in code reviews, and proactive industry cooperation to maintain cybersecurity. Front Companies Associated with IPIDEA IPIDEA masked its activities under various brand names, such as: Proxy Brands: 360 Proxy, 922 Proxy, Luna Proxy, IP2World, ABC Proxy. VPN Brands: Door VPN, Radish VPN, Galleon VPN. SDK Brands: PacketSDK, HexSDK (the toolkits used to embed proxy code).   Choosing Ethical Proxy Services Alternatives For lawful purposes like market research, ad verification, or data aggregation, selecting a transparent and consensual provider is essential. Reputable services obtain explicit user permission for their networks and enforce strict compliance measures. Examples of Established Providers: Bright Data: A leading, consent-based residential proxy network. Oxylabs: Provides large-scale proxy solutions for enterprise needs. MoMoProxy: Maintains a large pool of residential IPs for tasks like web scraping.   Only $850/1TB.  https://momoproxy.com   Identifying a Legitimate Provider: A trustworthy service will typically demonstrate: Informed Consent: Networks are built with the clear agreement of participants. Robust Compliance: Proactive systems to prevent abuse and respect website terms. Operational Transparency: Public-facing policies, identifiable corporate structure, and genuine customer support. Conduct thorough due diligence. Opt for providers that are clear about their IP sources and maintain strong anti-abuse policies, ensuring your legitimate activities do not inadvertently support harmful operations.
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..