antiblock
Elveron
  • Chatbox

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

Quest Capa Bravura

Question


 

Boas Noites gostava que esta quest da capa da bravura tivesse um tempo para executar a tarefa, exemplo de 5 em 5 seg fazer a função "pc.aggregate_monster ()"

e que desse para desactivar 

 

quest NOME begin

state start begin

when ID.use begin

pc.aggregate_monster ()

end

end

end

 

 

 

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0
quest NOME begin
    state start begin
        while pc.getqf("moob_pull") == 1 do
            pc.aggregate_monster()
            wait(5)
        end
        when ID.use with pc.getqf("moob_pull") == 0 begin
            chat("Desactivaste as capas!")            
            pc.setqf("moob_pull", 1)          
        end
        when ID.use with pc.getqf("moob_pull") == 1 begin
            chat("Activaste as capas!")
            pc.setqf("moob_pull", 0)
        end
    end
end
quest NOME begin
    state start begin
        while pc.getqf("moob_pull") == 1 do
            pc.aggregate_monster()
        end
        when ID.use with pc.getqf("moob_pull") == 0 begin
            chat("Desactivaste as capas!")            
            pc.setqf("moob_pull", 1)        
        end
        when ID.use with pc.getqf("moob_pull") == 1 begin
            chat("Activaste as capas!")
            pc.setqf("moob_pull", 0)
        end
    end
end
quest NOME begin
    state start begin
    	local moob_pull = 0
        while moob_pull == 1 do
            pc.aggregate_monster()
            wait(5)
        end
        when ID.use with moob_pull == 0 begin
            chat("Desactivaste as capas!")            
            moob_pull = 1          
        end
        when ID.use with moob_pull == 1 begin
            chat("Activaste as capas!")
            moob_pull = 0
        end
    end
end
quest NOME begin
    state start begin
    	local moob_pull = 0
        while moob_pull == 1 do
            pc.aggregate_monster()
        end
        when ID.use with moob_pull == 0 begin
            chat("Desactivaste as capas!")            
            moob_pull = 1          
        end
        when ID.use with moob_pull == 1 begin
            chat("Activaste as capas!")
            moob_pull = 0
        end
    end
end

 

Uma delas deverá funcionar, não sei como é que o pc.getqf trabalha nem se o wait() funciona em Lua, caso nada funcionar duplica o item e quest do anel anti-exp e modifica a quest (ou mete-a cá).

 

PS: Pede ao New, ele deve saber :Kappa:

Share this post


Link to post
Share on other sites
antiblock
cyber-gamers
  • 0

Como é que nao me lembrei da do anel anty XP obrigado 

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