antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
HotCrazy

Duvida - Como Mudar Teleportador de quest para Anel.

Question

Boas comunidade, queria saber como faço para mudar essa quest para coloca em uma Anel.

 

quest anel_teleportador begin
    state start begin
        when letter begin
            send_letter("Teleportador Especial")
    end
        when button or info begin
                    say_title("Olá "..pc.get_name()..",")
                    say("")                    
                    say("Para onde deseja se teleportar?")
                    say("")
            local tele =select ("Cidades", "Mapas Especiais", "Outros", "Fechar")
            if tele == 1 then
            local vilas = select ("Shinsoo - Vila 1", "Shinsoo - Vila 2", "Chunjo - Vila 1", "Chunjo - Vila 2", "Jinno - Vila 1", "Jinno - Vila 2", "Fechar")
                if vilas == 1 then
                    pc.warp(469300, 964200)
                elseif vilas == 2 then
                    pc.warp(360800, 877600)
                elseif vilas == 3 then
                    pc.warp(55700, 157900)
                elseif vilas == 4 then
                    pc.warp(138500, 234900)
                elseif vilas == 5 then
                    pc.warp(969600, 278400)
                elseif vilas == 6 then
                    pc.warp(873100, 242600)
                elseif vilas == 7 then
                send_letter("Teleportador Especial")
                return
            end
            elseif tele == 2 then
                local at = select("Sala de Cristal", "Dragão de Fogo", "Mapa VIP", "Arvore Demoniaca", "Fechar")
                if at == 1 then
                    pc.warp(841200, 1066900)
                elseif at == 2 then
                    pc.warp(608100, 685400)
                elseif at == 3 then
                    pc.warp(83200, 0)
                elseif at == 4 then
                    pc.warp(1110090, 53697)
                elseif at == 3 then
                send_letter("Teleportador Especial")
                    return
            end
            elseif tele == 3 then
                local at = select("Vale Suryong", "Deserto Yonbi", "Montanha Sohan", "Campo Doyama", "Fechar")
                if at == 1 then
                    pc.warp(332900,    745900)
                elseif at == 2 then
                    pc.warp(296500,    547400)
                elseif at == 3 then
                    pc.warp(436400,    215600)
                elseif at == 4 then
                    pc.warp(600800, 687400)
                elseif at == 5 then
                send_letter("Teleportador Especial")
                    return
            end
            elseif tele == 4 then
            send_letter("Teleportador Especial")
                return
            end
        end
    end
end

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Podes usar: when 0000.use begin

 

sendo que o 0000 é o ID do item que queres que usem para abrir a quest

 

Ficaria Qualquer coisa assim:


quest anel_teleportador begin
    state start begin    
        when 0000.use begin

                    say_title("Olá "..pc.get_name()..",")
                    say("")                    
                    say("Para onde .........

Share this post


Link to post
Share on other sites
antiblock
Elveron

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
Sign in to follow this