Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
- --0123456789ABCDEF0123456789AB
- local aText = {
- "******** TOWN HELP ********",
- "",
- "Claim: (Need to be on plot)",
- " '/plot claim'",
- "Friends: (Adding Friends)",
- " '/res friend add <name>",
- " '/plot set perm friend on",
- "Taxes: (50c per IRL day)",
- " '/money' Checks your money",
- " -Sell items at Spawn Shop",
- " -Kill Mobs",
- "Repo: (Lose Your Plot)",
- " All items will be donated",
- "to Dragons upon plot loss.",
- }
- local sSide = "top"
- local function printCenter(mon, t)
- local w, h = mon.getSize()
- mon.clear()
- local y = math.floor((h / 2) - (#t / 2))
- for i, line in ipairs(t) do
- local x = math.floor((w / 2) - (#line / 2))
- mon.setCursorPos(x, y + i)
- mon.write(line)
- end
- end
- local function printLeft(mon, t)
- local w, h = mon.getSize()
- mon.setTextScale(1)
- mon.clear()
- local y = math.floor((h / 2) - (#t / 2))
- for i, line in ipairs(t) do
- local x = 1
- mon.setCursorPos(x, y + i)
- mon.write(line)
- end
- end
- printLeft(peripheral.wrap(sSide), aText)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement