Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
- local aText = {
- " ",
- "Dragons' Gifts",
- " ",
- }
- local bText = {
- "We Have Too Many Items",
- "All items here are surplus.",
- "Help us be rid of them.",
- }
- local cText = {
- "Remember: If you don't protect your",
- "land, you will be raided, machines",
- "taken, items lost. However...",
- }
- local dText = {
- "You'll know if it was us, for we",
- "spare all buildings that are not",
- "cobble-hovels. We do not grief.",
- }
- local sSide = "front"
- 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
- while 0<1 do
- printCenter(peripheral.wrap(sSide), aText)
- os.sleep(5)
- printCenter(peripheral.wrap(sSide), bText)
- os.sleep(5)
- printLeft(peripheral.wrap(sSide), cText)
- os.sleep(5)
- printLeft(peripheral.wrap(sSide), dText)
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement