Posted 04 April 2013 - 08:21 AM
Today i was messing around with Lua doing my own business when i had an idea :lol:/> thought i would make a password lock with an alert if someone does the password wrong! So here is what i have made up you can download/view it here:- lock:- paste bin.com/QBj5CJap receiver:- pastebin.com/bi26zfPi
Lock *universal*
Receiver *universal*
*I cannot help you unless you tell me the error message*
i hoped i helped with future Security Systems! ;)/>
i will also take program requests
EDIT1:- I will realease my rednet turtle program once i get it done!
Lock *universal*
print"Enter Password"
rednet.open("side") -- you need a modem on the appropriate side
while true do -- makes the thing repeat
x = io.read()
if x == "password here" then
rs.setOutput("side", true) -- replace side with the side the door is on
sleep(number) -- set the number to whatever length you want the door to be opened for
rs.setOutput("side", false)
else
rednet.broadcast("message")
os.shutdown()
end
end
Receiver *universal*
print"this is alert receiver 1"
rednet.open("side")
while true do
id, x = rednet.receive()
print(x)
end
if there is something wrong with my code let me know with the error message*I cannot help you unless you tell me the error message*
i hoped i helped with future Security Systems! ;)/>
i will also take program requests
EDIT1:- I will realease my rednet turtle program once i get it done!