Advertisement
Guest User

startup

a guest
Oct 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.79 KB | None | 0 0
  1. oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. while true do
  4.         term.clear()
  5.         term.setCursorPos(1,1)
  6.         print("LiquidOS v2.3")
  7.         write("UserName: ")
  8.         if read() == "LiquidBrickz" then
  9.                 write("Password: ")
  10.         else
  11.                 print("Incorrect Login Details.")
  12.                 write("Admin Override Password: ")
  13.                 sleep(1)
  14. end
  15.        
  16.             if read("*") == "fam92ski" then
  17.                 term.clear()
  18.                 term.setCursorPos(1,1)
  19.                 print("Welcome LiquidBrickz...")
  20.                 sleep(3)
  21.                 term.clear()
  22.                 term.setCursorPos(1,1)
  23.                 print("Setting up config...")
  24.                 sleep(5)
  25.                 term.clear()
  26.                 term.setCursorPos(1,1)
  27.                 write("Open Modem? [Y/N]: ")
  28.                    if read()  == "Y" then
  29.                       print("Opening Modem...")
  30.                       sleep(5)
  31.                       rednet.open("back")
  32.                       print("Modem is now on.")
  33.                       sleep(2)
  34.                       term.clear()
  35.                       print("Prepairing the Desktop...")
  36.                       sleep(3)
  37.                       term.clear()
  38.                       term.setCursorPos(1,1)
  39.                    else
  40.                         print("Wireless access is now off.")
  41.                         sleep(3)
  42.                         term.clear()
  43.                         print("Prepairing the Desktop...")
  44.                         term.clear()
  45.                         term.setCursorPos(1,1)
  46.                    end
  47.                    
  48.                    break
  49.         else
  50.                 print ("Incorrect Login Details.")
  51.                 sleep(1)
  52.         end
  53. end
  54. os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement