Jackson_Pike

asdfafdsadfasdf

Aug 8th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. os.loadAPI("m")
  2.  
  3. -------------------
  4. if fs.exists("m") then
  5. --fs.delete("m")
  6. --shell.run("pastebin get nXvVUSuw m")
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9. else
  10. shell.run("pastebin get nxvvusuw m")
  11.  
  12. term.clear()
  13. term.write("Downloading Text API.")
  14. sleep(1)
  15. term.write(".")
  16. sleep(1)
  17. term.write(".")
  18. sleep(1)
  19. term.write(" Success")
  20. term.setCursorPos(1, 2)
  21. os.loadAPI("m")
  22. shell.run("m")
  23. end
  24. shell.run("m")
  25. -------------
  26. mon = peripheral.wrap("left")
  27. monX, monY = mon.getSize()
  28. mon.setTextScale(1)
  29. -------------------
  30. mon2 = peripheral.wrap("monitor_5")
  31. function page1()
  32. m.clearScreen(colors.black, colors.black)
  33. m.drawBars(colors.blue, 1)
  34. m.drawBars(colors.blue, monY)
  35. m.writeText(monX/2-8, 1, colors.blue, colors.white, "Jobs Plugin Tutorial")
  36. m.writeText(2, 3, colors.black, colors.lime, "What is it? -")
  37. m.writeText(16, 3, colors.black, colors.white, "Jobs is a awesome plugin which")
  38. m.writeText(3, 4, colors.black, colors.white, "lets you earn money doing things you already")
  39. m.writeText(3, 5, colors.black, colors.white, "do all the in Minecraft, such as Mining,")
  40. m.writeText(3, 6, colors.black, colors.white, "Hunting, Farming, Fishing, Enchanting,")
  41. m.writeText(3, 7, colors.black, colors.white, "Brewing, and Building! You can have up to 3")
  42. m.writeText(3, 8, colors.black, colors.white, "jobs!")
  43. m.writeText(2, 9, colors.black, colors.lime, "Experience - ")
  44. m.writeText(15, 9, colors.black, colors.white, "As you work, you gain experience.")
  45. m.writeText(3, 10, colors.black, colors.white, "Once you level up, you start making more money!")
  46. m.writeText(2, 11, colors.black, colors.lime, "Limits - ")
  47. m.writeText(3, 12, colors.black, colors.white, "To balance the economy, there has to be a limit")
  48. m.writeText(3, 13, colors.black, colors.white, "on the amount of experience and money you can")
  49. m.writeText(3, 14, colors.black, colors.white, "earn in a certain amount of time. This limit")
  50. m.writeText(3, 15, colors.black, colors.white, "resets every hour, and the amount you can earn")
  51. m.writeText(3, 16, colors.black, colors.white, "increases at every level.")
  52. --------------------------
  53.  
  54. monx, mony = mon2.getSize()
  55. mon2.setBackgroundColor(colors.black)
  56. mon2.clear()
  57. mon2.setTextColor(colors.white)
  58. mon2.setTextScale(1)
  59. mon2.setCursorPos(1, 1)
  60. mon2.setBackgroundColor(colors.gray)
  61. mon2.write(string.rep(" ", monx))
  62. mon2.setCursorPos(1, mony)
  63. mon2.write(string.rep(" ", monx))
  64. mon2.setBackgroundColor(colors.black)
  65. mon2.setTextColor(colors.red)
  66. mon2.setCursorPos(1, 3)
  67. mon2.write("------>")
  68. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  69. if side == "monitor_5" then
  70. page2()
  71. else
  72. page1()
  73. end
  74. end
  75. function page2()
  76. m.clearScreen(colors.black, colors.black)
  77. m.drawBars(colors.blue, 1)
  78. m.drawBars(colors.blue, monY)
  79. m.writeText(monX/2-7, 1, colors.blue, colors.white, "Jobs Comannds")
  80. m.writeText(2, 3, colors.black, colors.lightGray, "Commands: ")
  81. m.writeText(3, 5, colors.black, colors.lime, "Browse Jobs: ")
  82. m.writeText(16, 5, colors.black, colors.white, "/jobs browse")
  83. m.writeText(3, 6, colors.black, colors.lime, "Join Jobs: ")
  84. m.writeText(14, 6, colors.black, colors.white, "/jobs join <jobname>")
  85. m.writeText(3, 7, colors.black, colors.lime, "Check Limit: ")
  86. m.writeText(16, 7, colors.black, colors.white, "/jobs limit")
  87. m.writeText(3, 8, colors.black, colors.lime, "Check Stats: ")
  88. m.writeText(16, 8, colors.black, colors.white, "/jobs stats or /jobs stats <name>")
  89. m.writeText(3, 9, colors.black, colors.lime, "Leave a Job:")
  90. m.writeText(15, 9, colors.black, colors.white, " /jobs leave <jobs>")
  91. monx, mony = mon2.getSize()
  92. mon2.setBackgroundColor(colors.black)
  93. mon2.clear()
  94. mon2.setTextColor(colors.white)
  95. mon2.setTextScale(1)
  96. mon2.setCursorPos(1, 1)
  97. mon2.setBackgroundColor(colors.gray)
  98. mon2.write(string.rep(" ", monx))
  99. mon2.setCursorPos(1, mony)
  100. mon2.write(string.rep(" ", monx))
  101. mon2.setBackgroundColor(colors.black)
  102. mon2.setTextColor(colors.red)
  103. mon2.setCursorPos(1, 3)
  104. mon2.write("------>")
  105. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  106. if side == "monitor_5" then
  107. page1()
  108. else
  109. page2()
  110. end
  111. end
  112.  
  113. page1()
Add Comment
Please, Sign In to add comment