Para teleportar com 2 cliques(1 no item, 1 no player):
function onUse(cid, item, frompos, item2, topos) local pid = getThingFromPosWithProtect(topos) local creapid = topos if not isCreature(pid) then return doPlayerSendCancel(cid, "You can only use it in creatures!") end doTeleportThing(cid, creapid, false) end
E em itens que não precisa de 2 cliques:
function onUse(cid, item, frompos, item2, topos) local pid = getCreatureTarget(cid) local creapid = getCreaturePosition(pid) if not isCreature(pid) then return doPlayerSendCancel(cid, "You can only use it in creatures!") end doTeleportThing(cid, creapid, false) end






info
Grupo: Marquês
Registrado: 05/12/11
Posts: 1.2k
Reputação: +173
Gênero: Masculino
GALERA PRECISA QUE UM ITEM NO MEU NARUTO TIBIA DE USE NELE E TELEPORTA ATE O TARGET TIPOW VAI DO USE E CLIKO PRA USAR NO TAU PLAYER AI TELEPORTO ATE ELE É ISSO GALERA +REP PRA QUEM AJUDAR