antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
hanibalhorus

Porque Meu Npc Não Teleporta Pros Reinos?

Question

Bom tenho um NPC que nao teleporta para o reino amarelo e vermelho

nao teleporta simplesmente fecha quando clico. Oque tem de errado com a script?

todos os outros mapas funcionam

 

 

say ( "Bem vindo ao Metin" )say ( "blabla" )say ( "Voce quer ser teletransportado?" )say ( "blabla" )say ( "Continue!" )local main_set = select ( "Sim" , "Nao" )if main_set == 2 thensay ( "La prossima volta ti prendo a schiaffi!" )returnendif main_set == 1 thensay ( "Pra onde voce quer ser teletransportado?" )local luogo = select ( "Vale Suryong " , "Forte Waryon" , "Deserto Yonby" , "Montanha Sohan" , "Castelo Imperial" , "Inferno Doyama" , "Outros Mapas" , "Cancelar" )if luogo == 1 thenpc . warp ( 402100 , 673900 )endif luogo == 2 thenpc . warp ( 179500 , 1000 )endif luogo == 3 thenpc . warp ( 217800 , 627200 )endif luogo == 4 thenpc . warp ( 434200 , 290600 )endif luogo == 5 thenpc . warp ( 975200 , 133000 )endif luogo == 6 thenpc . warp ( 599400 , 756300 )endif luogo == 8 thenreturnendif luogo == 7 thenlocal Altre = select ( "Torre do Demonio" , "Floresta" , "Bosque Vermelho" , "Gomi 2" , "INVADIR REINOS" , "Cancelar" )if Altre == 1 thenpc . warp ( 590500 , 110500 )endif Altre == 2 thenpc . warp ( 288700 , 5700 )endif Altre == 3 thenpc . warp ( 1119900 , 70800 )endif Altre == 4 thenpc . warp ( 704100 , 464100 )endif Altre == 6 thenreturnendif Altre == 5 thenlocal Altri = select ( "Centro Azul" , "Centro Vermelho" , "Centro Amarelo" , "Vila 2 Vermelho" , "Vila 2 Amarelo" , "Vila 2 Azul" , "Outros Mapas" , "Cancelar" )if Altri == 1 thenpc . warp ( 969600 ,  278400 )endif Altre == 2 thenpc . warp ( 469300 , 964200 )endif Altre == 3 thenpc . warp ( 55700 , 157900 )endif Altri == 4 thenpc . warp ( 353100 , 882900 )endif Altri == 5 thenpc . warp ( 145500 , 240000 )endif Altri == 6 thenpc . warp ( 863900 , 246000 )endif Altri == 8 thenreturnendif Altri == 7 thenlocal Altr = select ( "Terra dos Gigantes" , "Gruta Chun 1" , "Gruta Chun 2" , "Sair" )if Altr == 1 thenpc . warp ( 828300 , 763500 )endif Altr == 2 thenpc . warp ( 10000 , 1207800 )endif Altr == 3 thenpc . warp ( 241300 , 1275500 )endelseif Altr == 4 thenreturnendendendend

 

Share this post


Link to post
Share on other sites

4 answers to this question

antiblock
Elveron
  • 0

Não sei que raio de código de NPC teleportador é esse.

Comecei há menos de 1 semana a programar em .lua, mas isso é tipo 100% diferente da programação do meu teleportador.

 

Aconselho-te a arranjares outra quest ou então esperares por alguém que olhe para aí e que entenda isso direitinho e te possa ajudar.

Boa sorte com isso.

Share this post


Link to post
Share on other sites
  • 0
