Jump to content

help for write function quest


Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

Please sign in to comment

You will be able to leave a comment after signing in



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.