Hi guys i'm needing some help with conding. im trying to make this skill script to transfer pain differently if player have light o heavy armor and retail like if using a robe.
in the next script transfers 50% at skill lvl 5 and then acoridng to enchantation it grows to 70%.
i want to make that when using a robe skill works retail and using light or heavy only transfer 20% and with enchantation grows to 40%
<skill id="1262" levels="5" name="Transfer Pain" enchantGroup1="1">
<table name="#magicLvl"> 40 48 56 58 70 </table>
<table name="#mpInitialConsume"> 7 9 11 12 13 </table>
<table name="#power"> 10 20 30 40 50 </table>
<table name="#ench1power"> 51 52 52 53 54 54 55 56 56 57 57 58 59 59 60 61 61 62 63 63 64 64 65 66 66 67 68 68 69 70 </table>
<table name="#enchMagicLvl"> 76 76 76 77 77 77 78 78 78 79 79 79 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 </table>
<set name="abnormalVisualEffect" val="NONE" />
<set name="icon" val="icon.skill1262" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="operateType" val="T" />
<set name="rideState" val="NONE" />
<set name="targetType" val="SELF" />
<enchant1 name="magicLvl" val="#enchMagicLvl" />
<for>
<effect name="MpConsumePerLevel" ticks="5">
<param power="0.2" />
<add stat="transDam" val="#power" />
</effect>
</for>
<enchant1for>
<effect name="MpConsumePerLevel" ticks="5">
<param power="0.2" />
<add stat="transDam" val="#ench1power" />
</effect>
</enchant1for>
</skill>
hope you guys can give me a hand here!! thx for your time