Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ARE YOU SERIOUSLY TRYING TO BREAK IN?
- local server = 108
- rednet.open("back")
- local p = peripheral.wrap("top")
- while true do
- p.setInsertCardLight(true)
- local event, p1 = os.pullEventRaw("mag_swipe")
- rednet.send(server, "checkSwipe:" .. p1)
- local id, message
- repeat
- id, message = rednet.receive()
- until id == server
- if message == "true" then
- p.setInsertCardLight(false)
- rs.setOutput("left", true)
- sleep(2)
- rs.setOutput("left", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement