so?
function onUse(cid, item, pos)
local toPos = {x=pos.x,y=pos.y-1,z=pos.z,stackpos=253}
local tooPos = {x=pos.x,y=pos.y+1,z=pos.z,stackpos=253}
if not isPlayer(getThingfromPos(toPos).uid) then
doTeleportThing(cid, toPos)
doSendMagicEffect(getCreaturePosition(cid), 12)
else...