local config = {
-- x y z
[1385] = {_x=0, _y=-1, _z=-1},
}
function onStepIn(cid, item, toPosition, fromPosition)
local n = config[item.itemid]
if not n or not isPlayer(cid) then
return
end
return doTeleportThing(cid, {x=toPosition.x + n._x, y=toPosition.y + n._y, z=toPosition.z + n._z})
end