diff options
Diffstat (limited to 'pad/nodes')
| -rw-r--r-- | pad/nodes/(-897,-8,-3153).lua | 29 | ||||
| -rw-r--r-- | pad/nodes/(-984,10,-3329).lua | 7 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pad/nodes/(-897,-8,-3153).lua b/pad/nodes/(-897,-8,-3153).lua new file mode 100644 index 0000000..13b89b6 --- /dev/null +++ b/pad/nodes/(-897,-8,-3153).lua @@ -0,0 +1,29 @@ +local OPENER = {x=-897,y=-11,z=-3154} + +if event.type == "digiline" then + local catch = event + local prefix = catch.msg:sub(1, 4) + local message, r_prefix + + if catch.channel == "Lig" and prefix == "uput" then + message = F.ick(catch.msg) + + if message ~= nil then + r_prefix = message:sub(1, 3) + end + + if r_prefix ~= nil then + if r_prefix == "ACC" then + interrupt(5) + interrupt_pos(OPENER, "open") + end + digiline_send("pref_sc", message:sub(5)) + end + else + interrupt(5) + end +end + +if event.type == "int" then + digiline_send("pref_sc", "Please insert your transport pass below") +end
\ No newline at end of file diff --git a/pad/nodes/(-984,10,-3329).lua b/pad/nodes/(-984,10,-3329).lua new file mode 100644 index 0000000..e1a0de7 --- /dev/null +++ b/pad/nodes/(-984,10,-3329).lua @@ -0,0 +1,7 @@ +if event.type == "punch" then + if S.acc[event.name] ~= nil then +-- digiline_send("output", "You already own a transport\npass. You can use it at\nany station or top-up your\nrides at a selling point.") +-- else + digiline_send("commit", event.name) + end +end
\ No newline at end of file |
