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
- -------------------
- mon = m.getMonitor()
- monX, monY = mon.getSize()
- mon.setTextScale(1)
- -------------------
- 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, 7, colors.black, colors.red, "Commands:(M): Mayor Only (MA): Mayor or Assistant")
- m.writeText(3, 9, colors.black, colors.yellow, "Create Town: ")
- m.writeText(15, 9, colors.black, colors.white, " /t create <name>")
- m.writeText(3, 10, colors.black, colors.yellow, "Town Stats:")
- m.writeText(10, 10, colors.black, colors.white, " /t or /t <towname>")
- m.writeText(3, 10, colors.black, colors.yellow, "Add Residents: ")
- m.writeText(17, 10, colors.black, colors.white, " /t add <username>")
- m.writeText(3, 11, colors.black, colors.yellow, "Deposit $: ")
- m.writeText(14, 11, colors.black, colors.white, "/t deposit <amount>")
- m.writeText(3, 12, colors.black, colors.yellow, "Toggle Settings: ")
- m.writeText(20, 12, colors.black, colors.white, "/t toggle <setting>")
- m.writeText(3, 13, colors.black, colors.yellow, "Outposts: ")
- m.writeText(13, 13, colors.black, colors.white, "/t claim outpost and /t outpost")
- m.writeText(3, 14, colors.black, colors.red, "(MA)")
- m.writeText(7, 14, colors.black, colors.yellow, "Withdraw $: ")
- m.writeText(19, 14, colors.black, colors.white, "/t withdraw <$>")
- m.writeText(3, 15, colors.black, colors.red, "(MA)")
- m.writeText(7, 15, colors.black, colors.yellow, "Claim Chunks: ")
- m.writeText(21, 15, colors.black, colors.white, "/town claim")
- end
- function page1()
- m.clearScreen(colors.black, colors.black)
- m.drawBars(colors.gray, 1)
- m.writeText(1, 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.")
- m.writeText(3, 8, colors.black, colors.white, "Each claim costs 1 town block, and $1000.")
- m.writeText(3, 9, colors.black, colors.white, " Town blocks are the amount of chunks")
- m.writeText(3, 10, colors.black, colors.white, "you can claim. For each resident, the town")
- m.writeText(3, 11, colors.black, colors.white, "gets 8 town blocks. You can purchase up to")
- m.writeText(3, 12, colors.black, colors.white, "100 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")
- m.writeText(3, 15, colors.black, colors.white, "real day. Each chunk adds $10 to the Daily")
- m.writeText(3, 16, colors.black, colors.white, "Upkeep. These funds are taken from the town")
- m.writeText(3, 17, colors.black, colors.white, "Bank. Taxes on the other hand, are set by")
- m.writeText(3, 18, colors.black, colors.white, "the town mayor, and is collected from all")
- m.writeText(3, 19, colors.black, colors.white, "residents Daily.")
- event, side, xpos, ypos = os.pullEvent("monitor_touch")
- if xpos >= 46 and xpos <= 48 and ypos == 18 then
- page2()
- end
- end
- --while true do
- --Ters()
- --sleep(20)
- --end
Advertisement
Add Comment
Please, Sign In to add comment