Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- choice=0
- z=0
- function timer(fa)
- for f = 1, fa do
- term.clear()
- term.setCursorPos(4,8)
- print("You have been locked out for "..tostring(fa-f).." seconds.")
- sleep(1)
- end
- end
- repeat
- term.clear()
- term.setCursorPos(1,1)
- print("|----------------------------|")
- print("| (Enter the password) |")
- print("|----------------------------|")
- print("| |")
- print("|----------------------------|")
- print("[Q][W][E][R][T][Y][U][I][O][P]")
- print(" [a][s][d][f][g][h][j][k][l]")
- print(" [z][x][c][v][b][n][m]")
- term.setCursorPos(2,4)
- i=read("*")
- if i ~= "pass" then
- print("WRONG!")
- sleep(.4)
- choice=choice+1
- end
- if choice == 4 and z == 0 then
- term.clear()
- term.setCursorPos(1,1)
- print("Did you forget your password?")
- local n=1
- while true do
- local x, y=term.getCursorPos()
- term.clearLine()
- if n==1 then write(">YES< NO") else write(" YES >NO<") end
- term.setCursorPos(x, y)
- a, b=os.pullEvent()
- while a~="key" do a, b=os.pullEvent() end
- if b==203 and n==2 then n=1 end
- if b==205 and n==1 then n=2 end
- if b==28 then print("") break end
- end
- if n==1 then
- print("password hint: the usual")
- sleep(4)
- z=z+1
- elseif n==2 then
- print("try again, but dont mess up otherwise your gonna get locked out")
- sleep(4)
- z=z+1
- end
- elseif choice == 5 then
- timer(101)
- elseif choice > 5 then
- timer(151)
- end
- until i == "pass"
- -- put whatever you want it to do if the password is correct right here
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment