Guest User

Untitled

a guest
Aug 14th, 2014
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. quest xmas_boom begin
  2.     state start begin
  3.         when login begin
  4.             local hour = tonumber(os.date("%H"))
  5.             local xmas_boom = game.get_event_flag("xmas_boom")
  6.             if hour >= 7 and hour <= 22 then
  7.                 if xmas_boom == 1 then
  8.                     game.set_event_flag("xmas_boom", 0)
  9.                 end
  10.             else
  11.                 if xmas_boom == 0 then
  12.                     game.set_event_flag("xmas_boom", 1)
  13.                 end
  14.             end
  15.         end
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment