HOW to make a skill nonenchantable !??

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
hades25
Posts: 14
Joined: Sun Jan 05, 2014 8:46 am

HOW to make a skill nonenchantable !??

Post by hades25 »

Hello

Somone can tell me please how can i make a skill nonenchantable for example :Dark Weapon skill from kamael and protection darknes i dont wont to be enchantable !
How can i change that!

Alot of thanks!!!
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: HOW to make a skill nonenchantable !??

Post by Hyrelius »

That's one of the skills I assume:

Code: Select all

     <skill id="1442" levels="3" name="Protection from Darkness" enchantGroup1="1" enchantGroup2="1">        <!-- Confirmed CT2.5 -->        <table name="#abnormalLvls"> 1 2 3 </table>        <table name="#effectPoints"> 549 611 655 </table>        <table name="#magicLvl"> 58 66 74 </table>        <table name="#mpConsume"> 43 49 55 </table>        <table name="#mpInitialConsume"> 11 13 14 </table>        <table name="#vuln"> 15 23 30 </table>        <table name="#ench1vuln"> 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126 130 134 138 142 146 150 </table>        <table name="#ench2AbnormalTimes"> 1240 1280 1320 1360 1400 1440 1480 1520 1560 1600 1640 1680 1720 1760 1800 1840 1880 1920 1960 2000 2040 2080 2120 2160 2200 2240 2280 2320 2360 2400 </table>        <table name="#ench2vuln"> 31 32 32 33 34 34 35 36 36 37 37 38 39 39 40 41 41 42 43 43 44 44 45 46 46 47 48 48 49 50 </table>        <table name="#enchabnormalLvl"> 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 </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="abnormalLvl" val="#abnormalLvls" />        <set name="abnormalTime" val="1200" />        <set name="abnormalType" val="ARMOR_UNHOLY" />        <set name="castRange" val="400" />        <set name="effectPoint" val="#effectPoints" />        <set name="effectRange" val="900" />        <set name="hitTime" val="3000" />        <set name="icon" val="icon.skill1442" />        <set name="isMagic" val="1" /> <!-- Magic Skill -->        <set name="magicLvl" val="#magicLvl" />        <set name="mpConsume" val="#mpConsume" />        <set name="mpInitialConsume" val="#mpInitialConsume" />        <set name="operateType" val="A2" />        <set name="reuseDelay" val="2000" />        <set name="targetType" val="ONE" />        <enchant1 name="magicLvl" val="#enchMagicLvl" />        <enchant2 name="abnormalTime" val="#ench2AbnormalTimes" />        <enchant2 name="magicLvl" val="#enchMagicLvl" />        <for>            <effect name="Buff">                <add order="0x40" stat="darkRes" val="#vuln" />            </effect>        </for>        <enchant1for>            <effect name="Buff">                <add order="0x40" stat="darkRes" val="#ench1vuln" />            </effect>        </enchant1for>        <enchant2for>            <effect name="Buff">                <add order="0x40" stat="darkRes" val="#ench2vuln" />            </effect>        </enchant2for>    </skill>
In order to prevent it from being enchantable, just remove enchant1for and enchant2for as well as ench1vuln, ench2vuln, enchabnormalLvl, ench2AbnormalTimes, enchabnormalLvl, enchMagicLvl, enchant1 and enchant2 elements.

In the end you would have approx. this:

Code: Select all

     <skill id="1442" levels="3" name="Protection from Darkness">        <!-- Confirmed CT2.5 -->        <table name="#abnormalLvls"> 1 2 3 </table>        <table name="#effectPoints"> 549 611 655 </table>        <table name="#magicLvl"> 58 66 74 </table>        <table name="#mpConsume"> 43 49 55 </table>        <table name="#mpInitialConsume"> 11 13 14 </table>        <table name="#vuln"> 15 23 30 </table>        <set name="abnormalLvl" val="#abnormalLvls" />        <set name="abnormalTime" val="1200" />        <set name="abnormalType" val="ARMOR_UNHOLY" />        <set name="castRange" val="400" />        <set name="effectPoint" val="#effectPoints" />        <set name="effectRange" val="900" />        <set name="hitTime" val="3000" />        <set name="icon" val="icon.skill1442" />        <set name="isMagic" val="1" /> <!-- Magic Skill -->        <set name="magicLvl" val="#magicLvl" />        <set name="mpConsume" val="#mpConsume" />        <set name="mpInitialConsume" val="#mpInitialConsume" />        <set name="operateType" val="A2" />        <set name="reuseDelay" val="2000" />        <set name="targetType" val="ONE" />        <for>            <effect name="Buff">                <add order="0x40" stat="darkRes" val="#vuln" />            </effect>        </for>    </skill>
What I don't know, is, whether this will definitely prevent the skill from being enchantable, because I do know, that some skill information is on the client-side. I haven't tested this, but I think it might help you.

This XML comes from one of the relatively recent "unstable"-branch revisions (can't remember which one right now).
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
hades25
Posts: 14
Joined: Sun Jan 05, 2014 8:46 am

Re: HOW to make a skill nonenchantable !??

Post by hades25 »

Ok Thanks so much !
Post Reply