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

TFS 1.X+ attributes Items

Loscar

Milleniun
Joined
Nov 20, 2009
Messages
1
Reaction score
0
Location
Br, Rs, Poa
i'm triying to create a script, this sctipt create an item with ramdom attributes, now i can do Atk, Def and Tier ramdom but i dont know how to add crit, mana leech, elemental hit, void and skill bonus be ramdom too, i dont know how to do this.
To attack, Def and tier i'm using this method:

weapon:setAttribute(ITEM_ATTRIBUTE_DEFENSE, rewardItem.def)
weapon:setAttribute(ITEM_ATTRIBUTE_ATTACK, rewardItem.atk)
weapon:setTier(3)

it's possible to put others? (mana leech, void, skill bonus and elemental hit?)
 
I dont see your code, so, take a example:
 
Back
Top