Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function s(...) return sleep(...) end
- local function scp(...) return term.setCursorPos(...) end
- function c1()
- term.clear()
- term.setCursorPos(1,1)
- end
- c1()
- function load()
- scp(3,15)
- print"Loading"
- s(0.3)
- scp(6,17)
- print"0ooo"
- s(0.3)
- scp(6,17)
- print"o0oo"
- s(0.3)
- scp(6,17)
- print"oo0o"
- s(0.3)
- scp(6,17)
- print"ooo0"
- s(0.3)
- scp(6,17)
- print"oo0o"
- s(0.3)
- scp(6,17)
- print"o0oo"
- end
- load()
- load()
- load()
- s(0.5)
- c1()
- shell.run("bg")
- print"KolhoffOS 2.5 "
- s(0.1)
- print(os.clock())
- print"User= Chris Kolhoff (Admin) "
- s(0.1)
- print"**************************************************"
- print" "
- print"Options: "
- s(0.1)
- print"Shutdown"
- s(0.1)
- print"reboot"
- s(0.1)
- print"chat"
- s(0.1)
- print"edit"
- sleep(0.1)
- print"HDD"
- s(0.1)
- print"CDROM"
- s(0.1)
- print"exit"
- s(0.1)
- write"Please State Command: "
- x = read()
- if x == "shutdown" then
- os.shutdown()
- end
- if x == "reboot" then
- os.reboot()
- end
- if x == "chat" then
- load()
- c1()
- term.setTextColor(colors.lime)
- print"Uesrname: "
- y = read()
- print"Connecting to chat server..."
- s(0.2)
- print"Connected to chat server!"
- s(0.2)
- shell.run("chat join chat1 "..y)
- end
- if x == "edit" then
- load()
- write" File Name: "
- q = read()
- if q == "kossys32" then
- c1()
- m = read()
- write"File Restricted, Admin Password: "
- if m == "scottw0801" then
- c1()
- print"Authenticating..."
- s(0.2)
- print("Access Granted!")
- s(0.3)
- shell.run("edit kossys32")
- else
- print("Access Dineid!")
- sleep(0.1)
- os.reboot()
- end
- end
- else
- shell.run("edit "..q)
- end
- if x == "hdd" then
- load()
- shell.run("drive")
- sleep(0.6)
- end
- if x == "cdrom" then
- load()
- shell.run("drive disk")
- s(0.6)
- os.reboot()
- end
- if x == "exit" then
- c1()
- load()
- c1()
- shell.run("shell")
- else
- print"Uknown Command"
- s(0.5)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement