Facil
O primeiro pela troca de posição:
function onUse(cid, item, fromPos, item2, toPos)
if isPlayer(item2.uid) and getCreatureTarget(item2.uid) then
doPlayerSendTextMessage(cid, 27, "Precisa ser um player que você esteja atacando")
return true
end
local efe = 24 - Efeito ao trocar a posição
local pos = getCreaturePosition(cid)
local targetpos = getCreaturePosition(item2.uid)
doTeleportThing(cid, targetpos, false)
doTeleportThing(item2.uid, pos, false)
doSendMagicEffect(pos, efe)
return true
end