• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem with items : Properly: xxx?

Nuelman

Member
Joined
Nov 9, 2017
Messages
98
Solutions
1
Reaction score
6
v:10.99
tfs 1.x
When I create an item, it doesn't say owner, paladin, or sorcerer... how can I make that automatic?

If you don't put an owner, you don't add any skills.

thanks
 
Solution
To add skill you'll have to edit the item you wish in data\items\items.xml and add the attribute/value you want.
XML:
<attribute key="skillDist" value="xx" />
<attribute key="magiclevelpoints" value="xx" />
<attribute key="skillShield" value="xx" />
<attribute key="skillClub" value="xx" />
<attribute key="skillAxe" value="xx" />
<attribute key="skillSword" value="xx" />
Change the xx for the value.
About item vocation you'll have to edit in data\movements\movements.xml like this
XML:
    <movevent event="Equip" itemid="xxxx" slot="head" function="onEquipItem">
        <vocation name="Sorcerer" />
        <vocation name="Master Sorcerer" showInDescription="0" />
        <vocation name="Druid" />
        <vocation...
What do you mean with owner? You mean like this armor for only pally?
You see a paladin armor (Arm:12, distance fighting +2).
It can only be wielded properly by paladins.
It weighs 65.00 oz.
 
That's exactly what I mean, maybe I explained something wrong.

I also want you to add the extra skills when you equip the weapon

where i can edit this?
 
To add skill you'll have to edit the item you wish in data\items\items.xml and add the attribute/value you want.
XML:
<attribute key="skillDist" value="xx" />
<attribute key="magiclevelpoints" value="xx" />
<attribute key="skillShield" value="xx" />
<attribute key="skillClub" value="xx" />
<attribute key="skillAxe" value="xx" />
<attribute key="skillSword" value="xx" />
Change the xx for the value.
About item vocation you'll have to edit in data\movements\movements.xml like this
XML:
    <movevent event="Equip" itemid="xxxx" slot="head" function="onEquipItem">
        <vocation name="Sorcerer" />
        <vocation name="Master Sorcerer" showInDescription="0" />
        <vocation name="Druid" />
        <vocation name="Elder Druid" showInDescription="0" />
    </movevent>
    <movevent event="DeEquip" itemid="xxxx" slot="head" function="onDeEquipItem" />
Change the xxxx for the item id.
You'll have to change Slot if its not helmet
Like "armor,legs,feet or hand"
 
Solution
Back
Top