Posted 11 December 2012 - 11:28 PM
Hi all,
I am having trouble with two of my monitor displays.(These displays, show my banned items on my server). Now the problem that I am having is that the text is disappearing of the screens until I break a monitor and replace it.
my monitor is 5wide by 6 high.
This is my code I am using
I am having trouble with two of my monitor displays.(These displays, show my banned items on my server). Now the problem that I am having is that the text is disappearing of the screens until I break a monitor and replace it.
my monitor is 5wide by 6 high.
This is my code I am using
local w,h = term.getSize()
local function printCenter(line)
local width = string.len(line)
if width < w then
local x,y = term.getCursorPos()
term.setCursorPos(w/2 - width/2,y)
end
print(line)
end
printCenter 'Banned Items'
printCenter ''
print([[Abyss Helmet Anchor Cart Black Hole Band
Blaze Rods Block Breaker Builder
Cannon Catalytic Lens
Collector MK1 Collector MK2 Collector MK3
DM pedestal DM Hammer Dest. Catalyst
DragonEgg Dynamite EnderChest
Evertide Amulet Filler Gravity Greaves
HurricaneBoots HyperkineticLens Infernal Armor
MFE Cart Mercurial Eye Mining Laser
Nova Cataclysm Nova Catalyst Nuke
Project Table RM Armour RM Furnace
RM Katar RM MorningStar RM Tools
Ranged Weapons Ring of Arcana Ring of Ignition
SwiftWolf Ring Tank Cart Teleport Tether
TnT TnT Cart
Triangulator Transmutation Tablet
Turtles Void Ring Volcanite Amulet
Watch of flowing time
World Anchor Zero Ring]])
printCenter ''
printCenter ''
printCenter 'Collectors, RM Tool, RM Armour and Swiftwolf'
printCenter 'are Donator only'
printCenter ''
printCenter 'These items may change at anytime,'
printCenter 'please check back often to see'
printCenter 'if anything has changed'
printCenter ''
printCenter 'Banned items will turn to dirt'
printCenter 'if you craft them.This is at your expense'
printCenter 'and staff will not refund the items'