Loscar
Milleniun
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?)
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?)