Advertisement
Guest User

startup.lua

a guest
Oct 4th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.36 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. p = "Ignite4Life"
  5. print("    Fire Security v1.0    ")
  6. print("+------------------------+")
  7. print("||  Username:           ||")
  8. print("||  Password:           ||")
  9. print("+------------------------+")
  10. term.setCursorPos(14,3)
  11. print("Admin")
  12. term.setCursorPos(14,4)
  13. pt = read("*")
  14. if pt == p then
  15.     term.setCursorPos(1,6)
  16.     print("Logging in") term.setCursorPos(11,6) textutils.slowPrint("...",1)
  17.     term.setCursorPos(1,7)
  18.     sleep(2)
  19.     print("Login succesful!")
  20.     sleep(1)
  21.     print("Welcome Ignite!")
  22.     sleep(2)
  23.     term.clear()
  24.     term.setCursorPos(1,1)
  25.     print("Starting Fire OS") term.setCursorPos(17,1) textutils.slowPrint("...",1)
  26.     term.setCursorPos(1,2)
  27.     print("Reading Files") term.setCursorPos(14,2) textutils.slowPrint("...",1)
  28.     term.setCursorPos(1,3)
  29.     print("Clearing Cache") term.setCursorPos(15,3) textutils.slowPrint("...",1)
  30.     term.setCursorPos(1,4)
  31.     print("Startup Successful!")
  32.     sleep(1)
  33.     term.clear()
  34.     term.setCursorPos(1,1)
  35.     print("Fire OS v1.0")
  36.     term.setCursorPos(1,2)
  37. else
  38.     term.setCursorPos(1,6)
  39.     print("Logging in") term.setCursorPos(11,6) textutils.slowPrint("...",1)
  40.     term.setCursorPos(1,7)
  41.     print("Incorrect Password! Rebooting") term.setCursorPos(34,7) textutils.slowPrint("...",1)
  42.     os.reboot()
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement