antiblock
https://arwen2.global/
  • Chatbox

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

NPC QUE DA LVL

Question

Boas comunidade!

Estou precisando de uma quest para um npc dar level a um player...

achei duas porem  uma não funciono e  a outra estava com link off

desde ja agradeço!

Share this post


Link to post
Share on other sites

9 answers to this question

  • 1
quest npc_nivel begin
    state start begin
        when 33002.click begin
        	say("Queres nível")
			local escolha = select("Sim", "Não")
			if escolha == 1 then
    			pc.set_level(99)
			else
    			return
        	end
    	end
	end
end

Faltava 1 end...

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 1

Basta usares a função pc.set_level(<nível>).

 

quest npc_nivel begin
	state start begin
		when xxx.click begin
			pc.set_level(105)
		end
	end
end

 

Share this post


Link to post
Share on other sites
  • 1
5 horas atrás, Dodoxbds disse:

Deu certo, obrigadoo!!!

Se nao for pedir demais, sera que tem como por uma mensagem perguntando se a pessoa quer ou nao pegar o level e ai pra pegar tem que clicar sim?

Desculpa minha ignorancia, ainda nao entendo muito de quests

say("Queres nível")
local escolha = select("Sim", "Não")
if escolha == 1 then
	pc.set_level(105)
else
	return

 

Share this post


Link to post
Share on other sites
  • 0
Em 03/10/2020 em 07:40, Karbust disse:

Basta usares a função pc.set_level(<nível>).

 


quest npc_nivel begin
	state start begin
		when xxx.click begin
			pc.set_level(105)
		end
	end
end

 

Deu certo, obrigadoo!!!

Se nao for pedir demais, sera que tem como por uma mensagem perguntando se a pessoa quer ou nao pegar o level e ai pra pegar tem que clicar sim?

Desculpa minha ignorancia, ainda nao entendo muito de quests

Share this post


Link to post
Share on other sites
  • 0
1 hora atrás, Karbust disse:

say("Queres nível")
local escolha = select("Sim", "Não")
if escolha == 1 then
	pc.set_level(105)
else
	return

 

Obrigadaaaao meu ajudou muito 

Share this post


Link to post
Share on other sites
  • 0
14 horas atrás, Karbust disse:

say("Queres nível")
local escolha = select("Sim", "Não")
if escolha == 1 then
	pc.set_level(105)
else
	return

 

Boas... testei aqui nao deu pra por o texto :( montei de duas maneiras a quest, vou por abaixo para voce ver...

 

a primeira tentei assim:

quest npc_nivel begin
    state start begin
        when 33002.click begin
        say("Queres nível")
local escolha = select("Sim", "Não")
if escolha == 1 then
    pc.set_level(99)
else
    return
 

a segunda tentei assim:

quest npc_nivel begin
    state start begin
        when 33002.click begin
        say("Queres nível")
local escolha = select("Sim", "Não")
if escolha == 1 then
    pc.set_level(99)
else
    return
        end
    end
end

 

 

as duas deram erros, desculpa te incomodar com isso rs, é que ficarem mais topzera se tivesse as escritas, mas se nao der nao tem problema

Share this post


Link to post
Share on other sites
  • 0

De todas as maneiras mencionadas no tópico para dar nível o jogador vai ser desconectado, usa a seguinte função que não terás esse tipo de problema.

 

			while pc.get_level() < 90 do
				pc.give_exp2(pc.get_next_exp())
			end

Onde está 90 coloca o nível que desejas que o jogador receba.

Share this post


Link to post
Share on other sites
  • 0
5 horas atrás, Karbust disse:

quest npc_nivel begin
    state start begin
        when 33002.click begin
        	say("Queres nível")
			local escolha = select("Sim", "Não")
			if escolha == 1 then
    			pc.set_level(99)
			else
    			return
        	end
    	end
	end
end

Faltava 1 end...

Obrigado amigo, vou testar anoite 🙏

Share this post


Link to post
Share on other sites
  • 0
Em 06/10/2020 em 09:35, Karbust disse:

quest npc_nivel begin
    state start begin
        when 33002.click begin
        	say("Queres nível")
			local escolha = select("Sim", "Não")
			if escolha == 1 then
    			pc.set_level(99)
			else
    			return
        	end
    	end
	end
end

Faltava 1 end...

Só lembrando de voltar aqui para te agradecer, deu super certo, obrigadão mesmo rs

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