95Roadkill

Vinex Startup

Oct 17th, 2013
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.25 KB | None | 0 0
  1. localoldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3.  
  4. local p = {"Tornado", "Jackthecat"}
  5. local u = {"Luke" , "Admin"}
  6. input = "Luke"
  7.  
  8.  
  9.  
  10. while true do
  11.    term.clear()  
  12.    term.setCursorPos(1,1)
  13.    write("OS:Vinex Computer Protection V1.7 Beta")
  14.    term.setCursorPos(11,4)
  15.    write("What is your user name?")
  16.    term.setCursorPos(13,5)
  17.    write("|Luke|      |Admin|")
  18.    term.setCursorPos(15,7)
  19.  
  20.    write("Username: ")
  21.    input = read()
  22.  
  23.    if input == u[1] then
  24.       term.setCursorPos(15,8)
  25.       write("Password: ")
  26.       input = read("*")
  27.      
  28.       if input == p[1] then
  29.          term.clear()
  30.          term.setCursorPos(13,7)
  31.          write("Loading Vinex Please Wait")
  32.          term.setCursorPos(14,9)
  33.          write("[")
  34.          term.setCursorPos(36,9)
  35.          write("]")        
  36.          x = 15
  37.          repeat
  38.          term.setCursorPos(x,9)
  39.          write("-")
  40.          x = x + 1
  41.          sleep(.2)
  42.          until x == 36
  43.          repeat
  44.          term.setCursorPos(17,9)
  45.          write("Loading Complete!")
  46.          x = x + 1
  47.          until x == 37
  48.          sleep(1.2)
  49.          term.clear()
  50.          term.setCursorPos(1,1)
  51.          write("Welcome, Luke!")
  52.          sleep(2)
  53. shell.run("Vinex/GUI")
  54.  break
  55.       end
  56.  
  57.    end        
  58.    
  59.    if input == u[2] then  
  60.       term.setCursorPos(15,8)
  61.       write("Password: ")
  62.       input = read("*")
  63.  
  64.       if input == p[2] then
  65.          term.clear()
  66.          term.setCursorPos(12,7)
  67.          write("Loading Vinex Admin Overide")
  68.          x = 15
  69.          term.setCursorPos(14,9)
  70.          write("[")
  71.          term.setCursorPos(36,9)
  72.          write("]")
  73.          repeat
  74.          term.setCursorPos(x,9)
  75.          write("-")
  76.          x = x + 1
  77.          sleep(.2)
  78.          until x == 36
  79.          repeat
  80.          term.setCursorPos(17,9)
  81.          write("Loading Complete!")
  82.          x = x + 1
  83.          until x == 37
  84.          sleep(1.2)
  85.          term.clear()
  86.          term.setCursorPos(1,1)
  87.          print("Welcome,Admin!")
  88.          break
  89.       end
  90.  
  91.    end
  92.  
  93.     if input ~= p[1] then
  94.        term.clear()
  95.        term.setCursorPos(10,9)
  96.        write("Hint:Remember CC is case sensative!")
  97.        sleep(3)
  98.        os.reboot(true)
  99.    end
  100.  
  101. end
Advertisement
Add Comment
Please, Sign In to add comment