Well , try this :) 90% will work
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local tpos,v = {x=1000, y=1000, z=7},getThingPos(cid)
local item = 2547
if doPlayerRemoveItem(cid, item, 100) and isPlayer(cid) then
doTeleportThing(cid,tpos)...