quest warpring beginstate start beginwhen 40001.use beginsay_title ( "Anel de Teleporte" )say ( "Queres usar este Anel de Teleporte?" )say ( "Escolhe um si­tio e iras ser teleportado!" )local opzioni =select ("Torre dos Demonios","Cave das Aranhas 2","Floresta 2","Atlantida Piso 1","Atlantida Piso 2","Proximo")if opzioni == 1 thenpc . warp ( 590500 , 110500)elseif opzioni == 2 thenpc . warp ( 665600 , 435200 )elseif opzioni == 3 thenpc . warp ( 1049600 , 0 )elseif opzioni == 4 thenpc . warp ( 0 , 1203200 )elseif opzioni == 5 thenpc . warp ( 241700 , 1274900 )elseif opzioni == 6 thenlocal opzioni2 =select ("Centro do Vale Seungryong","Deserto Yongbi","Templo Hwang","Cave Aranhas 1","Floresta 1","Montanha Sohan","Fim da Atlantida Piso 2","Proximo")if opzioni2 == 1 thenpc . warp ( 333949 , 752560 )elseif opzioni2 == 2 thenpc . warp ( 344000 , 502500 )elseif opzioni2 == 3 thenpc . warp ( 553600 , 144100 )elseif opzioni2 == 4 thenpc . warp ( 60000 , 496000 )elseif opzioni2 == 5 thenpc . warp ( 281600 , 0 )elseif opzioni2 == 6 thenpc . warp ( 436210 , 215744 )elseif opzioni2 == 7 thenpc . warp ( 171700 , 1220400 )elseif opzioni2 == 8 thenlocal opzioni3 =select ("Cidade 1 Azuis","Cidade 2 Azuis","Cidade 1 Amarelos","Cidade 2 Amarelos","Cidade 1 Vermelhos","Cidade 2 Vermelhos","Fechar")if opzioni3 == 1 thenpc . warp ( 969600 , 278400 )elseif opzioni3 == 2 thenpc . warp ( 873100 , 242600 )elseif opzioni3 == 3 thenpc . warp ( 55700 , 157900 )elseif opzioni3 == 4 thenpc . warp ( 138500 , 234900 )elseif opzioni3 == 5 thenpc . warp ( 469300 , 964200 )elseif opzioni3 == 6 thenpc . warp ( 360800 , 877600 )elseif opzioni3 == 7 thenreturnendendendendendend

Share this post


Link to post
Share on other sites
  • 0

 

quest warpring beginstate start beginwhen 40001.use beginsay_title ( "Anel de Teleporte" )say ( "Queres usar este Anel de Teleporte?" )say ( "Escolhe um si­tio e iras ser teleportado!" )local opzioni =select ("Torre dos Demonios","Cave das Aranhas 2","Floresta 2","Atlantida Piso 1","Atlantida Piso 2","Proximo")if opzioni == 1 thenpc . warp ( 590500 , 110500)elseif opzioni == 2 thenpc . warp ( 665600 , 435200 )elseif opzioni == 3 thenpc . warp ( 1049600 , 0 )elseif opzioni == 4 thenpc . warp ( 0 , 1203200 )elseif opzioni == 5 thenpc . warp ( 241700 , 1274900 )elseif opzioni == 6 thenlocal opzioni2 =select ("Centro do Vale Seungryong","Deserto Yongbi","Templo Hwang","Cave Aranhas 1","Floresta 1","Montanha Sohan","Fim da Atlantida Piso 2","Proximo")if opzioni2 == 1 thenpc . warp ( 333949 , 752560 )elseif opzioni2 == 2 thenpc . warp ( 344000 , 502500 )elseif opzioni2 == 3 thenpc . warp ( 553600 , 144100 )elseif opzioni2 == 4 thenpc . warp ( 60000 , 496000 )elseif opzioni2 == 5 thenpc . warp ( 281600 , 0 )elseif opzioni2 == 6 thenpc . warp ( 436210 , 215744 )elseif opzioni2 == 7 thenpc . warp ( 171700 , 1220400 )elseif opzioni2 == 8 thenlocal opzioni3 =select ("Cidade 1 Azuis","Cidade 2 Azuis","Cidade 1 Amarelos","Cidade 2 Amarelos","Cidade 1 Vermelhos","Cidade 2 Vermelhos","Fechar")if opzioni3 == 1 thenpc . warp ( 969600 , 278400 )elseif opzioni3 == 2 thenpc . warp ( 873100 , 242600 )elseif opzioni3 == 3 thenpc . warp ( 55700 , 157900 )elseif opzioni3 == 4 thenpc . warp ( 138500 , 234900 )elseif opzioni3 == 5 thenpc . warp ( 469300 , 964200 )elseif opzioni3 == 6 thenpc . warp ( 360800 , 877600 )elseif opzioni3 == 7 thenreturnendendendendendend

 

Esse é quest , no caso oque eu falei e o NPC Super teleportador

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now