This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
karsten100's profile picture

need a pasword/keycard program

Started by karsten100, 28 September 2012 - 10:44 PM
karsten100 #1
Posted 29 September 2012 - 12:44 AM
hi I need a keycard program here is my idea for one, it should be that when you put in the keycard you will have to enter a passcoad to open a door or something please help i have the coad for the password program:


local function clearScreen()
term.clear()
term.setCursorPos(1, 1)
end
while true do
clearScreen()
print ("Type password to enter {LOCATION}!")
if read("*") == "{PASSWORD}" then
clearScreen()
print("Correct Password!")
print("Open door for how long?")
local a = read()
clearScreen()
print("Opening door!")
sleep (1)
redstone.setOutput("{SIDE OF DOOR}",true)
clearScreen()
sleep (a)
else
clearScreen()
print("Incorrect Password, please try again.")
sleep (5)
end
end
Cranium #2
Posted 29 September 2012 - 12:45 AM
Wrong place to post this.
NIN3 #3
Posted 29 September 2012 - 12:48 AM
Move this too http://www.computercraft.info/forums2/index.php?/forum/14-ask-a-pro/ And then we can all add our ideas to the pot for you.
Cranium #4
Posted 29 September 2012 - 01:04 AM
Bear in mind though, if you ain't got nothing to show, I am far less likely to help. Start some of it on your own, and I would be happy to throw my two cents in.
karsten100 #5
Posted 29 September 2012 - 11:08 PM
ok i will move it
ficolas #6
Posted 16 October 2012 - 07:05 PM
Not here and there are lots of shits like so everywhere… I consider them.spam :/