Advertisement
Guest User

startup

a guest
Nov 28th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. u = "robinpmac"
  2. p = "password"
  3. a = term.setCursorPos
  4.  
  5. -- Initial boot up screen, 1 time only
  6. term.clear()
  7. a(1, 1)
  8. print("Macrosoft Corperation")
  9. sleep(.5)
  10. write("Running Startup")
  11. sleep(.5)
  12. textutils.slowPrint("...")
  13. sleep(.5)
  14.  
  15.   for i=1, 2 do
  16.     a(19, 2)
  17.     print(" | ")
  18.     sleep(.1)
  19.     --
  20.     a(19, 2)
  21.     print(" / ")
  22.     sleep(.1)
  23.     --
  24.     a(19, 2)
  25.     print(" -- ")
  26.     sleep(.1)
  27.     --
  28.     a(19, 2)
  29.     print(" / ")
  30.     sleep(.1)
  31.     --
  32.     a(19, 2)
  33.     print(" | ")
  34.     sleep(.1)
  35.     --
  36.     a(19, 2)
  37.     print(" / ")
  38.     sleep(.1)
  39.     --
  40.     a(19, 2)    
  41.     print(" -- ")
  42.     sleep(.1)
  43.     --
  44.     a(19, 2)    
  45.     print(" / ")
  46.     sleep(.1)
  47.     --
  48.     a(19, 2)  
  49.     print(" | ")
  50.     sleep(.1)
  51.    end
  52.    
  53.    sleep(2)
  54.    
  55.  
  56.   term.clear()
  57.   shell.run("loadbar")    
  58.  
  59. x = ""
  60. while x ~= u do
  61.   term.setBackgroundColor(colors.cyan)
  62.   term.clear()
  63.   a(22, 8)
  64.   print("Username:")
  65.   a(22, 9)
  66.   local input = read()
  67.   if input == u then
  68.  
  69.     for i=1, 2 do
  70.       term.scroll(1)
  71.       sleep(.25)
  72.     end  
  73.      
  74.     a(22, 10)
  75.     print("Password")
  76.     a(22, 11)
  77.     local input = read("*")
  78.     if input == p then
  79.       term.clear()
  80.       a(12, 8)
  81.       print("Loading Your Personal Settings")
  82.       a(25, 9)
  83.       textutils.slowPrint("...")
  84.       sleep(2)
  85.       term.setBackgroundColor(colors.black)
  86.       term.clear()
  87.       a(1, 1)
  88.       print("Macrosoft Ceilings 8.2")
  89.       break
  90.     else
  91.       term.clear()
  92.       term.setTextColor(colors.red)
  93.       a(18, 8)
  94.       print("Invalid Password")
  95.       term.setTextColor(colors.white)
  96.       sleep(2)  
  97.     end  
  98.   else
  99.     term.clear()
  100.     term.setTextColor(colors.red)
  101.     a(18, 8)
  102.     print("Invalid Username")
  103.     term.setTextColor(colors.white)
  104.     sleep(2)  
  105.   end
  106. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement