summaryrefslogtreecommitdiff
path: root/pad/nodes/(-1210,-3,-3345).lua
blob: 4d23b393e7dc341f0651aa6b1a3c67cf2c5cec43 (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=-1210,y=-6,z=-3345}

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

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