Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
function onStepIn(cid, item, pos)
 
 
      --             NARUTO            --]]    
      for n = 1, 14 do
         if getPlayerVocation(cid) == n then
          doSetCreatureOutfit(cid, 123, -1)
         end
      end
   
     --              SASUKE             --]]
     for s = 17, 30 do
        if getPlayerVocation(cid) == s then
         doSetCreatureOutfit(cid, 124, -1)
        end
     end
     --              LEE                --]]
     for l = 33, 46 do
        if getPlayerVocation(cid) == s then
         doSetCreatureOutfit(cid, 125, -1)
        end
     end
     --             SHIKAMARU           --]]
     for k = 47, 59 do
        if getPlayerVocation(cid) == k then
         doSetCreatureOutfit(cid, 126, -1)
        end
     end  
         
   
   return true
end

Fiz assim, sabe fazer a tag ? 

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

  • Respostas 27
  • Visualizações 1.5k
  • 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

Se estamos falando de vocações, estão você tenta assim:
 
Vá em data/movements/scripts e cria um arquivo chamado televoc.lua

function onStepIn(cid, item, pos)

	-- NARUTO
	if getPlayerVocation(cid) == 30 then
		setPlayerVocation(cid, math.random(876, 877))
	end
	
	-- SASUKE
	if getPlayerVocation(cid) == 94 then
		setPlayerVocation(cid, math.random(878, 879))
	end
	
	-- SAKURA
	if getPlayerVocation(cid) == 293 then
		setPlayerVocation(cid, math.random(880, 881))
	end
   
	return true
end

Agora em data/movements/movements.xml adicione a seguinte linha:

<movevent type="StepIn" actionid="20013" event="script" value="televoc.lua"/>

Agora vá no seu map editor, vai nas propriedades do seu teleport, e coloque 20013 em actionid.

Atenciosamente,

Bruno Minervino

Postado
  • Autor

Man deu esse erro:

post-127785-0-42372300-1422556181_thumb.

 

Eu criei um arquivo em moviments/scripts chamado gvg.lua, e add os script e dps add a tag no moviments.xml

 

 

Obs: È pq irei fazer uma guerra, AKATSUKI X ANBU.

 

 

 

edit:

function onStepIn(cid, item, pos)

	-- NARUTO
	if getPlayerVocation(cid) == 30 then  --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(876, 877)) --- NÃO ENTENDI
	end
	
	-- SASUKE
	if getPlayerVocation(cid) == 94 then --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(878, 879)) --- NÃO ENTENDI
	end
	
	-- SAKURA
	if getPlayerVocation(cid) == 293 then --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(880, 881)) --- NÃO ENTENDI
	end
   
	return true
end

Obs: ve se pode por position pra teleportar o player.

Editado por Storm Night (veja o histórico de edições)

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

Man deu esse erro:

attachicon.gifScreenshot_2.png

 

Eu criei um arquivo em moviments chamado gvg.lua, e add os script e dps add a tag no moviments.lua

 

 

Obs: È pq irei fazer uma guerra, AKATSUKI X ANBU.

 

 

 

edit:

function onStepIn(cid, item, pos)

	-- NARUTO
	if getPlayerVocation(cid) == 30 then  --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(876, 877)) --- NÃO ENTENDI
	end
	
	-- SASUKE
	if getPlayerVocation(cid) == 94 then --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(878, 879)) --- NÃO ENTENDI
	end
	
	-- SAKURA
	if getPlayerVocation(cid) == 293 then --- NÃO ENTENDI
		setPlayerVocation(cid, math.random(880, 881)) --- NÃO ENTENDI
	end
   
	return true
end
Obs: ve se pode por position pra teleportar o player.

 

Ahhhhhhhhhhhhhhhh

Agora eu entendi

Então me passa todos os ids das vocações e o looktype AKATSUKI e ANBU de cada um.

Atenciosamente,

Bruno Minervino

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.6k

Informação Importante

Confirmação de Termo