antiblock
Rodnia | Alpha & Omega
  • Chatbox

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

Erro Em Uma Quest

Question

Boas Familia Cyber. Estou aqui com um problema em uma quest se podessem ajudar agradecia :D.

 

Quest:

 

 

quest pedra begin    

    state start begin        
        when 20041.click begin
             say_title("Trocar Pedaço de Pedra")
             say("")
             say("Se tiveres 10 Pedaços de Pedra, podes vir aqui trocar ")
             say("por uma Perola.")
             say("")
             say("Queres Trocar?")
             say("")
             say("")
             say_reward("Necessitas de 10 Pedaços de Pedra")local s = select ("Sim","Não") == 1 then
             if pc.count_item(27990,10) < 1 then
             say("Nao tens o Item")
             return
             end
             say("Escolhe a Perola que precisas:")local s = select("Vermelha","Azul","Branca","Ostra")
             if s < 5 then
             pc.give_item2(({27994,27993,27992,27987}),1)
           end
       end
  end 

O Erro é o seguinte: syntax error: [string "start"]:9: unexpected symbol near 'then' pedra.quest:21:Abort (Core Dumped)

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

quest pedra begin

state start begin

when 20041.click begin

say_title("Trocar Pedaço de Pedra")

say("")

say("Se tiveres 10 Pedaços de Pedra, podes vir aqui trocar ")

say("por uma Perola.")

say("")

say("Queres Trocar?")

say("")

say("")

say_reward("Necessitas de 10 Pedaços de Pedra")

local s = select ("Sim","Não")

if s == 1 then

if pc.count_item(27990, 10) < 1 then

say("Nao tens o Item")

return

end

say("Escolhe a Perola que precisas:")

local j = select("Vermelha","Azul","Branca","Ostra")

pc.give_item2(({27994,27993,27992,27987})[j],1)

end

end

end

end

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0
quest pedra begin    
	state start begin        
		when 20041.click begin
			say_title("Trocar Pedaço de Pedra")
			say("")
			say("Se tiveres 10 Pedaços de Pedra, podes vir aqui trocar ")
			say("por uma Perola.")
			say("")
			say("Queres Trocar?")
			say("")
			say("")
			say_reward("Necessitas de 10 Pedaços de Pedra")
			local s = select ("Sim","Não")
			if s == 1 then
				if pc.count_item(27990, 10) < 1 then
					say("Nao tens o Item")
					return
				end
				say("Escolhe a Perola que precisas:")
				local j = select("Vermelha","Azul","Branca","Ostra")
				pc.give_item2(({27994,27993,27992,27987})[j],1)
			end
		end
	end
end 

Muito Obrigado. +1 :D

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