From c6612d4e4b59a03d097a494eee4c714f8b88f123 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:51:59 +0200 Subject: State at 2020-04-06 --- ondemand/init_code.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ondemand/init_code.lua (limited to 'ondemand/init_code.lua') diff --git a/ondemand/init_code.lua b/ondemand/init_code.lua new file mode 100644 index 0000000..83366f1 --- /dev/null +++ b/ondemand/init_code.lua @@ -0,0 +1,24 @@ +S.ori = POS(24,5,3) +S.ewd = POS(209,17,-190) +S.infoc = POS(49,13,-115) +S.infoo = POS(33,7,6) +S.infoe = POS(197,19,-185) +S.avail = true +F.call = function(msg) +if not S.avail then +return +end +S.avail = false +interrupt_pos(S.ori,msg) +interrupt_pos(S.ewd,msg) +F.send_info("Trein in transit nouw! Pleise be patient nouw!") +end + +F.send_info = function(msg) +interrupt_pos(S.infoc,msg) +interrupt_pos(S.infoo,msg) +interrupt_pos(S.infoe,msg) +end +F.send_station = function(name) +F.send_info("Trein is at "..name..". Pleise enter your destination!") +end \ No newline at end of file -- cgit v1.2.3