Vankka 0 Posted August 10, 2016 Share Posted August 10, 2016 So today i wanted the Magnetic card reader output a redstone signal Mag card reader: https://github.com/PC-Logix/OpenSecurity/wiki/Blocks#mag-card-reader Well i don't have progress because the wiki is hard to understand and i'm new to lua Quote Link to post Share on other sites
0 Saddamo 3 Posted August 11, 2016 Share Posted August 11, 2016 try to use program which is here already and works, you can tweak it, its easy to make redstone output... Quote Link to post Share on other sites
0 Vankka 0 Posted August 12, 2016 Author Share Posted August 12, 2016 Where? Link? Quote Link to post Share on other sites
0 Solution Vankka 0 Posted August 12, 2016 Author Solution Share Posted August 12, 2016 Okay just found the solution here is the code: (with the codes) local event = require("event") local term = require("term") local component = require('component') local rs = component.redstone term.clear() print("Survailence Record") print("-------------------------") while true do e = {event.pull('magData')} a = e[3] b = e[4] if b == "Password here" then term.write("Access granted\n") rs.setOutput(2,15) os.sleep(2) rs.setOutput(2,0) else if b == "Password here" then term.write("Access granted MasterCard\n") rs.setOutput(2,15) os.sleep(2) rs.setOutput(2,0) else term.write("Access denied\n") end end end Quote Link to post Share on other sites
So today i wanted the Magnetic card reader output a redstone signal
Mag card reader: https://github.com/PC-Logix/OpenSecurity/wiki/Blocks#mag-card-reader
Well i don't have progress because the wiki is hard to understand and i'm new to lua
Link to post
Share on other sites