Tenta essa
<action uniqueid="7865" script="testeeee.lua" />
testeeee.lua
local t = {
storage = 678678, -- storage, so mude se tiver usando pra outra coisa.
tempo = 24, -- Tempo em horas.
qt = 250, -- quatidade.
itemidxx = 6527 -- Item que ira ganhar.
}
function onUse(cid, item, fromPos, itemEx, toPos)
if getPlayerStorageValue(cid, t.storage) < os.time() then
doPlayerSendTextMessage(cid, 25, "Voce ganhou "..t.qt.." "..t.itemidxx.." diário, espere dar 24 horas para pegar novamente.")
doPlayerAddItem(cid,t.itemidxx,t.qt)
setPlayerStorageValue(cid, t.storage, os.time() + t.tempo * 60 * 60)
else
doPlayerSendTextMessage(cid, 25, "Você precisa esperar ".. getPlayerStorageValue(cid, t.storage) - os.time() .." segundos para coletar novamente.")
end
return true
end