antiblock
Rodnia | Alpha & Omega
  • Chatbox

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

item com menu de escolha

Question

Boas, alguém me pode dar uma base de um npc com 4 escolhas possíveis de item a receber?

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Explica-te melhor com um exemplo ou assim, e btw... é tudo à base daquilo que já pediste com um bocadinho de lógica.

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

Exemplo das linhas de cod que sei kkk:

say_title("Anel:")

say("Olá António!")

say("Tenho 4 tipos de vacas, podes escolher apenas 1"!)

 

Vaca verde

pc.give_item2(vnum, 1)
Vaca Amarela

pc.give_item2(vnum, 1)
Vaca Rosa

pc.give_item2(vnum, 1)
Vaca Roxa

pc.give_item2(vnum, 1)

Share this post


Link to post
Share on other sites
  • 0
quest A begin
    state start begin
        when B.chat begin
            say_title("Recompensa do joaquim")
            say("")
            say("")
            say("")
            say_reward("Que item quer então?")
            local s = select("1", "2", "3", "4", "Cancelar")
            if s == 1 then
                pc.give_item2(C, 1)
            elseif s == 2 then
            	pc.give_item2(C, 1)
            elseif s == 3 then
            	pc.give_item2(C, 1)
        	elseif s == 4 then
            	pc.give_item2(C, 1)
            else
            	return
            end
        end
    end
end

 

A - Nome da Quest

B - ID do NPC

C - ID dos Items

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