Advertisement
Guest User

startup

a guest
Nov 26th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.12 KB | None | 0 0
  1. u = "robinpmac"
  2. p = "password"
  3. a = term.setCursorPos
  4.  
  5. -- Initial boot up screen, 1 time only
  6. print("Macrosoft Corperation")
  7. sleep(.5)
  8. write("Running Startup")
  9. sleep(.5)
  10. textutils.slowPrint("...")
  11. sleep(.5)
  12. textutils.slowPrint("... ... ...")
  13. sleep(.5)
  14.  
  15.  
  16. x = ""
  17. while x ~= u do
  18.   term.setTextColor(colors.lime)
  19.   term.clear()
  20.   a(22, 8)
  21.   print("Username:")
  22.   a(22, 9)
  23.   local input = read()
  24.   if input == u then
  25.  
  26.     for i=1, 2 do
  27.       term.scroll(1)
  28.       sleep(.25)
  29.     end  
  30.      
  31.     a(22, 10)
  32.     print("Password")
  33.     a(22, 11)
  34.     local input = read("*")
  35.     if input == p then
  36.       term.clear()
  37.       a(12, 8)
  38.       print("Loading Your Personal Settings")
  39.       a(25, 9)
  40.       textutils.slowPrint("...")
  41.       sleep(2)
  42.       term.clear()
  43.       a(1, 1)
  44.       print("Macrosoft Ceilings 8.2")
  45.       break
  46.     else
  47.       term.clear()
  48.       term.setTextColor(colors.red)
  49.       a(18, 8)
  50.       print("Invalid Password")
  51.       sleep(2)  
  52.     end  
  53.   else
  54.     term.clear()
  55.     term.setTextColor(colors.red)
  56.     a(18, 8)
  57.     print("Invalid Username")
  58.     sleep(2)  
  59.   end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement