function onUse(cid, item, fromPosition, itemEx, toPosition)
local daysvalue = 1 * 24 * 60 * 60
local daily = getPlayerStorageValue(cid, 18224)
if (daily == -1) then
daily = 0
end
if getPlayerStorageValue(cid, 13549) - os.time() <= 0 then
time = os.time() + daysvalue
setPlayerStorageValue(cid, 13549, time)
setPlayerStorageValue(cid, 18224, daily+1)
local daily = getPlayerStorageValue(cid, 18224)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You done your " .. daily .. " Daily Quest. You got 1 cc.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You must wait 24 Hours to get your daily quest. Next avaiable will be at: " .. os.date("%H:%M:%S", getPlayerStorageValue(cid, 13540)) .. ".")
end
return true
end