antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
KB CRAZY CHANNEL

[Dúvida] QUEST

Question

Boas...

Eu gostaria de colocar a quest em baixo a fazer o inverso, ou seja em vez de trocar item por yang trocar yang pelo item, gostaria de perceber a diferença de códigos!

 

As falas já estão feitas para o efeito que quero, falta-me só editar as funções

 

quest comprar_cheques begin
    state start begin
        when 20095.chat."Comprar Cheques" begin
            say_title("Cheques:")
            say("Olá!")
            say("Eu Vendo Cheques!")
            say("")
            say_title("Preço: 1.000.000.000 Yang")
            say_reward("Desejar Comprar 1 Cheque?")

            local s = select("Sim", "Não")
            if s == 1 then
                if (pc.count_item(95002) >= 1) then
                    pc.remove_item(95002)
                    pc.change_money(1000000000)

                else
                    say("Não tens Yang!")
                    return
                end
            end
            if s == 2 then
                return
            end
        end
    end
end

 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

basta fazer assim se não me engano

 

                    pc.change_money(-1000000000)

  pc.give_item(95002, 1)

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega

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