Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. user = ""
  5. pass = ""
  6. textutils.slowPrint ("Welcome to local pc: #0")
  7. textutils.slowPrint ("Please log in.")
  8. textutils.slowWrite ("Username: ")
  9. user = read()
  10. textutils.slowWrite ("Password: ")
  11. pass = read("*")
  12. textutils.slowWrite ("Logging in")
  13. sleep(1)
  14. write "." sleep(.8)
  15. write "."
  16. sleep(.6)
  17. write "."
  18. sleep(.4)
  19. write "."
  20. sleep(.2)
  21. write "."
  22. term.clear()
  23. term.setCursorPos(1,1)
  24. if user == "Caleb" or "caleb" or "Cowman" or "cowman" and pass == "socks321" then
  25. textutils.slowWrite("Welcome back Caleb!\n")
  26. shell.run("time")
  27. shell.setDir("/users/caleb")
  28. --remove "end" until actual end of if/elseif commands
  29. elseif user == "Surf" or "surf" or "surfcash" or "Surfcash" and pass == "password" then --needs to be elseif
  30. textutils.slowWrite("Welcome back Colin!\n")
  31. shell.run("time")
  32. shell.setDir("/users/colin")
  33. fs.isReadOnly("/")
  34. fs.isReadOnly("/rom")
  35. fs.isReadOnly("/users/caleb")
  36. --remove "end" until actual end of if/elseif commands
  37. elseif user == ("Guest" or "guest") and pass == ("guest" or "password") then
  38. textutils.slowWrite("Welcome Guest.User!\n")
  39. shell.run("time")
  40. shell.setDir("/users/guest")
  41. fs.isReadOnly("/")
  42. fs.isReadOnly("/rom")
  43. fs.isReadOnly("/users/caleb")
  44. fs.isReadOnly("/users/colin")
  45. --remove "end" until actual end of if/elseif commands
  46. else textutils.slowWrite("Incorrect User or Password.")
  47. sleep(3)
  48. shell.run("startup")
  49. end --end goes here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement