Legrandfifou

sHORTy

Oct 28th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local status = {"<Enter Card>","<Rejected>","<Granted>"}
  2. local current = 1
  3. local combo = "#2077"
  4. local lastTimer
  5. while true do
  6. local event,arg1,arg2,arg3 = os.pullEvent()
  7. if event == "timer" and arg1 == lastTimer then
  8.   current = 1
  9.   lastTimer = nil
  10.   rs.setOutput("bottom",false)
  11. elseif event == "mag_swipe" then
  12.   if arg1 == combo then
  13.    lastTimer = os.startTimer(3)
  14.    current = 3
  15.    rs.setOutput("bottom",true)
  16.   else
  17.    lastTimer = os.startTimer(3)
  18.    current = 2
  19.   end
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment