Page 1 of 1

more then one condition, how?

Posted: Sun Mar 18, 2012 9:24 am
by babyjason
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

hi, i d like to add 2 conditions to a skill, as in , you only can summon an npc if :

1. not in olympiad
2. when hp is full


i did it like this, will it work?

Code: Select all

<skill id="312" levels="1" name=" Event">        <set name="itemConsumeCount" val="1"/>        <set name="target" val="TARGET_SELF"/>        <set name="skillType" val="SPAWN" />        <set name="operateType" val="OP_ACTIVE" />        <set name="hitTime" val="1" />        <set name="staticHitTime" val="true" />        <set name="npcId" val="1" />        <set name="despawnDelay" val="1" />        <set name="isSummonSpawn" val="true" />        <set name="reuseDelay" val="1" />            <cond msgId="1509">    <player olympiad="false" />    <player hp="100" />    </cond>    </skill>

Re: more then one condition, how?

Posted: Sun Mar 18, 2012 9:38 am
by Zoey76

Code: Select all

 <cond msgId="1509">    <and>        <player olympiad="false" />        <player hp="100" />    </and></cond>

Re: more then one condition, how?

Posted: Sun Mar 18, 2012 6:23 pm
by babyjason
Zoey76 wrote:

Code: Select all

 <cond msgId="1509">    <and>        <player olympiad="false" />        <player hp="100" />    </and></cond>
ty so much!