Posted 12 July 2012 - 04:28 PM
i am using a Code lock i found online for my reactor chamber and i added in that when you do the password wrong there is a redstone output on for 1 sec in the back that goes to a toggle latch that activated a alarm, but whenever i put one of the codes the redstone goes of anyways, could you help me?
This is the incorrect password code
This is the incorrect password code
else
term.clear()
term.setCursorPos(1,1)
print("Password incorrect!")
redstone.setOutput("back", true)
sleep(1)
redstone.setOutput("back", false)
os.reboot()
end
This is the player 3 (me) password
if input == password3 then
term.clear()
term.setCursorPos(1,1)
print("Password correct!")
print("Welcome LlywMiner")--name of user 3
rs.setOutput(right,true)
sleep(4)
rs.setOutput(right,false)
os.reboot()
end