• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Manipulating Item Attributes and Skills in TFS 1.3+

Vitor Luna

New Member
Joined
Jul 15, 2015
Messages
6
Reaction score
0
I have a question regarding tfs 1.3 or higher, about handling item.xml attributes.

If I need to manipulate attributes such as attack, defense, armor, extradefense I can use simple commands, such as:

item:getAtributte(ITEM_ATTRIBUTE_ATTACK)
item:setAttribute(ITEM_ATTRIBUTE_ATTACK, 10)

Since these attributes are declared as itemAttrTypes, how can I manipulate other information such as skillSword, skillAxe, skillClub, as these are declared as skills_t?
Is there any way to manipulate these attributes as well as getAtributte and setAtributte?
 
I have a question regarding tfs 1.3 or higher, about handling item.xml attributes.

If I need to manipulate attributes such as attack, defense, armor, extradefense I can use simple commands, such as:

item:getAtributte(ITEM_ATTRIBUTE_ATTACK)
item:setAttribute(ITEM_ATTRIBUTE_ATTACK, 10)

Since these attributes are declared as itemAttrTypes, how can I manipulate other information such as skillSword, skillAxe, skillClub, as these are declared as skills_t?
Is there any way to manipulate these attributes as well as getAtributte and setAtributte?
you would just manipulate the skills with players method's for manipulating those skills, but you could do so in a script that triggers when a player equips or deequips the item
 

Similar threads

Replies
0
Views
180
Back
Top