Advertisement
fbMarcel

| sys | addon

Sep 7th, 2016 (edited)
1,396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.08 KB | Gaming | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("AddOn Installer")
  4. print("[1] Mining     [2] Programs")
  5. print("[3] Games      [4] Startups")
  6. print("[5] PackMan    [6] Farm")
  7. print("[A]bort")
  8.  
  9. while true do
  10.     local event, key = os.pullEvent("key")
  11.     --[[ Press 1 - Mining ]]--
  12.     if key == keys.one then
  13.         term.clear()
  14.         term.setCursorPos(1,1)
  15.         print("AddOn Installer")
  16.         print("Mining!")
  17.         print("")
  18.         print("Downloading programs..")
  19.         shell.run("pastebin","get","h99kPQWx","/mine/Setup")
  20.         shell.run("pastebin","get","fVPz3ReZ","/mine/Mine")
  21.         shell.run("pastebin","get","7QnDd2jv","/mine/Tunnels")
  22.         shell.run("pastebin","get","1bEHWuG1","/mine/carpet.lua")
  23.         shell.run("pastebin","get","352iVPQM","/mine/obsidian")
  24.         shell.run("pastebin","get","ArbH6xRw","/mine/obsidian-simple")
  25.         shell.run("pastebin","get","WPyd0KMq","/mine/stairs-dig")
  26.         shell.run("pastebin","get","LXbGMmXN","/mine/stairs-place")
  27.         shell.run("pastebin","get","yD5Dk8Cg","/mine/stairs-torch")
  28.         shell.run("pastebin","get","Tk1tGUw4","/mine/stairs-stairs")
  29.         shell.run("pastebin","get","snQ9Uujz","/mine/3x3-tunnel")
  30.         print("Done!")
  31.         sleep(1)
  32.         break
  33.     --[[ Press 2 - Programs ]]--
  34.     elseif key == keys.two then
  35.         term.clear()
  36.         term.setCursorPos(1,1)
  37.         print("AddOn Installer")
  38.         print("Programs!")
  39.         print("")
  40.         print("Downloading programs..")
  41.         shell.run("pastebin","get","5Tw6K4HN","/progs/luaide-lite")
  42.         shell.run("pastebin","get","9uDseNMG","/progs/luaide")
  43.         shell.run("pastebin","get","PvHyLDHQ","/progs/nsh/nsh")
  44.         shell.run("pastebin","get","b9N5dWQ8","/progs/nsh/put")
  45.         shell.run("pastebin","get","awtr2yhw","/progs/nsh/framebuffer")
  46.         shell.run("pastebin","get","uxwBPYZD","/progs/nsh/get")
  47.         shell.run("pastebin","get","5vXK1NP3","/progs/npaintpro/npaintpro")
  48.         shell.run("pastebin","get","X2H15irH","/progs/npaintpro/gameutils")
  49.         shell.run("pastebin","get","QxHYKm3L","/progs/npaintpro/3dprint")
  50.         print("Done!")
  51.         sleep(1)
  52.         break
  53.     --[[ Press 3 - Games ]]--
  54.     elseif key == keys.three then
  55.         term.clear()
  56.         term.setCursorPos(1,1)
  57.         print("AddOn Installer")
  58.         print("Games!")
  59.         print("")
  60.         print("Downloading programs..")
  61.         shell.run("pastebin","get","Dgjuyvi4","/games/clicker")
  62.         shell.run("pastebin","get","rwFDvnkA","/games/tictactoe")
  63.         shell.run("pastebin","get","zEXWz4iu","/games/gameoflife")
  64.         shell.run("pastebin","get","UZLy8QLx","/games/battleship")
  65.         shell.run("pastebin","get","1hEU5n1H","/games/maze3d")
  66.         shell.run("pastebin","get","GBLA1RgW","/games/maze2d")
  67.         shell.run("pastebin","get","sVkMMBHR","/games/TheButton/TheButton")
  68.         shell.run("pastebin","get","iPieA3qa","/games/TheButton/Autoplay")
  69.         shell.run("pastebin","get","YTq6jJ7r","/games/TheButton/info")
  70.         print("writing nfp images for TheButton /games/TheButton/num/...")
  71.         shell.run("pastebin","run","g79WppbL")
  72.         print("Done!")
  73.         sleep(1)
  74.         break
  75.     --[[ Press 4 - Startups ]]--
  76.     elseif key == keys.four then
  77.         term.clear()
  78.         term.setCursorPos(1,1)
  79.         print("AddOn Installer")
  80.         print("Startups!")
  81.         print("")
  82.         print("Downloading programs..")
  83.         shell.run("pastebin","get","WTqPxYv6","/start/passT")
  84.         shell.run("pastebin","get","b2JBQgbM","/start/passPC")
  85.         shell.run("pastebin","get","5f43CK8K","/start/passDoor")
  86.         print("Done!")
  87.         sleep(1)
  88.         break
  89.     --[[ Press 5 - Packman Installer ]]--
  90.     elseif key == keys.five then
  91.         term.clear()
  92.         term.setCursorPos(1,1)
  93.         print("AddOn Installer")
  94.         print("Grab-PackMan!")
  95.         print("")
  96.         print("installing..")
  97.         sleep(1)
  98.         shell.run("pastebin","run","4zyreNZy")
  99.         break
  100.     --[[ Press 6 - Farming ]]--
  101.     elseif key == keys.six then
  102.         term.clear()
  103.         term.setCursorPos(1,1)
  104.         print("AddOn Installer")
  105.         print("Farming!")
  106.         print("")
  107.         print("Downloading programs..")
  108.         shell.run("pastebin","get","dUbFkQHB","/farm/wheat")
  109.         shell.run("pastebin","get","k3rfN0Ru","/farm/bigtree")
  110.         shell.run("pastebin","get","U1rAYspp","/farm/sugarcane")
  111.         print("Done!")
  112.         sleep(1)
  113.         break
  114.     elseif key == keys.a then
  115.         print("aborted!")
  116.         sleep(1)
  117.         break
  118.     end
  119. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement