Shovel is already in use, so you'd have to add this into the shovel script, or choose another item
depending on your version of 0.3.7.. you might need to change
.aid
to
.actionid
So if you get some errors, that's what you'll want to change.
XML:
<action itemid="11111" event="script" value="teleportItem.lua"/>
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.aid == XXXX then
doTeleportThing(cid, {x = toPosition.x, y = toPosition.y, z = toPosition.z + 1})
end
return true
end
-- if adding to original shovel, put this
Lua:
if itemEx.aid == XXXX then
doTeleportThing(cid, {x = toPosition.x, y = toPosition.y, z = toPosition.z + 1})
return true
end