Posted 01 November 2012 - 09:55 PM
This is my first program what it dose is allow you to password up to sixteen doors each with a different password
to install you must have Http enabled or it will be a lot of writing
first open your computer and type pastebin get SeuWv1EN startup
now just reboot the computer and your done.
for the people the don't have http access heres the code
to unlock the console use the admin password witch you should set
you may use and edit this in any way
BUT DONOT repost this code without my permission
I would like to thank
luanub
for helping me fix a bug in the code.
to install you must have Http enabled or it will be a lot of writing
first open your computer and type pastebin get SeuWv1EN startup
now just reboot the computer and your done.
for the people the don't have http access heres the code
to unlock the console use the admin password witch you should set
Spoiler
os.pullEvent = os.pullEventRaw
term.clear()
term.setCursorPos(1,1)
local side = "bottom"--change bottom to the bundeledwire output
local pass1 = "opendoor1"--Change to door 1's password
local pass2 = "opendoor2"--Change to door 2's password
local pass3 = "opendoor3"--Change to door 3's password
local pass4 = "opendoor4"--Change to door 4's password
local pass5 = "opendoor5"--Change to door 5's password
local pass6 = "opendoor6"--Change to door 6's password
local pass7 = "opendoor7"--Change to door 7's password
local pass8 = "opendoor8"--Change to door 8's password
local pass9 = "opendoor9"--Change to door 9's password
local passwordadmin = "passadmin"--change to admins password
print("Welcome to Evolution-Lock v.1.0")
print("Please Enter a Door password")
print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
print("=[roomname]=[roomname]=[roomname]=")--Change [roomname] to the name of your room's
write("Password: ")
local input = read("*")
if input == pass1 then
rs.setBundledOutput(side, colors.red)--change red to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass2 then
rs.setBundledOutput(side, colors.green)--change green to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass3 then
rs.setBundledOutput(side, colors.blue)--change blue to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass4 then
rs.setBundledOutput(side, colors.yellow)--change yellow to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass5 then
rs.setBundledOutput(side, colors.lime)--change lime to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass6 then
rs.setBundledOutput(side, colors.white)--change white to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass7 then
rs.setBundledOutput(side, colors.pink)--change pink to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass8 then
rs.setBundledOutput(side, colors.black)--change black to your wire color
sleep(7)
shell.run ("reboot")
end
if input == pass9 then
rs.setBundledOutput(side, colors.brown)--change brown to your wire color
sleep(7)
shell.run ("reboot")
end
if input == passwordadmin then
term.clear()
term.setCursorPos(1,1)
print("Password correct!")
print("Computer unlocking...")
print("Please type 'reboot' or 'shutdown' before leaving")
os.pullEvent(terminate)
else
term.clear()
term.setCursorPos(1,1)
print("Goodbye!")
sleep(2)
os.reboot()
end
BUT DONOT repost this code without my permission
I would like to thank
luanub
for helping me fix a bug in the code.