Jump to content
  • 0

help for write function quest


Masrawy220

Question

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
Spoiler

quest exit_all_player begin
    state start begin
        when login begin
            loop_timer("exit_all_player", 5*60) --check 5 m
        end --when
        when exit_all_player.timer begin
            local exit = game.get_event_flag("exit")
            if exit == 1 then
                command("quit")
            end --if
        end --when
    end--state
end --quest

activation: /e exit 1

deactivation: /e exit 0

 

Link to comment
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


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.