antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
SINVAL o.O

Por Função "Pc.Get_Level ()"

4 posts in this topic

Bata ir no "quest_functions" e adicionar o seguinte>

pc.set_level
No queslib >

function pc.set_level(x)	while pc.get_level() ~= x do		pc.give_exp2(pc.get_next_exp())	endend
Deixo exemplo de quest com a função>

quest level begin	state start begin		when login with pc.getqf("level") 1 begin			pc.set_level(55) -- a função da o level 55(pode alterar pra outros)			pc.setqf("level", 1)		end	endend  
Fonte EPVP. Edited by ઽiท√αℓ (see edit history)

Share this post


Link to post
Share on other sites
antiblock
Elveron

A função não é dar nível..

A função dá a experiência necessária até chegar ao nível x.

Por outras palavras:

quest login begin
state start begin
	while pc.get_level() < 55 do -- Enquanto o nível do player for menor que 55
		if pc.getqf("iniciar") == 0 then
			pc.setqf("iniciar", 1)
			pc.give_exp2(pc.get_next_exp()) -- Dá a experiência necessária para passar ao seguinte nível
		end
	end
end
end

Espero ter esclarecido.

Share this post


Link to post
Share on other sites

Na mesma uma função que vai ajudar haha

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