Jump to content

Recommended Posts

Hi all devs,

i build quset to reboot server
but i need add function to quit all player

i added this function in quest
command("quit")

but the func not work on all 
but work with me only
any way to fix this problem

also need way to enable any func at the moment of activate func
sorry iam bad in eng..

:D

Link to comment
https://metin2.dev/topic/11959-help-for-write-function-quest/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Active Member

Why would you do that ? that's so dumb...

 

Use /shutdown command as IMPLEMENTOR

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

 

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

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.