summaryrefslogtreecommitdiff
path: root/pad/nodes/(-1054,4,-3333).lua
blob: 18a9d4fc6cbf61d1f381d6fad058541c16d09d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local OPENER = {x=-1055,y=1,z=-3333}

if event.type == "digiline" then
  local catch = event
  local prefix = catch.msg:sub(1, 4)
  local message, r_prefix

  if catch.channel == "Fla" 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