antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Ganja Boy

Pedido Quest Teleportador

4 posts in this topic

Boas pessoal, eu estive a tentar criar uma quest mas estou a aprender ainda não percebo muito disto. a que fiz está assim:

 
quest teleporter begin
        state start begin
                when 20089.chat."Viajante" begin
                        say_title ( "Teleportador Especial" )
                        say ( "Olá! ".. pc.get_name() .."" )
                        say ( "Posso Teleportarte para onde quiseres" )
                        say ( "Para onde queres ir?" )
                        local a = select ("Vale dos Orcs","Deserto","Montanha Sohan", "Terra do Fogo","Templo","Mais Mapas")
if a == 1 then
local empire = pc . get_empire ( )
if empire == 1 then
pc . warp ( 402100 , 673900 )
elseif empire == 2 then
pc . warp ( 270400 , 739900 )
elseif empire == 3 then
pc . warp ( 321300 , 808000 )
                        elseif a == 2 then
local empire2 = pc . get_empire ( )
if empire == 1 then
pc . warp ( 217800 , 627200 )
elseif empire == 2 then
pc . warp ( 221900 , 502700 )
elseif empire == 3 then
pc . warp ( 344000 , 502500 )
                        elseif a == 3 then
local empire = pc . get_empire ( )
if empire == 1 then
pc . warp ( 434200 , 290600 )
elseif empire == 2 then
pc . warp ( 375200 , 174900 )
elseif empire == 3 then
pc . warp ( 491800 , 173600 )
                        elseif a == 4 then
local empire4 = pc . get_empire ( )
if empire == 1 then
pc . warp ( 599400 , 756300 )
elseif empire == 2 then
pc . warp ( 597800 , 622200 )
elseif empire == 3 then
pc . warp ( 730700 , 689800 )
                        elseif a == 5 then
pc.warp ( 553600 , 143600 )
elseif a == 6 then
 
                        local a1 = select ("Torre dos Demonios","V1","V2","Floresta","Bosque Rubro","Mais Mapas")
                        if a2 == 1 then
                                pc.warp ( 590500 , 110500 )
                        elseif a2 == 2 then
                                pc.warp ( 60000 , 496700 )
                        elseif a2 == 3 then
                                pc.warp ( 704100 , 463600 )
                        elseif a2 == 4 then
                                pc.warp ( 288900 , 5700 )
                        elseif a2 == 5 then
                                pc.warp ( 1119900 , 70800 )
                        elseif a2 == 6 then
 
local a3 = select ("Entrada Atlantida","Atlantida 2","Sala de Cristal","Cancelar")
if a3 == 1 then
pc.warp ( 9900 , 1203200 )
elseif a3 == 2 then
pc.warp ( 241600 , 1274600 )
elseif a3 == 3 then
pc.warp ( 177900 , 1220400 )
elseif a3 == 4 then
return
end
end
end
end
end
end
 
Já estive a ver e está mal, será que alguém me poderia dizer ou fazer uma quest assim com esses warps e nessa ordem sff
Ou então apenas me dizer que tenho de mal, penso que seja a parte do vale, deserto, montanha, e terra do fogo, eu gostaria que quando cada império fizesse o teleporte fosse directamente para o seu respectivo lado no mapa
Desde já agradeço a ajuda

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

tentei arrumar a quest mais não a testei ingame

teste se houver algum problema eu testo ela ingame pra você

 

 

quest teleporter begin
state start begin
when 20089.chat."Viajante" begin
say_title ("Teleportador Especial")
say ("Olá! ".. pc.get_name() .."")
say ("Posso Teleportarte para onde quiseres")
say ("Para onde queres ir?")
local a = select ("Vale dos Orcs", "Deserto", "Montanha Sohan", "Terra do Fogo", "Templo", "Mais Mapas")
 
if a == 1 then
local empire = pc . get_empire ( )
if empire == 1 then
pc . warp ( 402100 , 673900 )
elseif empire == 2 then
pc . warp ( 270400 , 739900 )
elseif empire == 3 then
pc . warp ( 321300 , 808000 )
 
elseif a == 2 then
local empire2 = pc . get_empire ( )
if empire2 == 1 then
pc . warp ( 217800 , 627200 )
elseif empire2 == 2 then
pc . warp ( 221900 , 502700 )
elseif empire2 == 3 then
pc . warp ( 344000 , 502500 )
 
elseif a == 3 then
local empire3 = pc . get_empire ( )
if empire3 == 1 then
pc . warp ( 434200 , 290600 )
elseif empire3 == 2 then
pc . warp ( 375200 , 174900 )
elseif empire3 == 3 then
pc . warp ( 491800 , 173600 )
 
elseif a == 4 then
local empire4 = pc . get_empire ( )
if empire4 == 1 then
pc . warp ( 599400 , 756300 )
elseif empire4 == 2 then
pc . warp ( 597800 , 622200 )
elseif empire4 == 3 then
pc . warp ( 730700 , 689800 )
 
elseif a == 5 then
pc.warp ( 553600 , 143600 )
 
 
elseif a == 6 then
local a1 = select ("Torre dos Demonios","V1","V2","Floresta","Bosque Rubro","Mais Mapas")
if a2 == 1 then
pc.warp ( 590500 , 110500 )
elseif a2 == 2 then
pc.warp ( 60000 , 496700 )
elseif a2 == 3 then
pc.warp ( 704100 , 463600 )
elseif a2 == 4 then
pc.warp ( 288900 , 5700 )
elseif a2 == 5 then
pc.warp ( 1119900 , 70800 )
 
elseif a2 == 6 then
 
local a3 = select ("Entrada Atlantida","Atlantida 2","Sala de Cristal","Cancelar")
if a3 == 1 then
pc.warp ( 9900 , 1203200 )
elseif a3 == 2 then
pc.warp ( 241600 , 1274600 )
elseif a3 == 3 then
pc.warp ( 177900 , 1220400 )
elseif a3 == 4 then
return
end
end
end
end
end
end
end
end
end
end

Share this post


Link to post
Share on other sites

Apenas aparece a primeira Select location, e o unico que teleporta é para o vale, se clicar nos outros ele fecha e não teleporta, e se clicar em mais mapas ele também fecha em vez de mostrar os outros mapas.

Share this post


Link to post
Share on other sites
Sign in to follow this