Edita do seu jeito
function onUse(cid, item, fromPosition, itemEx, toPosition)
local daysvalue = 1 * 24 * 60 * 60
storage = 928938923
local daily = getAccountStorageValue(getPlayerAccountId(cid), 13222423)
if getAccountStorageValue(getPlayerAccountId(cid), storage) <= os.time() then
setAccountStorageValue(getPlayerAccountId(cid), storage, os.time() + daysvalue)
local item = doPlayerAddItem(cid, 1990)
doItemSetAttribute(item, "description", " Premio Diario [FREE].")
doItemSetAttribute(item, 'aid', 10032)
doSendMagicEffect(getThingPos(cid), 29)
else
local left = getAccountStorageValue(getPlayerAccountId(cid), storage) - os.time()
left = {hour = math.floor(left/3600), minutes = math.ceil((left % 3600)/60)}
doPlayerSendCancel(cid, 'You have to wait '.. left.hour ..'h and '..left.minutes..'min [1 present per account].')
doSendMagicEffect(getThingPos(cid), 2)
end
return true
end