Something like this?
The creaturescript to create the teleport is this one:
local tpId = 12509
local tps = {
["Grand Ferumbras"] = {pos = {x=870, y=1389, z=12}, toPos = {x=898, y=1366, z=12}, time = 20},
}
function removeTp(tp)
local t = getTileItemById(tp.pos, tpId)...