Hello, i'm here to post 2 good functions
firts open the folder libs in data and open functions.lua and add it
firts open the folder libs in data and open functions.lua and add it
Code:
function isWeapon(uid)
if getItemAttack(uid) > 0 and getItemArmor(uid) == 0 then
return TRUE
else
return FALSE
end
end
function isArmor(uid)
if getItemAttack(uid) == 0 and getItemDefense(uid) == 0 and getItemArmor(uid) > 0 then
return TRUE
else
return FALSE
end
end
Last edited: