Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest xmas_boom begin
- state start begin
- when login begin
- local hour = tonumber(os.date("%H"))
- local xmas_boom = game.get_event_flag("xmas_boom")
- if hour >= 7 and hour <= 22 then
- if xmas_boom == 1 then
- game.set_event_flag("xmas_boom", 0)
- end
- else
- if xmas_boom == 0 then
- game.set_event_flag("xmas_boom", 1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment