local cPos = {x = xxx, y = xxx, z = x}
local exhaust,storage = 5, 1299 -- in seconds,empty storage
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) > os.time() then
doPlayerSendTextMessage(cid,27,os.date("You are exhausted, you need to wait more %S seconds.",getPlayerStorageValue(cid,storage) - os.time()) )
return true
end
if item.uid == xxx and item.itemid == 1945 then
doSummonCreature("Monster", cPos)
setPlayerStorageValue(cid,storage,os.time() + exhaust)
end
return true
end