Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.setTextColor(colors.blue)
- term.clear()
- term.setCursorPos(1, 1)
- print("Bubble Bot Computers V4.1.1")
- term.setTextColor(colors.white)
- print("Remote [1]")
- print("Chat [2]")
- print("Calculator [3]")
- print("NumberGame [4]")
- print("Comp. Info [5]")
- print("Options [6]")
- print("Reboot [7]")
- print("Shutdown [8]")
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key" ) then
- if(param == 2) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("remote")
- elseif(param == 50) then
- term.clear()
- term.setCursorPos(1, 1)
- print("Bubble Bot Computers V4.1.1")
- print("Remote [1]")
- print("Chat [2]")
- print("IMClient [3]")
- print("Calculator [4]")
- print("NumberGame [5]")
- print("Comp. Info [6]")
- print("Options [7]")
- print("Reboot [8]")
- print("Shutdown [9]")
- elseif(param == 3) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("chat")
- elseif(param == 4) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("calculator")
- elseif(param == 5) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("numbergame")
- elseif(param == 6) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("id")
- sleep(5)
- elseif(param == 7) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("options")
- elseif(param == 8) then
- sleep(.5)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(.5)
- textutils.slowPrint("Restarting...")
- sleep(2.5)
- os.reboot()
- elseif(param == 9) then
- sleep(.5)
- term.clear()
- term.setCursorPos(1, 1)
- sleep(.5)
- textutils.slowPrint("Goodbye...")
- sleep(2.5)
- os.shutdown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement