Ir para conteúdo

Featured Replies

Postado
  • Autor

 

Compliquei a coisa simples:

function onStepIn(cid, item, pos)
 
        if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then
                doSetCreatureOutfit(cid, 123, -1)
        elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then
                doSetCreatureOutfit(cid, 124, -1)
        elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then
                doSetCreatureOutfit(cid, 125, -1)
        elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then
                doSetCreatureOutfit(cid, 126, -1)
        else
                return false
        end
       
        return true
end

post-127785-0-30495300-1422581687_thumb.

"O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
  • Respostas 27
  • Visualizações 1.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Diogosilveira
    Diogosilveira

    cria um arquivo chamado > Green.lua em movements/ scripts   Green.lua   agora crie outro arquivo Red.lua   Red.lua

Posted Images

Postado
function onStepIn(cid, item, pos)
 
        if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then
                doPlayerAddOutfit(cid,123,1)
        elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then
                doPlayerAddOutfit(cid,124,1)
        elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then
                doPlayerAddOutfit(cid,125,1)
        elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then
                doPlayerAddOutfit(cid,127,1)
        else
                return false
        end
       
        return true
end

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Postado
  • Autor

Mano eu entro no Teleport e não acontece nada.

Não da mais erro na distro, mas n transforma.

"O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
Postado
function onStepIn(cid, item, pos)
 
        if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then
                doCreatureChangeOutfit(cid, 123)
        elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then
                 doCreatureChangeOutfit(cid, 124)
        elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then
                 doCreatureChangeOutfit(cid, 125)
        elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then
                 doCreatureChangeOutfit(cid, 126)
        else
                return false
        end
       
        return true
end

To testando as funções, o seu servidor não aceitou a primeira que eu usei...

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Postado
  • Autor

post-127785-0-24197600-1422585504_thumb.


pq vc n manda uma função pra eu add na lib.


se voce quiser poder dar uma pausa neste topico e arrumar amanha e ver este aq:

http://www.tibiaking.com/forum/topic/50791-effect-ao-transformar/


UP

"O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo