Ir para conteúdo
  • Cadastre-se

(Resolvido)Items nao passam no teleport (tp)


Ir para solução Resolvido por dirso,

Posts Recomendados

Items nao passam no teleport (tp)

Como resolver esse probleminha? rs

Era pra bota ser teleportada D:

 

OnJ6abF.png

Link para o post
Compartilhar em outros sites
  • Respostas 10
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) pos.stackpos = 255 local object = getThingFromPos(pos) if isMovable(object.uid) then doTeleportThing(object.uid,train) doSendMagicEffect(getThingPos(object.uid),CONST_ME_TELEPORT) return true end if isPlayer(cid) then doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1

local train = {x=32238, y=32233, z=7} function onStepIn(cid, item, position, fromPosition) if item.actionid == 2123 then --AbDendriel setPlayerStorageValue(cid,100108, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2124 then --Ankrahmun setPlayerStorageValue(cid,100109, 1) doTeleportThing(cid,train) doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT) elseif item.actionid == 2125 then --Carlin

Aqui está:

  Mostrar conteúdo oculto
local train = {x=32238, y=32233, z=7}


function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
    doTeleportThing(cid,train)
    doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
if item.actionid == 2123 then --AbDendriel
            setPlayerStorageValue(cid,100108, 1)
        elseif item.actionid == 2124 then --Ankrahmun 
            setPlayerStorageValue(cid,100109, 1)
        elseif item.actionid == 2125 then --Carlin  
            setPlayerStorageValue(cid,100110, 1)
        elseif item.actionid == 2126 then --Darashia 
            setPlayerStorageValue(cid,100111, 1)
        elseif item.actionid == 2127 then --Edron 
            setPlayerStorageValue(cid,100112, 1)
        elseif item.actionid == 2128 then --Kazordoon 
            setPlayerStorageValue(cid,100113, 1)
        elseif item.actionid == 2129 then --Liberty Bay 
            setPlayerStorageValue(cid,100114, 1)
        elseif item.actionid == 2130 then --Port Hope 
            setPlayerStorageValue(cid,100115, 1)
        elseif item.actionid == 2131 then --Svargrond 
            setPlayerStorageValue(cid,100116, 1)
        elseif item.actionid == 2132 then  --Thais
            setPlayerStorageValue(cid,100117, 1)
        elseif item.actionid == 2133 then --Venore  
            setPlayerStorageValue(cid,100118, 1)
        elseif item.actionid == 2134 then --Yalahar
            setPlayerStorageValue(cid,100119, 1)
    end
        end
end  

Editado por dirso (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

seu problema tá aqui: 

if isPlayer(cid) then

ele tá configurado pra teleportar apenas players... modificando teremos:
 

local train = {x=32238, y=32233, z=7}


function onStepIn(cid, item, position, fromPosition)
    doTeleportThing(cid,train)
    doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
if item.actionid == 2123 then --AbDendriel
            setPlayerStorageValue(cid,100108, 1)
        elseif item.actionid == 2124 then --Ankrahmun 
            setPlayerStorageValue(cid,100109, 1)
        elseif item.actionid == 2125 then --Carlin  
            setPlayerStorageValue(cid,100110, 1)
        elseif item.actionid == 2126 then --Darashia 
            setPlayerStorageValue(cid,100111, 1)
        elseif item.actionid == 2127 then --Edron 
            setPlayerStorageValue(cid,100112, 1)
        elseif item.actionid == 2128 then --Kazordoon 
            setPlayerStorageValue(cid,100113, 1)
        elseif item.actionid == 2129 then --Liberty Bay 
            setPlayerStorageValue(cid,100114, 1)
        elseif item.actionid == 2130 then --Port Hope 
            setPlayerStorageValue(cid,100115, 1)
        elseif item.actionid == 2131 then --Svargrond 
            setPlayerStorageValue(cid,100116, 1)
        elseif item.actionid == 2132 then  --Thais
            setPlayerStorageValue(cid,100117, 1)
        elseif item.actionid == 2133 then --Venore  
            setPlayerStorageValue(cid,100118, 1)
        elseif item.actionid == 2134 then --Yalahar
            setPlayerStorageValue(cid,100119, 1)
    end      
end  

Todos os meus trabalhos importantes estão na seção "Sobre mim" no meu perfil; Dá uma passada lá!

"Há três caminhos para o fracasso: não ensinar o que se sabe, não praticar o que se ensina, e não perguntar o que se ignora." - São Beda

I7Pm6ih.png

(obg ao @Beeny por fazer essa linda sign <3)

Link para o post
Compartilhar em outros sites
  Em 09/05/2014 em 17:37, xWhiteWolf disse:

 

seu problema tá aqui: 

if isPlayer(cid) then

ele tá configurado pra teleportar apenas players... modificando teremos:

 

local train = {x=32238, y=32233, z=7}


function onStepIn(cid, item, position, fromPosition)
    doTeleportThing(cid,train)
    doSendMagicEffect(getThingPos(cid),CONST_ME_TELEPORT)
if item.actionid == 2123 then --AbDendriel
            setPlayerStorageValue(cid,100108, 1)
        elseif item.actionid == 2124 then --Ankrahmun 
            setPlayerStorageValue(cid,100109, 1)
        elseif item.actionid == 2125 then --Carlin  
            setPlayerStorageValue(cid,100110, 1)
        elseif item.actionid == 2126 then --Darashia 
            setPlayerStorageValue(cid,100111, 1)
        elseif item.actionid == 2127 then --Edron 
            setPlayerStorageValue(cid,100112, 1)
        elseif item.actionid == 2128 then --Kazordoon 
            setPlayerStorageValue(cid,100113, 1)
        elseif item.actionid == 2129 then --Liberty Bay 
            setPlayerStorageValue(cid,100114, 1)
        elseif item.actionid == 2130 then --Port Hope 
            setPlayerStorageValue(cid,100115, 1)
        elseif item.actionid == 2131 then --Svargrond 
            setPlayerStorageValue(cid,100116, 1)
        elseif item.actionid == 2132 then  --Thais
            setPlayerStorageValue(cid,100117, 1)
        elseif item.actionid == 2133 then --Venore  
            setPlayerStorageValue(cid,100118, 1)
        elseif item.actionid == 2134 then --Yalahar
            setPlayerStorageValue(cid,100119, 1)
    end      
end  
Expand   Mostrar mais  

Fiz o que você disse, e agora não passa nem players, rs

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96847
    Tópicos
    519606
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo