Advertisement
Guest User

menu

a guest
Oct 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.95 KB | None | 0 0
  1.   os.pullEvent = os.pullEventRaw
  2.   term.setTextColor(colors.blue)
  3.   term.clear()
  4.   term.setCursorPos(1, 1)
  5.   print("Bubble Bot Computers V4.1.1")
  6.   term.setTextColor(colors.white)
  7.   print("Remote     [1]")
  8.   print("Chat       [2]")
  9.   print("Calculator [3]")
  10.   print("NumberGame [4]")
  11.   print("Comp. Info [5]")
  12.   print("Options    [6]")
  13.   print("Reboot     [7]")
  14.   print("Shutdown     [8]")
  15.   local sEvent, param = os.pullEvent("key")
  16.        if(sEvent == "key" ) then
  17.            if(param == 2) then
  18.                 term.clear()
  19.                 term.setCursorPos(1, 1)
  20.                 shell.run("remote")
  21.      elseif(param == 50) then
  22.        term.clear()
  23.        term.setCursorPos(1, 1)
  24.        print("Bubble Bot Computers V4.1.1")
  25.        print("Remote     [1]")
  26.        print("Chat       [2]")
  27.        print("IMClient   [3]")
  28.        print("Calculator [4]")
  29.        print("NumberGame [5]")
  30.        print("Comp. Info [6]")
  31.        print("Options    [7]")
  32.        print("Reboot     [8]")
  33.        print("Shutdown   [9]")
  34.            elseif(param == 3) then
  35.                 term.clear()
  36.                 term.setCursorPos(1, 1)
  37.                 shell.run("chat")
  38.      elseif(param == 4) then
  39.        term.clear()
  40.        term.setCursorPos(1, 1)
  41.        shell.run("calculator")
  42.            elseif(param == 5) then
  43.                 term.clear()
  44.                 term.setCursorPos(1, 1)
  45.                 shell.run("numbergame")
  46.            elseif(param == 6) then
  47.                 term.clear()
  48.                 term.setCursorPos(1, 1)
  49.                 shell.run("id")
  50.                 sleep(5)
  51.            elseif(param == 7) then
  52.                 term.clear()
  53.                 term.setCursorPos(1, 1)
  54.                 shell.run("options")
  55.            elseif(param == 8) then
  56.                 sleep(.5)
  57.        term.clear()
  58.        term.setCursorPos(1, 1)
  59.        sleep(.5)
  60.        textutils.slowPrint("Restarting...")
  61.        sleep(2.5)
  62.                 os.reboot()
  63.            elseif(param == 9) then
  64.                 sleep(.5)
  65.        term.clear()
  66.        term.setCursorPos(1, 1)
  67.        sleep(.5)
  68.        textutils.slowPrint("Goodbye...")
  69.        sleep(2.5)
  70.                 os.shutdown()
  71.            end
  72.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement