local pos = { x = XXXX, y = XXXX, z = X }
function onUse(cid, item, fromPosition, itemEx, toPosition)
local exh = {storage = 147583, time = 60 * 60}
playerpos = getPlayerPosition(cid)
if (exhaustion.get(cid, exh.storage) ~= false) then
doPlayerSendCancel(cid, "You are exhausted.")
doSendMagicEffect(playerpos, CONST_ME_POFF)
return true
end
if (exhaustion.get(cid, exh.storage) == false) then
doTeleportThing(cid, pos)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
exhaustion.set(cid, exh.storage, exh.time)
end
return true
end