SHOW:
|
|
- or go back to the newest paste.
| 1 | - | while true do |
| 1 | + | m = peripheral.wrap("back")
|
| 2 | - | mon = peripheral.wrap("back")
|
| 2 | + | m.clear() |
| 3 | - | term.redirect(mon) |
| 3 | + | m.setCursorPos(1,1) |
| 4 | - | mon.clear() |
| 4 | + | m.setTextScale(2) |
| 5 | - | mon.setTextScale(1) |
| 5 | + | |
| 6 | - | mon.setTextColor(8) |
| 6 | + | local function centerText(text) |
| 7 | - | mon.setCursorPos(10,4) |
| 7 | + | x,y = m.getSize() |
| 8 | - | print("WELCOME!")
|
| 8 | + | x1,y1 = m.getCursorPos() |
| 9 | - | mon.setCursorPos(6,6) |
| 9 | + | m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1) |
| 10 | - | print("Server by s3ptum")
|
| 10 | + | m.write(text) |
| 11 | - | mon.setTextScale(1) |
| 11 | + | end |
| 12 | - | mon.setCursorPos(1,9) |
| 12 | + | |
| 13 | - | print("1.No Griefing")
|
| 13 | + | --Call function "centerText("")" to set text
|
| 14 | - | mon.setCursorPos(1,11) |
| 14 | + | --Use m.setCursorPos(1,y) to choose placement on screen |
| 15 | - | print("2.No Spamming")
|
| 15 | + | |
| 16 | - | mon.setCursorPos(1,13) |
| 16 | + | y2 = 7 |
| 17 | - | print("3.No Cursing")
|
| 17 | + | m.setCursorPos(1, y2) |
| 18 | - | mon.setCursorPos(1,15) |
| 18 | + | centerText("NEWZ AND MOAR")
|
| 19 | - | print("4.No Trolling/Flaming")
|
| 19 | + | m.setCursorPos(1, y2 + 2) |
| 20 | - | mon.setCursorPos(1,17) |
| 20 | + | centerText("Enjin site now has server stats")
|
| 21 | - | print("5.No Asking for ranks/items")
|
| 21 | + | m.setCursorPos(1, y2 + 3) |
| 22 | - | mon.setCursorPos(1,19) |
| 22 | + | centerText("Server is now 1 month old!")
|
| 23 | - | print("6.Respect Others")
|
| 23 | + | m.setCursorPos(1, y2 + 4) |
| 24 | - | mon.setCursorPos(1,21) |
| 24 | + | centerText("Some players are going to get presents!")
|
| 25 | - | print("7.Obey Staff")
|
| 25 | + | m.setCursorPos(1, y2 + 5) |
| 26 | - | mon.setCursorPos(1,23) |
| 26 | + | centerText("Economy is working kinda!")
|
| 27 | - | print("8.No Racist or Sexist Remarks")
|
| 27 | + | m.setCursorPos(1, y2 + 6) |
| 28 | - | mon.setCursorPos(1,25) |
| 28 | + | centerText("Looking for people with plugin knowledge!")
|
| 29 | - | print("9.Exploits Found will be Rewarded!")
|
| 29 | + | m.setCursorPos(1, y2 + 7) |
| 30 | - | sleep(10) |
| 30 | + | centerText("Mini-Games are in Development!")
|
| 31 | - | end |
| 31 | + | m.setCursorPos(1, y2 + 8) |
| 32 | centerText("linksphere.enjin.com please!")
| |
| 33 | m.setCursorPos(1, y2 + 10) | |
| 34 | centerText("END TRANSMISSION") |