Guest User

Rangemuldee's Printer Licence Maker

a guest
Sep 29th, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5. function nextline()
  6. x, y = printer.getPageSize()
  7. newline = y + 1
  8. printer.setCursorPos(1,newline)
  9. end
  10. clear()
  11. print("What side is your printer on?")
  12. side = read()
  13. printer = peripheral.wrap(side)
  14. clear()
  15. print("What is your name? [Must be under 19 chars or under]")
  16. name = read()
  17. printer.newPage()
  18. printer.setPageTitle(name.."'s Licence")
  19. nextline()
  20. printer.write("Name: "..name)
  21. nextline()
  22. clear()
  23. print("What is your status [Must be 17 chars or lower]")
  24. status = read()
  25. printer.write("Status: "..status)
  26. nextline()
  27. clear()
  28. print("What is your occupation? [Must be 13 chars or lower]")
  29. occupation = read()
  30. printer.write("Occupation: "..occupation)
  31. printer.endPage()
  32. clear()
  33. print("Licence Finished")
  34. sleep(1)
  35. clear()
Advertisement
Add Comment
Please, Sign In to add comment