diff options
author | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:59 +0200 |
---|---|---|
committer | autocommitter <autocommitter@linux-forks.de> | 2024-04-22 14:51:59 +0200 |
commit | c6612d4e4b59a03d097a494eee4c714f8b88f123 (patch) | |
tree | 50ef30c504becbbe22501425d3516a0f7da17c16 /ondemand/init_code.lua | |
parent | 59a952d044d64bf188ec02b98d83b1bdc0a08112 (diff) | |
download | luaatc_envs-c6612d4e4b59a03d097a494eee4c714f8b88f123.tar.gz luaatc_envs-c6612d4e4b59a03d097a494eee4c714f8b88f123.tar.bz2 luaatc_envs-c6612d4e4b59a03d097a494eee4c714f8b88f123.zip |
State at 2020-04-06
Diffstat (limited to 'ondemand/init_code.lua')
-rw-r--r-- | ondemand/init_code.lua | 24 |
1 files changed, 24 insertions, 0 deletions
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 |