@Doidodepeda
function onUse(cid, item, frompos, item2, topos)
local config = {
timeForUse = 1, -- tempo em horas que o player poderá entrar na cave.
storage = 789450,
toKnow = 456789,
effect = 27 -- efeito que dará ao usar o item.
}
local time = getPlayerStorageValue(cid, config.storage) - os.time() <= 0 and (os.time() + config.timeForUse * 60) or (getPlayerStorageValue(cid, config.storage) + config.timeForUse * 60)
setPlayerStorageValue(cid, config.storage, time)
doRemoveItem(item.uid,1)
setPlayerStorageValue(cid, config.toKnow, 1)
doSendMagicEffect(getThingPos(cid), config.effect)
doPlayerSendTextMessage(cid, 19, "Voce Usou a Bonus Area")
return true
end