i got it working but the message i put in (i didnt design this by the way doing it for the server admin) is this:
local message =
[[WARNING! Connection to Central Lost….
Reconnect Attempt 2,000,000,000,000
Too many attempts….
Teleport Satus: Operational
Power Status: Emergency Only
Signal: Unknown
Location: Unknown
Advisery: Teleports to Unknown
Locations not Advised]] – change message with yours
local minDisplayTime = 3 – minimum time to display message
local maxDisplayTime = 6 – maximum time to display message
local offTime = 0.2 – time to let the message disappear
local function cPrint(str)
local w,h = term.getSize()
local _,lines = string.gsub(str,"\n","\n")
local y = math.floor( (h-lines)/2 + 0.5 )
for dy=1,lines+1 do
local index = string.find(str, "\n") or #str+1
local l = string.sub(str,1, index-1)
local x = math.floor( (w-#l)/2 + 0.5 )
term.setCursorPos(x, y+dy)
term.write(l)
str = string.sub(str,index+1)
end
end
while true do
cPrint(message)
sleep(math.random(minDisplayTime,maxDisplayTime))
term.clear()
sleep(offTime)
end
WARNING! Connection to Central Lost….
Reconnect Attempt 2,000,000,000,000
Too many attempts….
Teleport Satus: Operational
Power Status: Emergency Only
Signal: Unknown
Location: Unknown
Advisery: Teleports to Unknown
Locations not Advised
i have included links to pictures of what is seen on the computer, i am also trying to get it to work on the monitors that are hooked up
http://snag.gy/1ovID.jpg - what i see on the computer
http://snag.gy/hSgC2.jpg - trying to link it to that monitor