local pos = {x=100, y=100, z=7}
function onCastSpell(cid, var)
if not exhaustion.check(cid, 123) then
exhaustion.set(cid, 123, 600)
local p = getThingPos(cid)
doTeleportThing(cid, pos)
doSendMagicEffect(p, CONST_ME_TELEPORT)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
return true
end
doPlayerSendCancel(cid, 'Cooldown[' .. exhaustion.get(cid, 123) .. ']')
end