;'Lottery System' - Timed World-Event

Hour = GetHour()
Minute = GetMinute()

;7 PM
LotteryHour = 19

If Hour < LotteryHour 
	;Calculate the time left until 7PM, in millaseconds,
	;and send a timer.
	
	Hour = LotteryHour - Hour
	;Negative one, because the minutes weren't included in the hour
	Hour = Hour - 1
	Minute = 60 - Minute
	Minute = Minute + Floor(Hour * 60)
	Seconds = Minute * 60
	CallTime = (Seconds * 1000)
	
	Timer(555,CallTime,0,0,0)
EndIf

Continue = 1