infiniteblock

Untitled

Sep 5th, 2020 (edited)
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.81 KB | None | 0 0
  1. printer = peripheral.wrap ("back")
  2. term.clear ()
  3. print ("InfaKnox - Service Agreement.")
  4. print ("")
  5. print ("You are about to request a Service Agreement.")
  6. print ("")
  7. print ("Customer Name: ")
  8. local customer = read ()
  9. term.clear ()
  10. term.setCursorPos (1, 1)
  11. print ("Customers Plan: ")
  12. local plan = read ()
  13. term.clear ()
  14. term.setCursorPos (1, 1)
  15. printer.newPage ()
  16. printer.setPageTitle ("InfaKnox - Service Agreement.")
  17. printer.setCursorPos (9, 1)
  18. printer.write ("InfaKnox")
  19. printer.setCursorPos (5, 2)
  20. printer.write ("Service Agreement.")
  21. printer.setCursorPos (1, 4)
  22. printer.write ("Service: "..plan)
  23. printer.setCursorPos (1, 5)
  24. printer.write ("Issued to: ")
  25. printer.setCursorPos (12, 5)
  26. printer.write (customer)
  27. printer.setCursorPos (1, 7)
  28. printer.write ("This service is to be")
  29. printer.setCursorPos (1, 8)
  30. printer.write ("paid monthly in advance.")
  31. printer.setCursorPos (1, 10)
  32. printer.write ("Payments can be made via")
  33. printer.setCursorPos (1, 11)
  34. printer.write ("InfaKnox Trade Hub At.")
  35. printer.setCursorPos (1, 13)
  36. printer.write ("Stargate Address:")
  37. printer.setCursorPos (1, 14)
  38. printer.write ("NHX-931-NH")
  39. printer.setCursorPos (1, 16)
  40. printer.write ("Signed: InfiniteBlock.")
  41. printer.setCursorPos (1, 17)
  42. printer.write (os.date())
  43. printer.setCursorPos (3, 19)
  44. printer.write ("http://InfaKnox.Space")
  45. printer.endPage ()
  46. print ("Certificate printing in progress")
  47. print ("")
  48. print ("Print:")
  49. term.setCursorPos (8, 3)
  50. print ("25%")
  51. sleep (3)
  52. term.setCursorPos (8, 3)
  53. print ("50%")
  54. sleep (3)
  55. term.setCursorPos (8, 3)
  56. print ("75%")
  57. sleep (3)
  58. term.setCursorPos (8, 3)
  59. print ("100%")
  60. print ("")
  61. redstone.setOutput ("bottom", true)
  62. print ("Collect the receipt")
  63. print ("")
  64. print ("A new operation will be possible soon")
  65. sleep (10)
  66. redstone.setOutput ("bottom", false)
  67. os.reboot ()
Add Comment
Please, Sign In to add comment