antiblock
Rodnia | Alpha & Omega
  • Chatbox

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

Qual e o problema?

Question

Boas!

O objectivo desta quest é dar nível 127 ao entregar 30 pijamas, ela faz a leitura dos pijamas, anuncia na geral mas não dá nível nem exp!
Alguém me pode indicar o erro ou o que me esqueci de colocar?

 

quest receber_level begin
	state start begin
		when 20095.chat."Receber Nível 127" begin
			say_title("Mestre GM:")
			say("Olá!")
			say("Com este frio tenho de aquecer a minha familia")
			say("Preciso de 30 pijamas")
			say("Podes obter pijamas ao partir a Pedra Mythology2 no Mapa Upar")
	    	say("Eu sei, tenho bastantes filhos visto no meu tempo não haver televisão.")
	    	say_red("Recompensa: Nível 127")
			local s = select("Entregar Pijamas", "Sair")
			if s == 1 then
				if (pc.count_item(30032) >= 30) then
					pc.remove_item(30032, 30)
					pc.give_exp2(240000000)
					notice_all ("O jogador "..pc.get_name().." chegou ao nível 127!")
				else
					say_red("Não sejas mau, sou velho mas não sou parvo!")
					say_red("Não tens 30 Pijamas!")
					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
quest receber_level begin
	state start begin
		when 20095.chat."Receber Nível 127" begin
			say_title("Mestre GM:")
			say("Olá!")
			say("Com este frio tenho de aquecer a minha familia")
			say("Preciso de 30 pijamas")
			say("Podes obter pijamas ao partir a Pedra Mythology2 no Mapa Upar")
			say("Eu sei, tenho bastantes filhos visto no meu tempo não haver televisão.")
			say_red("Recompensa: Nível 127")
			local s = select("Entregar Pijamas", "Sair")
			if s == 1 then
				if pc.count_item(30032) >= 30 then
					pc.remove_item(30032, 30)
					while pc.get_level() < 127 do
						pc.give_exp2(pc.get_next_exp())
					end
					notice_all("O jogador "..pc.get_name().." chegou ao nível 127!")
				else
					say_red("Não sejas mau, sou velho mas não sou parvo!")
					say_red("Não tens 30 Pijamas!")
					return
				end
			else
				return
			end
		end
	end
end

 

Share this post


Link to post
Share on other sites
antiblock
Elveron

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