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

extraattack and extraDefense gem

mmheo

New Member
Joined
Sep 14, 2017
Messages
157
Reaction score
1
how i can make gem when use on shield or weapon add extraattack and extraDefense +1
tfs 0.4
 
Last edited:
Solution
try something like this
Code:
        local extraAttack = getItemAttribute(itemEx.uid, "extraAttack")
        if extraAttack == nil then
        extraAttack = getItemInfo(itemEx.itemid).extraAttack
        end
        doItemSetAttribute(itemEx.uid, "extraAttack", extraAttack + 1)
try something like this
Code:
        local extraAttack = getItemAttribute(itemEx.uid, "extraAttack")
        if extraAttack == nil then
        extraAttack = getItemInfo(itemEx.itemid).extraAttack
        end
        doItemSetAttribute(itemEx.uid, "extraAttack", extraAttack + 1)
 
Solution
Back
Top