Mano usar um item para ativar o kamui que pega 3 sqm envolta do player sei não mas tenta esse e vê se da certo:
Como Funciona: funciona da seguinte forma você usa o item em um jogador e ele será teleportado para onde as coordenadas foram pré-configuradas.
Vai na pasta Actions/Script e crie um arquivo chamado kamui e cole isto:
local kamui = { posTeleport = { x = 1111, y = 1231, z = 7}, -- Posição onde será teleportado, sugiro que crie uma area especifica no mapa. tempo = 10, -- tempo para voltar }function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer( getCreatureTarget(cid) ) then target = getCreatureTarget(cid) addEvent(doTeleportThing, 1000*kamui.tempo, target, getThingPos(target), true) addEvent(doSendMagicEffect, 1000*kamui.tempo, getThingPos(target), 10) doSendMagicEffect(getThingPos(target), 50) doTeleportThing(target, kamui.posTeleport) if isCreature(cid) then doPlayerSendTextMessage(target, 27, "Você foi teleportado pelo kamui do jogador: ".. getCreatureName(cid) ..".") end if isPlayer(cid) and isCreature(target) then doPlayerSendTextMessage(cid, 27, "Você teletransportou: ".. getCreatureName(target) .."!") end for i = 1,config.tempo do addEvent( function() if isCreature(target) then doPlayerSendTextMessage(target,25,"Voce estara de volta" .. kamui.tempo -i +1 .. " segundos(s)") end end, 1000*i ) end else doPlayerSendCancel(cid, "Voce so pode usar o KAMUI nos jogadores") end return trueend
depois abre o arquivo Actions/actions.xml e cole a seguinte tag:
<action itemid="5910" event="script" value="kamui.lua"/>
Então o problema todo é que o item não tei o "use with" e em área eu não precisaria você sabe se dar pra fazer como um spell então mais em área?