Jump to content
  • 0

Question

Posted (edited)

    <skill id="341" levels="1" name="Touch of Life">
        <set name="hpConsume" val="1215"/>
        <set name="power" val="50"/>
        <set name="target" val="TARGET_ONE"/>
        <set name="skillType" val="HEAL_PERCENT"/>
        <set name="magicLvl" val="78"/>
        <set name="operateType" val="OP_ACTIVE"/>
        <set name="castRange" val="40"/>
        <set name="effectRange" val="400"/>
        <set name="reuseDelay" val="1200000"/>
        <set name="hitTime" val="1800"/>
        <set name="aggroPoints" val="810"/>
        <for>
            <effect count="120" name="HealOverTime" time="1" val="50" stackOrder="1" stackType="touch_of_life">
                <mul order="0x30" stat="gainHp" val="1.3"/>
                <mul order="0x30" stat="cancelVuln" val="0.7"/>
                <mul order="0x30" stat="debuffVuln" val="0.7"/>
            </effect>
        </for>
    </skill>

 

for example what i have to add to this skill script to make it available only in olympiad? 

Edited by dramaa93

8 answers to this question

Recommended Posts

  • 0
Posted (edited)
On 2/4/2021 at 6:35 AM, dramaa93 said:

    <skill id="341" levels="1" name="Touch of Life">
        <set name="hpConsume" val="1215"/>
        <set name="power" val="50"/>
        <set name="target" val="TARGET_ONE"/>
        <set name="skillType" val="HEAL_PERCENT"/>
        <set name="magicLvl" val="78"/>
        <set name="operateType" val="OP_ACTIVE"/>
        <set name="castRange" val="40"/>
        <set name="effectRange" val="400"/>
        <set name="reuseDelay" val="1200000"/>
        <set name="hitTime" val="1800"/>
        <set name="aggroPoints" val="810"/>
        <for>
            <effect count="120" name="HealOverTime" time="1" val="50" stackOrder="1" stackType="touch_of_life">
                <mul order="0x30" stat="gainHp" val="1.3"/>
                <mul order="0x30" stat="cancelVuln" val="0.7"/>
                <mul order="0x30" stat="debuffVuln" val="0.7"/>
            </effect>
        </for>
    </skill>

 

for example what i have to add to this skill script to make it available only in olympiad? 

 

There are 2 ways to proceed. 

 

Either you create a new condition which you gonna do it your self after spend few times in some skills that has conditions such as SEX, RACE, MOUNT e.t.c, or you gonna create a new

 

<set name="olympiadRestricted" val="true" /> 

 

then go inside Skill.java where it parse the structure (you can search for ex. hpConsume to see how it's done), create a new boolean read it as

 

public boolean isOlympiadRestricted()
{
  return _olympiadRestricted;
}

 

and then you have to find the method that does casting check (in L2J  is the following in L2PcInstance.java)

 

public boolean checkDoCastConditions

 

and add your own check, for example

 

if (activeChar.isInOlympiad() && skill.isOlympiadRestricted())
{
   return false;
}

 

Edited by Kara
  • 0
Posted (edited)

@dramaa93 I am sure about that you can prohibit skill in a zone,but not for the opposite..
so you can disable the skill to all other zones like :
1.find the skill (lets say about noblesse)

2.add these lines : 

Spoiler

+<cond msgId="113" addName="1">
+<not>
+<zone name="[add here the zone type ]"/>
+</not>
+</cond>
<for>
<effect count="1" name="BlessNoblesse" stackOrder="1" stackType="BlessOfNoble" time="3600" val="0"/>


3.repeat several times until u add all zones types except olympiadstadium zone

 

i hope it helps


maybe @Zake know a better way for that.

 

Edited by scraw
  • 0
Posted
56 minutes ago, dramaa93 said:

l2jfrozen (pls dont say to use acis cus its better.. :/)

I wanted to check in documentbase if there is a condition for olympiad. Unfortunately in l2jfrozen there is not. You can add a quick one though by editing ConditionPlayerState.java. All you have to do is to add an olympiad enumeration and a simple isInOlympiad() check in testImpl (or whatever this method is called in frozen)

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..