I wonder if it is possible to use a number of the name of an item in a function
if possible would like a function to return to this number
My idea is to make a weapon that breaks
I thought of using storage but there would only suffer damage to owner
EX:
08:26 You see the sword of pain - health [100/100] (Atk: 64 Def: 5)
It weighs 320.00 oz.
function getHealthWeapon(cid)
if getName(itemid) == - health then
local value = [ex/ex]
return value
end
end
remember this is just one example I know that this function does not exist
if possible would like a function to return to this number
My idea is to make a weapon that breaks
I thought of using storage but there would only suffer damage to owner
EX:
08:26 You see the sword of pain - health [100/100] (Atk: 64 Def: 5)
It weighs 320.00 oz.
function getHealthWeapon(cid)
if getName(itemid) == - health then
local value = [ex/ex]
return value
end
end
remember this is just one example I know that this function does not exist