Advertisement
Guest User

startup

a guest
Nov 26th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. os pullEvent = os.pullEventRaw
  2. term setCursorPos(8,1)
  3. print("ComputerCraft 1.6.4")
  4. term.setCursorPos(1,2)
  5. term.setTextColot(colors.green)
  6. print("Please enter your password to enter this computer.")
  7. pass = ("password")
  8.  
  9. write("Camden")
  10. term.setTextColor(colors.cyan)
  11. input = read("*")
  12. if not ("input == pass") then
  13. term.setTextColor(colors.red)
  14. print("Incorrect Password. Please try again.")
  15. sleep(1)
  16. os.shutdown()
  17. end
  18. if (input == pass) then
  19. term.setTextColor(colors.green)
  20. print ("Welcome")
  21. sleep(1)
  22. term.setTextColor(colors.cyan)
  23. print("Please input side of wireless/wired modem, or none if none")
  24. none = ("none")
  25. input = ("read")
  26. if not (input == none) then
  27. rednet.open( input )
  28. print ("Modem Activated")
  29. term.setTextColor(color.white)
  30. sleep(0.5)
  31. end
  32. if (input == none) then
  33. print ("No modems activated")
  34. term.setTextColor(colors.white)
  35. sleep (0.5)
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement