antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
divulgadormt2tj

erro na quest

Question

boas sou novo nisso e queria uma quest que determinado item desse uma quantia de xp, tentei usar essa ela instala mas quando clico nada acontece  a type ja ta 18

 

quest lvl begin
    state start begin
        when 30183.use begin
            if pc.get_level() >= 120 then
                syschat("Maximo de exp atingido...") 
                return
            end
                pc.give_exp(2020000000)
                pc.remove_item(30183, 1)
            end
        end 
    end

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0
15 horas atrás, divulgadormt2tj disse:

boas sou novo nisso e queria uma quest que determinado item desse uma quantia de xp, tentei usar essa ela instala mas quando clico nada acontece  a type ja ta 18

 

quest lvl begin
    state start begin
        when 30183.use begin
            if pc.get_level() >= 120 then
                syschat("Maximo de exp atingido...") 
                return
            end
                pc.give_exp(2020000000)
                pc.remove_item(30183, 1)
            end
        end 
    end

creio que seja essa quantia de exp q ta errada.

Share this post


Link to post
Share on other sites
antiblock
Cyphriun
  • 0
47 minutos atrás, Anderson k. Fabris disse:

pc.give_exp(2020000000)

 

usa o pc.get_level se for da nível máximo.

pelo que li na quest ele quer dar essa xp, mas quer bloquear pra ninguem mais usar quando chegar no nv 120

50 minutos atrás, Anderson k. Fabris disse:

pc.give_exp(2020000000)

 

usa o pc.get_level se for da nível máximo.

anderson meu cliente tem as moedas won, porem qnd vou ao armazen trocar ele diz que troca mas n troca, pode me dizer o pq?

Share this post


Link to post
Share on other sites
  • 0
Spoiler

quest bencao_anjos begin
    state start begin
        when 70021.use begin
        if pc.get_level() >=102 and pc.get_level() <=105 then
            pc.give_exp2( 900000000 )
            local a = pc . countitem ( 27001 )
            local b = pc . countitem ( 27002 )
            local c = pc . countitem ( 27003 )
            pc.remove_item(27001 , a)
            pc.remove_item(27002 , b)
            pc.remove_item(27003 , c)
            return
            end
        if pc.get_level() >105 then
            chat ("Já não podes utilizar mais isto!")
            pc.remove_item(70021)
            return
        end
        if pc.get_level() ==105 then
            chat ("Nível máximo atingido!")
            local a = pc . countitem ( 27001 )
            local b = pc . countitem ( 27002 )
            local c = pc . countitem ( 27003 )
            pc.remove_item(27001 , a)
            pc.remove_item(27002 , b)
            pc.remove_item(27003 , c)
            local ep = pc . get_exp ( ) 
            pc . give_exp2 ( - ep ) 
            pc.remove_item(70021)
            return
        end
        pc.give_exp2( 900000000 )
        chat ("Usa este item até o mesmo desaparecer!")
            local a = pc . countitem ( 27001 )
            local b = pc . countitem ( 27002 )
            local c = pc . countitem ( 27003 )
            pc.remove_item(27001 , a)
            pc.remove_item(27002 , b)
            pc.remove_item(27003 , c)
        end
    end
end

 

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