summaryrefslogtreecommitdiff
path: root/nlvcross/nodes/(1801,8,-43).lua
blob: 71cd7d6f0b4a63a7a98c64a5d44ef7f1cdaddbf2 (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 == 5 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 | Marcuse Street | Next dep.: | "..h..":"..mm)
else
digiline_send("depmon", "Train to | Marcuse Street | in "..(4-(m%10)).."m"..(59-d.sec).."s")
interrupt(10)
end