• 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!

add attributes

douglas321

New Member
Joined
Oct 17, 2015
Messages
21
Reaction score
0
Hello, I would like to know how should I do to put attributes on equipment, for example: an ax that gains + 1 skill. > You see a morning star (Atk: 25 Def: 11). + 2 skill ax It weighs 54.00 oz. example. how can I do this?

server 7.72, Nostalrius based on TFS 1.2, original cipsoft
 
Solution
forgot to report how it is in items.srv and moviments.xml

items.srv
TypeID = 5090
Name = "axe"
Flags = {MultiUse,Take,Weapon}
Attributes = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

moviments.xml
<!-- Axes -->
<movevent event="Equip" itemid="5090" slot="feet" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="feet" function="onDeEquipItem" />


and yet it won't, is it because of the old version?
Oh.
Try this then:

items.srv:
Code:
TypeID      = 5090

Name        = "axe"

Flags       = {MultiUse,Take,Weapon,ShowDetail}

Attributes  = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

and in moviments.xml
XML:
<movevent event="Equip" itemid="5090"...
You could try to add this in items.xml under the itemid:
XML:
<attribute key="skillAxe" value="2" />
and then set the equip in movements.xml
XML:
<movevent event="Equip" itemid="****" slot="hand" function="onEquipItem"/>
<movevent event="DeEquip" itemid="****" slot="hand" function="onDeEquipItem" />
 
You could try to add this in items.xml under the itemid:
XML:
<attribute key="skillAxe" value="2" />
and then set the equip in movements.xml
XML:
<movevent event="Equip" itemid="****" slot="hand" function="onEquipItem"/>
<movevent event="DeEquip" itemid="****" slot="hand" function="onDeEquipItem" />

forgot to report how it is in items.srv and moviments.xml

items.srv
TypeID = 5090
Name = "axe"
Flags = {MultiUse,Take,Weapon}
Attributes = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

moviments.xml
<!-- Axes -->
<movevent event="Equip" itemid="5090" slot="feet" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="feet" function="onDeEquipItem" />


and yet it won't, is it because of the old version?
 
forgot to report how it is in items.srv and moviments.xml

items.srv
TypeID = 5090
Name = "axe"
Flags = {MultiUse,Take,Weapon}
Attributes = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

moviments.xml
<!-- Axes -->
<movevent event="Equip" itemid="5090" slot="feet" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="feet" function="onDeEquipItem" />


and yet it won't, is it because of the old version?
Oh.
Try this then:

items.srv:
Code:
TypeID      = 5090

Name        = "axe"

Flags       = {MultiUse,Take,Weapon,ShowDetail}

Attributes  = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

and in moviments.xml
XML:
<movevent event="Equip" itemid="5090" slot="hand" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="hand" function="onDeEquipItem" />

Dont know if its gonna show up on the weapon, but check and see if the skill changes.
Maybe you need to add it as a description if the skill changes, but weapon doesnt show +stat.
 
Last edited:
Solution
Oh.
Try this then:

items.srv:
Code:
TypeID      = 5090

Name        = "axe"

Flags       = {MultiUse,Take,Weapon,ShowDetail}

Attributes  = {Weight=8800,WeaponType=AXE,AxeBoost=3,Attack=55,Defense=35}

and in moviments.xml
XML:
<movevent event="Equip" itemid="5090" slot="hand" function="onEquipItem" />
<movevent event="DeEquip" itemid="5090" slot="hand" function="onDeEquipItem" />

Dont know if its gonna show up on the weapon, but check and see if the skill changes.
Maybe you need to add it as a description if the skill changes, but weapon doesnt show +stat.
thanks,
so swap slot = "feet" for slot = "hand" good man
 
Back
Top