How to forbid to use a skill in a certain zone

Deazer

Head Developer
Staff member
o prohibit the use of skills in a certain zone, we need to add a condition to the skill:
I do on the example of Noble

1. First we define the zone in which we want to prohibit - for example [primeval_peace1], it is in data/zone/peace_zone.xml

2.Find the skill we need and add a ban on the use of
<skill id="1323" levels="1" name="Noblesse Blessing">
<set name="magicType" val="MAGIC"/>
<set name="icon" val="icon.skill1323"/>
<set name="reuseDelay" val="6000"/>
<set name="magicLevel" val="1"/>
<set name="castRange" val="400"/>
<set name="hitTime" val="4000"/>
<set name="hitCancelTime" val="500"/>
<set name="mpConsume1" val="14"/>
<set name="mpConsume2" val="55"/>
<set name="itemConsumeId" val="3031"/>
<set name="itemConsumeCount" val="5"/>
<set name="target" val="TARGET_ONE"/>
<set name="skillType" val="BUFF"/>
<set name="operateType" val="OP_ACTIVE"/>
<cond msgId="113" addName="1">
<not>
<zone name="[primeval_peace1]"/>
</not>
</cond>

<for>
<effect count="1" name="BlessNoblesse" stackOrder="1" stackType="BlessOfNoble" time="3600" val="0"/>
</for>
</skill>

3. If we need to add many zones for the ban in the skill:

<skill id="1323" levels="1" name="Noblesse Blessing">
<set name="magicType" val="MAGIC"/>
<set name="icon" val="icon.skill1323"/>
<set name="reuseDelay" val="6000"/>
<set name="magicLevel" val="1"/>
<set name="castRange" val="400"/>
<set name="hitTime" val="4000"/>
<set name="hitCancelTime" val="500"/>
<set name="mpConsume1" val="14"/>
<set name="mpConsume2" val="55"/>
<set name="itemConsumeId" val="3031"/>
<set name="itemConsumeCount" val="5"/>
<set name="target" val="TARGET_ONE"/>
<set name="skillType" val="BUFF"/>
<set name="operateType" val="OP_ACTIVE"/>
<cond msgId="113" addName="1">
<not>
<or>
<zone name="[primeval_peace1]"/>
<zone name="[giran_town_peace2]"/>
</or>
</not>
</cond>

<for>
<effect count="1" name="BlessNoblesse" stackOrder="1" stackType="BlessOfNoble" time="3600" val="0"/>
</for>
</skill>
 
Back
Top