Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showTime()
- fin = http.get("http://time.is/ru/just")
- for i = 1,232,1 do
- if i == 232 then
- time = string.sub(fin.readLine(),73,77)
- else
- f = fin.readLine()
- end
- end
- print(time)
- end
- print("MultiFunction Program 1.0.0 by Delta2Force")
- os.sleep(2)
- shell.run("clear")
- term.setBackgroundColor(colors.blue)
- term.clear()
- term.setCursorPos(2,15)
- print("Loading MFP...")
- term.setCursorPos(10,10)
- textutils.slowPrint("################################")
- os.sleep(1.5)
- shell.run("clear")
- term.setCursorPos(1,1)
- os.sleep(1)
- term.setBackgroundColor(colors.blue)
- term.clear()
- term.setCursorPos(3,10)
- textutils.slowPrint("What do you want to do? You can enter Following :")
- term.setCursorPos(3,10)
- os.sleep(5.5)
- textutils.slowPrint("Time,Shutdown,Reboot,Adventure,ANTIVIRUS,Exit ")
- term.setCursorPos(3,9)
- textutils.slowPrint("Enter the command Case-Sensestive!")
- term.setCursorPos(2,15)
- term.setTextColor(colors.black)
- write("--> ")
- input = read()
- term.setTextColor(colors.white)
- if input == "Shutdown" then
- shell.run("clear")
- shell.run("shutdown")
- elseif input == "Reboot" then
- shell.run("clear")
- shell.run("reboot")
- elseif input == "Adventure" then
- shell.run("clear")
- shell.run("adventure")
- elseif input == "Time" then
- shell.run("clear")
- showTime()
- elseif input == "ANTIVIRUS" then
- shell.run("clear")
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setCursorPos(1,1)
- print("Delete the Startup File?(y or n)")
- write("--> ")
- input1 = read()
- if input1 == "y" then
- fs.delete("startup")
- shell.run("reboot")
- else
- print("Okay.")
- os.sleep(2)
- term.clear()
- shell.run("clear")
- end
- elseif input == "Exit" then
- print("Seya!")
- os.sleep(2)
- term.clear()
- shell.run("clear")
- else
- term.clear()
- shell.run("clear")
- print("What?")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement