diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:45 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:45 +0200 |
commit | 0b14726c5539782a60d2f4beaed2cfca74a50f7a (patch) | |
tree | 1de6e16c565f7bb9806552fc587d7eac870b6b00 /nlvcross/nodes/(105,16,-75).lua | |
download | luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.gz luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.tar.bz2 luaatc_envs-0b14726c5539782a60d2f4beaed2cfca74a50f7a.zip |
State at 2019-12-13
Diffstat (limited to 'nlvcross/nodes/(105,16,-75).lua')
-rw-r--r-- | nlvcross/nodes/(105,16,-75).lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nlvcross/nodes/(105,16,-75).lua b/nlvcross/nodes/(105,16,-75).lua new file mode 100644 index 0000000..ebeedf7 --- /dev/null +++ b/nlvcross/nodes/(105,16,-75).lua @@ -0,0 +1,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
\ No newline at end of file |