Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------
- if fs.exists("m") then
- --fs.delete("m")
- --shell.run("pastebin get nXvVUSuw m")
- term.clear()
- term.setCursorPos(1, 1)
- os.loadAPI("m")
- else
- shell.run("pastebin get nxvvusuw m")
- term.clear()
- term.write("Downloading Text API.")
- sleep(1)
- term.write(".")
- sleep(1)
- term.write(".")
- sleep(1)
- term.write(" Success")
- term.setCursorPos(1, 2)
- os.loadAPI("m")
- shell.run("m")
- end
- function Ters()
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setCursorPos(1, 1)
- term.write("Running: Towny Info")
- end
- function mon2()
- end
- -------------------
- mon = peripheral.wrap("front")
- mon2 = peripheral.wrap("monitor_4")
- monX, monY = mon.getSize()
- mon.setTextScale(1)
- -------------------
- function page1()
- m.clearScreen(colors.black, colors.black)
- m.drawBars(colors.gray, 1)
- m.writeText(monX/2-7, 1, colors.gray, colors.white, "Towny Plugin Tutorial")
- --m.writeText(46, 18, colors.lightGray, colors.red, " V ")
- m.writeText(2, 3, colors.black, colors.red, "What is it? -")
- m.writeText(17, 3, colors.black, colors.white, "Towny is a Grief Prevention and")
- m.writeText(2, 4, colors.black, colors.white, " Plot Management plugin, which allows complete")
- m.writeText(2, 5, colors.black, colors.white, " control and protection of your base.")
- m.writeText(2, 6, colors.black, colors.red, "Claiming: ")
- m.writeText(3, 7, colors.black, colors.white, "Towny is a chunk based claiming system. Each")
- m.writeText(3, 8, colors.black, colors.white, "claim costs 1 town block, and $1000. Town")
- m.writeText(3, 9, colors.black, colors.white, "blocks are the amount of chunks you can")
- m.writeText(3, 10, colors.black, colors.white, "claim. For each resident, the town gets")
- m.writeText(3, 11, colors.black, colors.white, "8 town blocks. You can purchase up to 100")
- m.writeText(3, 12, colors.black, colors.white, "bonus town blocks.")
- m.writeText(2, 13, colors.black, colors.red, "Daily Upkeep and Taxes:")
- m.writeText(3, 14, colors.black, colors.white, "Daily Upkeep is the required amount per real")
- m.writeText(3, 15, colors.black, colors.white, "day to run the town. Each chunk adds $10 ")
- m.writeText(3, 17, colors.black, colors.white, "If upkeep isn't paid, the town will dissolve.")
- m.writeText(3, 16, colors.black, colors.white, "These funds are taken from the town Bank. ")
- m.writeText(3, 18, colors.black, colors.white, "Taxes, however, are set by the town mayor,")
- m.writeText(3, 19, colors.black, colors.white, "and are collected from all residents Daily.")
- monx, mony = mon2.getSize()
- mon2.setBackgroundColor(colors.black)
- mon2.clear()
- mon2.setTextColor(colors.white)
- mon2.setTextScale(1)
- mon2.setCursorPos(1, 1)
- mon2.setBackgroundColor(colors.gray)
- mon2.write(string.rep(" ", monx))
- mon2.setCursorPos(1, mony)
- mon2.write(string.rep(" ", monx))
- mon2.setBackgroundColor(colors.black)
- mon2.setTextColor(colors.red)
- mon2.setCursorPos(1, 3)
- mon2.write("------>")
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if side == "front" then
- page2()
- end
- end
- function page2()
- m.clearScreen(colors.black, colors.black)
- m.drawBars(colors.gray, 1)
- m.writeText(monX/2-7, 1, colors.gray, colors.white, " Towny Commands")
- m.writeText(2, 2, colors.black, colors.red, "Commands: M - Mayor A - Assistant")
- m.writeText(3, 3, colors.black, colors.yellow, "Create Town: ")
- m.writeText(15, 3, colors.black, colors.white, " /t create <name>")
- m.writeText(3, 4, colors.black, colors.yellow, "Town Stats:")
- m.writeText(14, 4, colors.black, colors.white, " /t or /t <towname>")
- m.writeText(3, 5, colors.black, colors.yellow, "Add Residents: ")
- m.writeText(17, 5, colors.black, colors.white, " /t add <username>")
- m.writeText(3, 6, colors.black, colors.yellow, "Deposit $: ")
- m.writeText(14, 6, colors.black, colors.white, "/t deposit <amount>")
- m.writeText(3, 7, colors.black, colors.yellow, "Toggle Settings: ")
- m.writeText(20, 7, colors.black, colors.white, "/t toggle <setting>")
- m.writeText(3, 8, colors.black, colors.yellow, "Outposts: ")
- m.writeText(13, 8, colors.black, colors.white, "/t claim outpost and /t outpost")
- m.writeText(3, 9, colors.black, colors.red, "(MA)")
- m.writeText(7, 9, colors.black, colors.yellow, "Withdraw $: ")
- m.writeText(19, 9, colors.black, colors.white, "/t withdraw <$>")
- m.writeText(3, 10, colors.black, colors.red, "(MA)")
- m.writeText(7, 10, colors.black, colors.yellow, "Claim Chunks: ")
- m.writeText(21, 10, colors.black, colors.white, "/town claim")
- monx, mony = mon2.getSize()
- mon2.setBackgroundColor(colors.black)
- mon2.clear()
- mon2.setTextColor(colors.white)
- mon2.setTextScale(1)
- mon2.setCursorPos(1, 1)
- mon2.setBackgroundColor(colors.gray)
- mon2.write(string.rep(" ", monx))
- mon2.setCursorPos(1, mony)
- mon2.write(string.rep(" ", monx))
- mon2.setBackgroundColor(colors.black)
- mon2.setTextColor(colors.red)
- mon2.setCursorPos(1, 3)
- mon2.write("<------")
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if side == "monitor_4" then
- page1()
- end
- end
- page1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement