Jackson_Pike

Screw Pastebin

Aug 5th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.96 KB | None | 0 0
  1. -------------------
  2. if fs.exists("m") then
  3. --fs.delete("m")
  4. --shell.run("pastebin get nXvVUSuw m")
  5. term.clear()
  6. term.setCursorPos(1, 1)
  7. os.loadAPI("m")
  8. else
  9. shell.run("pastebin get nxvvusuw m")
  10.  
  11. term.clear()
  12. term.write("Downloading Text API.")
  13. sleep(1)
  14. term.write(".")
  15. sleep(1)
  16. term.write(".")
  17. sleep(1)
  18. term.write(" Success")
  19. term.setCursorPos(1, 2)
  20. os.loadAPI("m")
  21. shell.run("m")
  22. end
  23. function Ters()
  24. term.setBackgroundColor(colors.gray)
  25. term.clear()
  26. term.setCursorPos(1, 1)
  27. term.write("Running: Towny Info")
  28. end
  29. -------------------
  30. mon = m.getMonitor()
  31. monX, monY = mon.getSize()
  32. mon.setTextScale(1)
  33. -------------------
  34. function page2()
  35. m.clearScreen(colors.black, colors.black)
  36. m.drawBars(colors.gray, 1)
  37. m.writeText(monX/2-7, 1, colors.gray, colors.white, "  Towny Commands")
  38.  
  39. m.writeText(2, 7, colors.black, colors.red, "Commands:(M): Mayor Only (MA): Mayor or Assistant")
  40. m.writeText(3, 9, colors.black, colors.yellow, "Create Town: ")
  41. m.writeText(15, 9, colors.black, colors.white, " /t create <name>")
  42. m.writeText(3, 10, colors.black, colors.yellow, "Town Stats:")
  43. m.writeText(10, 10, colors.black, colors.white, " /t or /t <towname>")
  44. m.writeText(3, 10, colors.black, colors.yellow, "Add Residents: ")
  45. m.writeText(17, 10, colors.black, colors.white, " /t add <username>")
  46. m.writeText(3, 11, colors.black, colors.yellow, "Deposit $: ")
  47. m.writeText(14, 11, colors.black, colors.white, "/t deposit <amount>")
  48. m.writeText(3, 12, colors.black, colors.yellow, "Toggle Settings: ")
  49. m.writeText(20, 12, colors.black, colors.white, "/t toggle <setting>")
  50. m.writeText(3, 13, colors.black, colors.yellow, "Outposts: ")
  51. m.writeText(13, 13, colors.black, colors.white, "/t claim outpost and /t outpost")
  52. m.writeText(3, 14, colors.black, colors.red, "(MA)")
  53. m.writeText(7, 14, colors.black, colors.yellow, "Withdraw $: ")
  54. m.writeText(19, 14, colors.black, colors.white, "/t withdraw <$>")
  55. m.writeText(3, 15, colors.black, colors.red, "(MA)")
  56. m.writeText(7, 15, colors.black, colors.yellow, "Claim Chunks: ")
  57. m.writeText(21, 15, colors.black, colors.white, "/town claim")
  58. end
  59. function page1()
  60. m.clearScreen(colors.black, colors.black)
  61. m.drawBars(colors.gray, 1)
  62. m.writeText(1, 1, colors.gray, colors.white, "Towny Plugin Tutorial")
  63. m.writeText(46, 18, colors.lightGray, colors.red, " V ")
  64. m.writeText(2, 3, colors.black, colors.red, " What is it? -")
  65. m.writeText(17, 3, colors.black, colors.white, "Towny is a Grief Prevention and")
  66. m.writeText(2, 4, colors.black, colors.white, " Plot Management plugin, which allows complete")
  67. m.writeText(2, 5, colors.black, colors.white, " control and protection of your base.")
  68. m.writeText(2, 6, colors.black, colors.red, "Claiming: ")
  69. m.writeText(3, 7, colors.black, colors.white, "Towny is a chunk based claiming system.")
  70. m.writeText(3, 8, colors.black, colors.white, "Each claim costs 1 town block, and $1000.")
  71. m.writeText(3, 9, colors.black, colors.white, " Town blocks are the amount of chunks")
  72. m.writeText(3, 10, colors.black, colors.white, "you can claim. For each resident, the town")
  73. m.writeText(3, 11, colors.black, colors.white, "gets 8 town blocks. You can purchase up to")
  74. m.writeText(3, 12, colors.black, colors.white, "100 bonus town blocks.")
  75. m.writeText(2, 13, colors.black, colors.red, "Daily Upkeep and Taxes:")
  76. m.writeText(3, 14, colors.black, colors.white, "Daily Upkeep is the required amount per")
  77. m.writeText(3, 15, colors.black, colors.white, "real day. Each chunk adds $10 to the Daily")
  78. m.writeText(3, 16, colors.black, colors.white, "Upkeep. These funds are taken from the town")
  79. m.writeText(3, 17, colors.black, colors.white, "Bank. Taxes on the other hand, are set by")
  80. m.writeText(3, 18, colors.black, colors.white, "the town mayor, and is collected from all")
  81. m.writeText(3, 19, colors.black, colors.white, "residents Daily.")
  82. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  83. if xpos >= 46 and xpos <= 48 and ypos == 18 then
  84.   page2()
  85. end
  86.  
  87.  
  88.  
  89. end
  90.  
  91. --while true do
  92. --Ters()
  93. --sleep(20)
  94. --end
Advertisement
Add Comment
Please, Sign In to add comment