Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

[Lua/Computercraft] Password Turtle

DerMarten Jan 4th, 2015 (edited) 146 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. shell.run("clear")
  2. function title()
  3.         print("WriteTheOwnerNameHere Turtle")
  4. end
  5. password = "EnterYourPasswordHere"
  6. count = 0
  7. run = true
  8. pwError = false
  9. while run do
  10.         if pwError then
  11.                 print("Passwort Falsch")
  12.         end
  13.         if count == 8 then
  14.                 timeout = true
  15.                 count = 0
  16.                 tcount = 120
  17.                 while timeout do
  18.                         if tcount == 0 then
  19.                                 timeout = false
  20.                         end
  21.                         shell.run("clear")
  22.                         write("Du must ")
  23.                         write(tcount)
  24.                         write(" sek warten bis du dich einloggen kannst")
  25.                         os.sleep(1)
  26.                         tcount = tcount - 1
  27.                 end
  28.         end
  29.         shell.run("clear")
  30.         title()
  31.         write("Passwort: ")
  32.         if password == io.read() then
  33.                
  34.         run = false
  35.         shell.run("clear")
  36.         title()
  37.         else
  38.                 pwError = true
  39.                 count = count + 1
  40.         end
  41. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top