Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --0123456789ABCDEF0123456789ABCDEF0123456789ABCDE
- local aText = {
- "*************************************************",
- " ",
- " ",
- " ",
- "Welcome to Dragons' Market!",
- " ",
- " ",
- " ",
- "*************************************************",
- }
- local bText = {
- "*************************************************",
- " ",
- " ",
- "We are one of the top factions!",
- "Join us by '/f join Dragons'",
- "Get gear at our landing base using '/f home'",
- " ",
- " ",
- "*************************************************",
- }
- local cText = {
- "*************************************************",
- " ",
- " ",
- "New to the server? Start out right!",
- "Go mine, come trade, and get our tools!",
- "Save yourself hours of mining.",
- " ",
- " ",
- "*************************************************",
- }
- local sSide = "back"
- 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
- while 0<1 do
- printCenter(peripheral.wrap(sSide), aText)
- os.sleep(5)
- printCenter(peripheral.wrap(sSide), bText)
- os.sleep(5)
- printCenter(peripheral.wrap(sSide), cText)
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement