Post by kizuatotekubi on Jan 24, 2015 21:31:11 GMT -5
So this is a computer locking system that you can create and it will lock your computer until a Username and Password are inputted correctly. As it is 1.0 it is only built for one User however, 2.0 will hopefully support more Users. Anything in Color can be edited to your desire. If there is a matching colors correspond to each other and MUST be FOLLOWED!!! Red is the default color. Every file will need an os.pullEvent = os.pullEventRaw AFTER you are sure everything is working or else you will lock your self out and will cause pandemonium in your computer as disk drives will NOT fix it.
Beta1.0: Main system
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Loading Easy Lock V1.0")
sleep(1)
textutils.slowPrint("...")
sleep(1)
textutils.slowPrint("..)
sleep(2)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Easy Lock V1.0 Loaded")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Nope")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Nope")
end
Nope: The First Warning
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("User/Pass not recognized... Please try again")
sleep(2)
shell.run("Retry")
Retry: The Second Chance
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Nope2")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Nope2")
end
Nope2: The Final Warning
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("User/Pass not recognized... Please try again")
sleep(2)
shell.run("Retry2")
Retry2: The Last Chance
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0 | Failure will lock computer")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Lock")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Lock")
end
Lock: The Loops
Unlock - "Administrator"
textutils.slowPrint("Computer Locked")
sleep(2)
local input = ""
while input ~= Unlock do
term.clear()
term.setCursorPos(1,1)
print("Computer Locked")
write("Unlock Key:")
input = read("*")
end
textutils.slowPrint("Unlock Key Entered...")
sleep(2)
shell.run("Beta1.0")
end
Almost ran out of distinguishable colors. If anyone is color blind I'm sorry but I ran out of time and can't help there right now. Comment your ideas and anything you notice that could be improved. This is not a door code but a door code will follow. This is best for multiplayer to info from other players.
Beta1.0: Main system
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Loading Easy Lock V1.0")
sleep(1)
textutils.slowPrint("...")
sleep(1)
textutils.slowPrint("..)
sleep(2)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Easy Lock V1.0 Loaded")
sleep(2)
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Nope")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Nope")
end
Nope: The First Warning
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("User/Pass not recognized... Please try again")
sleep(2)
shell.run("Retry")
Retry: The Second Chance
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Nope2")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Nope2")
end
Nope2: The Final Warning
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("User/Pass not recognized... Please try again")
sleep(2)
shell.run("Retry2")
Retry2: The Last Chance
User = "Admin"
Pass = "Admin"
term.clear()
term.setCursorPos(1,1)
print("EL Login 1.0 | Failure will lock computer")
write("User:")
input = read()
if input == User then
write("Pass:")
else
shell.run("Lock")
end
input = read("*")
if input == Pass then
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Welcome Admin")
sleep(2)
shell.run("Exit2")
else
shell.run("Lock")
end
Lock: The Loops
Unlock - "Administrator"
textutils.slowPrint("Computer Locked")
sleep(2)
local input = ""
while input ~= Unlock do
term.clear()
term.setCursorPos(1,1)
print("Computer Locked")
write("Unlock Key:")
input = read("*")
end
textutils.slowPrint("Unlock Key Entered...")
sleep(2)
shell.run("Beta1.0")
end
Almost ran out of distinguishable colors. If anyone is color blind I'm sorry but I ran out of time and can't help there right now. Comment your ideas and anything you notice that could be improved. This is not a door code but a door code will follow. This is best for multiplayer to info from other players.