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

    • We've added 5% discounts for bulk purchases of Google accounts for orders of 300 or more, and 10% for orders of 500 or more. The discount is applied automatically when you place your order! The discount is indicated in the product title and description for each category.  
    • 🎄 CHRISTMAS EVENT 🎄   ‼️ Information and details: https://forum.l2harbor.com/threads/rozhdestvenskie-xlopoty-christmas-chores.9430/post-171464
    • METATG.ORG Direct Telegram Service Provider A bonus of +7% on every order! *We add 7% more followers than your ordered amount to proactively cover potential drops and guarantee you an honest result." Telegram Followers - Price per 1000 SUBSCRIBERS Subscribers 3 days - $0.10 ~ 8 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 7 days - $0.17 ~ 13.6 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 14 days - $0.20 ~ 16 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 30 days - $0.30 ~ 24 RUB Subscribers. Daily Completion: 200,000,000 Subscribers 60 days - $0.40 ~ 32 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 90 days (Super Fast) - $0.50 ~ 40 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers 120 days (Super Fast) - $0.60 ~ 48 RUB Subscribers, 14-day guarantee. Daily Completion: 200,000,000 Subscribers Lifetime (Super Fast) - $0.70 ~ 56 RUB Lifetime Subscribers. 14-day guarantee. Daily Completion: 200,000,000 Telegram Services - Price per 1000 Post Views - $0.06 ~ 5 RUB Reactions - $0.08 ~ 6.5 RUB Bot Starts - $0.10 ~ 8 RUB Bot Starts with referrals - $0.15 ~ 12 RUB DISCOUNTS and CASHBACK for large volumes Direct Supplier. We work from our own accounts with our own software! High execution speed. Multiple payment methods. We work 24/7! Additional discounts are discussed for volumes starting from $1000 per day. SUPPORT 24/7 - TELEGRAM WEBSITE 24/7 - METATG.ORG
    • Added: a brand-new default dashboard template. You can now add multiple game/login server builds. Full support for running both PTS & L2J servers simultaneously, with switching between them. Payment systems: added OmegaPay and Pally (new PayPal-style API). Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account. Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.     Look demo site: demo
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock