Posted 11 August 2012 - 12:09 PM
Startup Scripts
Realistic startup scripts just for the fun of it like a startup terminal for a real computer.
Just add this to your computer as startup or use it as a api for one of your programs like a OS and adjust code to your specifications.
Realistic startup scripts just for the fun of it like a startup terminal for a real computer.
Just add this to your computer as startup or use it as a api for one of your programs like a OS and adjust code to your specifications.
function wait(seconds, event)
local waitdelay = os.startTimer(seconds)
local chk, p1, p2, p3;
repeat chk, p1, p2, p3 = os.pullEvent() until (event ~= nil and chk == event) or (chk == "timer" and p1 == waitdelay)
return chk, p1, p2, p3
end
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Running Startup Program...")
wait(1)
term.setCursorPos(1,1)
term.clearLine()
print("Running Startup Program..")
wait(1)
term.setCursorPos(1,1)
term.clearLine()
print("Running Startup Program...")
wait(1)
term.setCursorPos(1,1)
term.clearLine()
print("Running Startup Program..")
wait(1)
term.setCursorPos(1,1)
term.clearLine()
print("Running Startup Program...")
wait(1)
--1st line
textutils.slowPrint("Processing Scripts...")
wait(1)
term.setCursorPos(1,2)
term.clearLine()
print("Processing Scripts..")
wait(1)
term.setCursorPos(1,2)
term.clearLine()
print("Processing Scripts...")
wait(1)
--2nd line
textutils.slowPrint("Checking files:")
number = 1
repeat
print("Checking files: " .. number .."/429")
number = number + 1
wait(0.01)
until number == 144
wait(1)
print("Checking files: Done")
wait(1)
textutils.slowPrint("Clearing Console...")
wait(0.5)
--line 148
textutils.slowPrint("----------------------------------------")
wait(1)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("CraftOS 1.4")