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
Sign in to follow this  
KB CRAZY CHANNEL

Dúvida função quest

Question

Boas!

 

Estou a criar uma quest que supostamente dá nível máximo o que acontece é que não sei o EXP que deva inserir para ficar logo com nível máximo...

 

Eu uso:

    pc.give_exp2(461760000)

queria uma função que em vez de EXP desse logo nível máximo!

Share this post


Link to post
Share on other sites

3 answers to this question

  • 1
quest NOMEDAQUEST begin
    state start begin
        when login with pc.get_level() < 120 begin
            local lvl = 120
            if pc.get_level() < 120 then
                while pc.get_level() < lvl do
                    pc.give_exp2(pc.get_next_exp())
                end
            end
        end
    end
end

 

Try it.

Share this post


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

Faz isso, é muito bom. Principalmente quando dezenas de jogadores entrarem do servidor ao mesmo tempo e te lagarem o ch.
 Cria uma função na src para tal, 2 minutos e feito.

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