I've always had this trouble and I hope someone could help me here.
I got this simple teleport script:
local temple = {x = 1006, y = 999, z = 7}
shops = {x = 1025, y = 985, z = 7}
function onStepIn(cid, item, pos, fromPos)
if item.itemid == 3188 then
doTeleportThing(cid, shops)...