local centerRoomPos = { x = 321, y = 654, z = 7 }
local foundCreature = FALSE
function onStepIn(cid, item, position, fromPosition)
if(item.uid = 12345) then
local creaturesOnScreen = getSpectators(centerRoomPos, 9, 9, FALSE)
for i = 0, creaturesOnScreen do
if(isCreature(creaturesOnScreen[i]) == TRUE) then
foundCreature = TRUE
end
next
if(foundCreature == TRUE) then
doTeleportThing(cid, fromPosition)
end
end
end