Administrator xpro 2,407 Posted December 10, 2024 Administrator Share Posted December 10, 2024 This quest will automatically change from day to night and vice versa depending on the time. @-) - When it is 19:00, it will be night - When it is 08:00 it will be day. quest dynamic_day_night begin state start begin when login or logout begin local ora = os.date("%H") if (os.date("%H")) >= "19" or (os.date("%H")) <= "07" then if game.get_event_flag("xmas_boom") == 0 then game.set_event_flag("xmas_boom", 1) end notice ( "[Server] At 8:00 a.m., the sun will once again pour its warm rays over these lands." ) else if game.get_event_flag("xmas_boom") == 1 then game.set_event_flag("xmas_boom", 0) end notice ( "[At 19:00 the sun will set." ) end end end end Quote Link to comment Share on other sites More sharing options...
Metin2PServers Bot Metin2 Bot 5 Posted December 10, 2024 Metin2PServers Bot Share Posted December 10, 2024 Thank you for the post xpro Now we will take care that your topic reaches many people by adding tags Forum Description : Metin2 Server Files, Server Files, Metin2 Private Servers, Metin2, Metin2 Systems, C++ and Python, Metin2 Home Pages, Metin2 Private Server, Metin2 Download, Metin2 Support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2. Tags: #Metin2 Server Files, #Server Files, #Metin2 Private Servers, #Metin2, #Metin2 Systems, #C++ and Python, #Metin2 Home Pages, #Metin2 Private Server, #Metin2 Download, #Metin2 Support, #Metin2 Forum, #Metin2 Pvp Servers, #Errors, #Bugs, #Requests, #Metin2 Pvp #Forum . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.