Jump to content
×
×
  • Create New...

[Event] Activation jour/nuit automatique


Haka47

Recommended Posts

Centre de Téléchargement

Télécharger ( Interne )

Bonsoir à tous,

 

Voila une quête automatisée qui permet de mettre la nuit tout seul les horaires sont fixes mais je ne me souviens plus des heures d'activation désolé.

 

quest nuit begin
   state start begin
       when login or logout begin
           local buff = math.mod(((get_time() - 1283544313)/43200),2)
           if buff >= 1 and game.get_event_flag("xmas_boom") == 1 then
               game.set_event_flag("xmas_boom", 0)
           elseif buff < 1 and game.get_event_flag("xmas_boom") == 0 then
               game.set_event_flag("xmas_boom", 1)
           end
       end
   end
end
 

Si vous ne savez pas implanter une quête, suivez ce tutoriel : Implanter une quête

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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


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.