local newPos = {x=, y=, z=}
local time = 60 * 30
function tooLong(cid)
doTeleportThing(cid, newPos)
doRemoveCreature(cid)
end
local tid = 0
function onStepIn(cid)
tid = addEvent(tooLong, 1000 * time, cid)
return true
end
function onStepOut(cid)
stopEvent(tid)
return true
end