function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tile = Tile(toPosition)
if isInArray(ropeSpots, tile:getGround():getId()) or tile:getItemById(14435) then
player:teleportTo(toPosition:moveUpstairs(), false)
return true
elseif isInArray(holeId, target.itemid) then
toPosition.z = toPosition.z + 1
tile = Tile(toPosition)
if tile then
local thing = tile:getTopVisibleThing()
if thing:isItem() and thing:getType():isMovable() then
return thing:moveTo(toPosition:moveUpstairs())
end
end
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
return true
end
return false
end