Jackson_Pike

JobsTutorail

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