summaryrefslogtreecommitdiff
path: root/ondemand/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ondemand/init_code.lua')
-rw-r--r--ondemand/init_code.lua24
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