Try this and don't forget to add the unique id to your teleport.
function onStepIn(cid, item, fromPos, itemEx, toPos)
local tppos = {x=35000, y=35000, z=6} -- Teleport destination
if isPlayer(cid) and item.uid == 1002 then
doTeleportThing(cid, tppos)...