Advertisement
Guest User

OS

a guest
Dec 29th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.23 KB | None | 0 0
  1. --Load AI Image
  2. bGround = paintutils.loadImage(".AI")
  3. --Stop Termination
  4. os.pullEvent = os.pullEventRaw
  5. --Clear Terminal
  6. term.clear()
  7. paintutils.drawImage(bGround,18,1)
  8. term.setCursorPos(1,1)
  9. print("Please Login")
  10. term.setCursorPos(1,2)
  11. term.write("Username : ")
  12. user = read()
  13. term.setCursorPos(1,3)
  14. term.write("Password : ")
  15. pass = read("*")
  16. --Verify
  17. term.setCursorPos(1,4)
  18. textutils.slowPrint("Verifying Information...")
  19. function bootUp()
  20. if (user == "Kami") then
  21.   if (pass == "4793") then
  22.     term.clear()
  23.     paintutils.drawImage(bGround,18,1)
  24.     term.setCursorPos(15,10)
  25.     term.setTextColor(colors.lime)
  26.     textutils.slowPrint("WELCOME MASTER")
  27.     sleep(2)
  28.   else
  29.     term.clear()
  30.     paintutils.drawImage(bGround,18,1)
  31.     term.setCursorPos(15,10)
  32.     term.setTextColor(colors.red)
  33.     textutils.slowPrint("WRONG PASSWORD")
  34.     sleep(2)
  35.   end
  36. else
  37.   term.clear()
  38.   paintutils.drawImage(bGround,18,1)
  39.   term.setCursorPos(15,10)
  40.   term.setTextColor(colors.red)
  41.   textutils.slowPrint("WRONG USERNAME")
  42.   sleep(2)
  43. end
  44. end
  45. bootUp()  
  46. term.clear()
  47. paintutils.drawImage(bGround,18,1)
  48. term.setCursorPos(1,1)
  49. term.setTextColor(colors.pink)
  50. textutils.slowPrint("WHAT ARE WE GOING TO DO TODAY, MASTER?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement