blob: ebeedf7425212aa743a5f4a6f1bf9891977fc333 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
local d = os.date()
local m = d.min
if event.train then
atc_send("B0WOL")
end
if m % 10 == 0 then
atc_send("B0WOCD1RSM")
local h = d.hour
local mm = (m + 10)%60
if mm<10 and m>10 then h=h+1 end
digiline_send("depmon", "Train to | Kulbacki Land | Next dep.: | "..h..":"..mm)
else
digiline_send("depmon", "Train to | Kulbacki Land | in "..(9-(m%10)).."m"..(59-d.sec).."s")
interrupt(10)
end
|