antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
VMP.

[Quest]Mensagem De Venda/Troca De Itens

15 posts in this topic

antiblock
diamwall

Normalmente quando alguém posta algo é porque funciona xD

Share this post


Link to post
Share on other sites

Nem sempre xD

Share this post


Link to post
Share on other sites

Tá aqui a quest corrigida.

 

quest nome begin  state start begin    when 20095.chat."Comércio" begin      say_title("Anunciador de Comércio")      say("Aqui podes anunciar a tua proposta de comércio")      say("por apenas 1kk. A tua mensagem irá ser divulgada")      say("por todos os reinos. Percisas também de nivel 15")      say_reward("Requere nível 15 e 1.000.000 yang")      local menu = select("Anunciar uma Venda", "Anunciar uma Troca", "Anunciar uma Compra", "Não quero Anunciar")      if menu == 1 then        say_title("Anunciar uma Venda")        say("Escreva apenas o nome do item que quer vender")        say("as suas caraterísticas e o preço.")        say("A sua mensagem ficará no formato :")        say_reward("Comércio : 'Nick' Vende 'Texto'.")        if pc.gold >= 1000000 and pc . level >= 15 then          pc.change_money(-1000000)          local texto_venda = input ()          notice_all (""..pc.get_name().."Vende"..texto_venda.."")        end      end        if menu == 2 then        say_title("Anunciar uma Troca")        say("Escreva apenas o nome do item que quer trocar")        say("as suas caraterísticas e o item que quer obter.")        say("A sua mensagem ficará no formato :")        say_reward("Comércio : 'Nick' Troca 'Texto'.")        if pc.gold >= 1000000 and pc.level >= 15 then          pc.change_money(-1000000)          local nome_o = input ( )          notice_all ("Comércio :"..pc.get_name().."Troca"..nome_o.."")        end      end        if menu == 3 then        say_title("Anunciar uma Compra")        say("Escreva apenas o nome do item que quer comprar")        say("as suas caraterísticas e quanto deseja por ele.")        say("A sua mensagem ficará no formato :")        say_reward("Comércio : 'Nick' Vende 'Texto'.")        if pc.gold >= 1000000 and pc.level >= 15 then          pc.change_money(-1000000)          local nome_o = input ()          notice_all ("Comércio :"..pc.get_name().."Troca".. nome_o .."")        end      end        if menu == 4 then        say ("Muito obrigado por usar o Anunciador de Comércio")        say ("Boa sorte no seu comércio :] ")     end    end  endend  

Share this post


Link to post
Share on other sites

isso é posta em que npc? capitão?

 

cumprimentos,

Henrique Soares

Share this post


Link to post
Share on other sites

O npc é o 20095

Share this post


Link to post
Share on other sites

onde viste na quest esse npc? :c

Share this post


Link to post
Share on other sites

Na mensagem acima da tua mete essa quest corrigida que vai para o npc 20095

Share this post


Link to post
Share on other sites

e funciona a corrigida?

Share this post


Link to post
Share on other sites

Se está corrigida á partida funciona se não funcionar depois diz qual é erro

Share this post


Link to post
Share on other sites

quest nome begin  
    state start begin    
        when 20003.chat."Comércio" begin      -- Aqui é só mudar o npc que deseja .
            say_title(" Anunciador de Comércio")      
            say("Aqui poderá anunciar a sua proposta de comércio")      
            say("por apenas 1kk. A sua mensagem irá ser divulgada")      
            say("por todos os reinos. Percisa também de nivel 15")      
            say_reward("Requer nível 15 e 1.000.000 gold")      
            local menu = select("Anunciar uma Venda", "Anunciar uma Troca", "Anunciar uma Compra", "Não quero Anunciar")      
                if menu == 1 then        
                    if pc . level < 15 then
                        say("Você não possui nível suficiente")
                        return
                    end
                    if pc . gold < 1000000 then
                        say("você não possui gold suficiente")
                        return
                    end
                    say_title("~ Anunciar uma Venda")        
                    say("Escreva apenas o nome do item que quer vender")        
                    say("as suas caraterísticas e o preço.")        
                    say("A sua mensagem ficará no formato :")        
                    say_reward("Comércio : 'Nick' Vende 'Texto'.")        
                        if pc.gold >= 1000000 and pc . level >= 15 then         
                            pc.change_money(-1000000)          
                            local texto_venda = input ()          
                            notice_all (""..pc.get_name().."Vende"..texto_venda.."")        
                        end      
                end  
                
                if menu == 2 then   
                    if pc . level < 15 then
                        say("Você não possui nível suficiente")
                        return
                    end
                    if pc . gold < 1000000 then
                        say("Você não possui gold suficiente")
                        return
                    end                
                    say_title(" Anunciar uma Troca")        
                    say("Escreva apenas o nome do item que quer trocar")        
                    say("as suas caraterísticas e o item que quer obter.")        
                    say("A sua mensagem ficará no formato :")        
                    say_reward("Comércio : 'Nick' Troca 'Texto'.")        
                        if pc.gold >= 1000000 and pc.level >= 15 then          
                        pc.change_money(-1000000)          
                        local nome_o = input ( )          
                        notice_all ("Comércio :"..pc.get_name().." Troca "..nome_o.."")                        
                        end      
                end
                
                if menu == 3 then    
                    if pc . level < 15 then
                        say("Você não possui nível suficiente")
                        return
                    end
                    if pc . gold < 1000000 then
                        say("Você não possui gold suficiente")
                        return
                    end                
                    say_title(" Anunciar uma Compra")        
                    say("Escreva apenas o nome do item que quer comprar")        
                    say("as suas caraterísticas e quanto deseja por ele.")        
                    say("A sua mensagem ficará no formato :")        
                    say_reward("Comércio : 'Nick' Vende 'Texto'.")        
                        if pc.gold >= 1000000 and pc.level >= 15 then          
                            pc.change_money(-1000000)          
                            local nome_o = input ()          
                            notice_all ("Comércio :"..pc.get_name().."Troca".. nome_o .."")       
                        end      
                end  
                
                    if menu == 4 then        
                        say ("Obrigado pela sua visita ao Anunciador de Comércio")        
                        say ("Boa sorte no seu comércio : ")     
                    end    
        end  
    end
end  

 

Fiz alguma modificações e deu certo, 

desse jeito , caso o player não tenha level ou gold ,

ele avisa antes de mostrar o texto completo e de prosseguir .

cumprimentos . RenanHideki

Edited by Renanhideki (see edit history)

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