Blackhome

Downloader

Jan 6th, 2025 (edited)
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.35 KB | None | 0 0
  1. -- pastebin get G6sUzWwh Downloader
  2. pastebinCode, programName = ...
  3.  
  4. local pastebinPrograms = {{pastebinCode, programName}}
  5. if not pastebinCode then
  6.     -- array of all programms: { {pastebinCode, name}, ... }
  7.     pastebinPrograms = {
  8.         {"gXNbkqEq", "move1"},
  9.         {"SBFhJsWE", "inspect1"},
  10.         --{"6BHSbwQQ", "dropAll1"},
  11.         {"hVkMNCvw", "collectLava1"},
  12.         --{"DPmmbNjZ", "Miner"},
  13.         --{"DNEwQzVY", "3x3_Tunnler"},
  14.         {"gZnCZ1kD", "LavaLoader"},
  15.         --{"05RYAd3T", "Lumberjack"},
  16.         {"St5ykWrZ", "FluidProofer"},
  17.         --{"tCqp2NLe", "LavaPlacer"},
  18.         {"FSCkCHyq", "BucketLavaCollector"},
  19.         --{"ZYU4qakm", "GravelQuarry"},
  20.         --{"uHjgNtkQ", "AreaBuilder"},
  21.        -- {"m5uwNahc", "CactusFarm"},
  22.        {"UywmNSvy", "CollectAndRefuelLava"},
  23.        {"0RUmFSPD", "RefuelLoop"}
  24.     }
  25. end
  26.  
  27. -- function to download the program
  28. local function downloadProgram(pastebinCode, fileName)
  29.     local  command = "delete " .. fileName
  30.     local success, message = shell.run(command)
  31.    
  32.     command = "pastebin get " .. pastebinCode .. " " .. fileName
  33.     success, message = shell.run(command)
  34. end
  35.  
  36. -- download all programs from list
  37. for _, program in ipairs(pastebinPrograms) do
  38.     local code, name = unpack(program)
  39.     downloadProgram(code, name)
  40. end
  41.  
  42. print("All downloads comleted!")
Advertisement
Add Comment
Please, Sign In to add comment