Posted 04 October 2012 - 02:51 PM
I don't if this is the place to post it.
But I can't figure this out.
But I can't figure this out.
local mon = peripheral.wrap("back");
if mon then
term.redirect(mon);
print("Admin")
print("is")
if redstone.getInput("front") then
print("OFFLINE")
else
print("ONLINE")
end
end
local mon = peripheral.wrap("right");
function updateOnline()
mon.setCursorPos(1, 3);
if redstone.getInput("front") then
mon.write("OFFLINE")
else
mon.write("ONLINE ")
end
end
if mon then
mon.setCursorPos(1, 1);
mon.write("Admin");
mon.setCursorPos(1, 2);
mon.write("is")
updateOnline();
while true do
local evt = os.pullEvent();
if evt == "redstone" then
updateOnline();
end
end
end