Advertisement
Guest User

Untitled

a guest
Dec 4th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. term.setBackgroundColor(colors.gray)
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. term.setBackgroundColor(colors.blue)
  5. print " Setup "--19
  6. term.setBackgroundColor(colors.lightBlue)
  7. print "-----------------"
  8. print "User: " --3 user
  9. print "-----------------"
  10. print "Pass: " --5 pass
  11. print "-----------------"
  12.  
  13. term.setCursorPos(6,3)
  14. write " "
  15. newuse = read()
  16. term.setCursorPos(6,5)
  17. write " "
  18. newpass = read()
  19. if fs.exists("/."..newuse) then
  20. term.setCursorPos(1,15)
  21. term.setBackgroundColor(colors.red)
  22. print "Error Account Name Not Available!!"
  23. event = os.pullEvent()
  24. shell.run("start")
  25. else
  26. file = fs.open("/."..newuse,"w")
  27. file.writeLine(newpass)
  28. file.writeLine("0")
  29. file.close()
  30. sleep(2)
  31. print "Account Created!!"
  32. event = os.pullEvent()
  33. os.reboot()
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement