actionId = --- w/e action ID you want to use.
pos = {x = , y = , z =} -- Position of where they get teleported.
-- Set the action ID of the tile they walk on in map editor.
function onStepIn(cid, item, position, fromPosition)
if item.actionid == actionId then
doTeleportThing(cid, pos)
end
end