antiblock
Rodnia | Alpha & Omega
  • Chatbox

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

Qual O Erro Dessa Quest!

Question

Olá boas alguem sabe me informar qual erro desta quest.
Gostaria que o npc dessa quest, pedisse 3 itens e em troca dava 1 item escolhido. na janela de menu.

quest sistematroca begin
    state start begin
        when 20006.click beginsay_title("Trocar Carteira Vermelha")
		say("")say("Se possuir por 3 Carteira posso lhe dar ")
		say("algum item em troca.")
		say("Não pense que sou louco sou apenas um colecionador")
		say("Deseja trocar?")
		say("")
		say("")
		say_reward("Você precisa de 3 Carteira Vermelha")
		local s = select ("Sim","Não") == 1 then 
		if pc.count_item(50023) < 1 then 
		say("Nao tens o Item")
		returnendsay("Escolha o item que quer em troca:")
		local s = select("Esfera da Benção","Porção Sagaz","Liutão","Xama")
		if s < 5 thenpc.give_item2(({2000,20250,20750,20500})[s],1)
		end
		end
		end
		end
	end

Desde já obrigado a todos!

Saudações!

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

try this 

 

quest sistematroca begin    state start begin        when 20006.click beginsay_title("Trocar Carteira Vermelha")say("")say("Se possuir por 3 Carteira posso lhe dar")say("algum item em troca.")say("Não pense que sou louco sou apenas colecionador")say("Queres Trocar?")say("")say("")say_reward("Você precisa de 3 carteira vermelha")local s = select ("Sim","Nao")if s == 1 thenif pc.count_item (50023) >= 1 thenpc.remove_item (50023)say("Escolha o item que quer em troca:")local h = select ("Esfera da Benção","Porção Sagaz","Liutão")if h == 1 thenpc.give_item2(2000)setskin ( NOWINDOW )elseif h == 2 thenpc.give_item2(20250)setskin ( NOWINDOW )elseif h == 3 thenpc.give_item2(20750)setskin ( NOWINDOW )elseif h == 4 thenpc.give_item2(20500)setskin ( NOWINDOW )elseif s == 2 thenendendendendendend

 

E diz se funcionou, não sou muito bom na área de quests mas dou um cheiro

Share this post


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

Tens um end a mais.

 

Depois de ter 'aprofundado' a quest, reparei que tem certos erros.

Deixo aqui a quest já corrigida:

quest sistematroca begin
	state start begin
		when 20006.click begin
			say_title("Trocar Carteira Vermelha")
			say("")
			say("Se possuir por 3 Carteira posso lhe dar ")
			say("algum item em troca.")
			say("Não pense que sou louco sou apenas um colecionador")
			say("Deseja trocar?")
			say("")
			say("")
			say_reward("Você precisa de 3 Carteira Vermelha")
			local s = select("Sim","Não")
			
			if s == 2 then
			 return
			end
			
			if s == 1 then
			if pc.count_item(50023) < 2 then 
			say("Não tens as 3 carteiras vermelhas.")
			 return
			end
			end
			
			if pc.remove_item(50023,3)
			say("Escolha o item que quer trocar:")
			local s = select("Esfera da Benção","Porção Sagaz","Liutão","Xama")
			if s < 5 then
			pc.give_item2(({2000,20250,20750,20500})[s],1)
			end
			
		end
	end
end

 

Se tiver algum erro, avisa-me.

Share this post


Link to post
Share on other sites
  • 0

me aparece este erro.

sss.png

Share this post


Link to post
Share on other sites
  • 0
quest sistematroca begin
	state start begin
		when 20006.click begin
			say_title("Trocar Carteira Vermelha")
			say("")
			say("Se você possuir 3 Carteira vermelhas posso lhe dar ")
			say("algum item em troca.")
			say("Não pense que sou louca sou apenas uma colecionadora")
			say("depois da morte do meu irmão, eu tento me ocupar com algo")
			say("e colecionar essas carteiras me distrai um pouco.")
			say("Deseja trocar?")
			say_reward("Você precisa de 3 Carteira Vermelha")
			local s = select("Sim","Não")
			
			if s == 2 then
			 return
			end
			
			if s == 1 then
			if pc.count_item(50023) < 2 then 
			say("Você não possui as 3 carteiras vermelhas.")
			 return
			end
			end
			
			if pc.remove_item(50023,3)
			say("Escolha o item que deseja receber em troca:")
			local s = select("Esfera da Benção","Porção Sagaz","Liutão","Pedra Arco-iris")
			if s < 5 then
			pc.give_item2(({70024,71101,70003,50512})[s],1)
			end
			
		end
	end
end

o codigo esta com algumas alterações em relação a postada por 

Ted Mosby

Share this post


Link to post
Share on other sites
  • 0
quest sistematroca begin
	state start begin
		when 20006.click begin
			say_title("Trocar Carteira Vermelha")
			say("")
			say("Se você possuir 3 Carteira vermelhas posso lhe dar ")
			say("algum item em troca.")
			say("Não pense que sou louca sou apenas uma colecionadora")
			say("depois da morte do meu irmão, eu tento me ocupar com algo")
			say("e colecionar essas carteiras me distrai um pouco.")
			say("Deseja trocar?")
			say_reward("Você precisa de 3 Carteira Vermelha")
			local s = select("Sim","Não")
			
			if s == 2 then
			 return
			end
			
			if s == 1 then
			if pc.count_item(50023) < 2 then 
			say("Você não possui as 3 carteiras vermelhas.")
			 return
			end
			end
			
			if pc.remove_item(50023,3)
			say("Escolha o item que deseja receber em troca:")
			local s = select("Esfera da Benção","Porção Sagaz","Liutão","Pedra Arco-iris")
			if s < 5 then
			pc.give_item2(({70024,71101,70003,50512})[s],1)
			end
			
		end
	end
end
o codigo esta com algumas alterações em relação a postada por Ted Mosby

Não percebi.

Share this post


Link to post
Share on other sites
  • 0

me aparece este erro.

sss.png

Aqui o erro que me ocorre 

Ted Mosby

Share this post


Link to post
Share on other sites
  • 0

o erro tem a ver say"exemple" ?

Share this post


Link to post
Share on other sites
  • 0

Retira o

if pc.remove_item(50023,3)

Share this post


Link to post
Share on other sites
  • 0

Retira o

if pc.remove_item(50023,3)

Não me retornou mas nenhum erro

Porem qunado clico no NPC nada acontece

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