Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- pastebin get xLfqC4SL Download
- programName = ...
- programList = {
- ["HoneyFarmer"] = { ["code"] = "hVaHX6CG", ["requirements"] = { "fkt_inventory", } },
- ["fkt_inventory"] = { ["code"] = "wCZcgvnn" },
- ["Download"] = { ["code"] = "xLfqC4SL" },
- -- Storage System
- ["Filter"] = { ["code"] = "Em2sZPSF", ["requirements"] = { "SE", "SDM",} },
- ["RefuelDigger"] = { ["code"] = "180C8NRw"},
- ["SDM"] = { ["code"] = "6fYKgMYH", ["requirements"] = { "FM", } },
- ["FM"] = { ["code"] = "14xf463S" },
- ["SE"] = { ["code"] = "BKmw3WTx"},
- ["TCE"] = { ["code"] = "Q4y1iUEd", ["requirements"] = { "SDM", "CVF"} },
- ["SMUI"] = { ["code"] = "q7maGyKb", ["requirements"] = { "SDM", "CVF"} },
- ["CVF"] = { ["code"] = "PE0k7NQY"},
- ["SM"] = { ["code"] = "wngsBEP2", ["requirements"] = { "TCE",} },
- ["POS"] = { ["code"] = "a22LsH3d", ["requirements"] = { "SDM", "CVF"} },
- ["BM"] = { ["code"] = "wsLBFGgx", ["requirements"] = { "POS", "CVF"} },
- ["AM"] = { ["code"] = "Z5rK8b3r", ["requirements"] = { "BM", "POS"} },
- ["TT"] = { ["code"] = "Bfmm8YH2", ["requirements"] = { "AM", "SE"} },
- ["TURT"] = { ["code"] = "bSBgdCDF", ["requirements"] = { "TT"} },
- }
- -- function to download the program
- local function downloadProgram(pastebinCode, fileName)
- local command = "delete " .. fileName
- shell.run(command)
- command = "pastebin get " .. pastebinCode .. " " .. fileName
- shell.run(command)
- end
- program = programList[programName]
- pb_code = program["code"]
- requirements = program["requirements"] or {}
- print("\nAttempt to download " .. programName .. ".")
- if program and pb_code then
- downloadProgram(pb_code, programName)
- for _, req in ipairs(requirements) do
- local command = "Download " .. req
- shell.run(command)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment