Advertisement
Blackhome

Downloader

Jan 6th, 2025 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. pastebinCode, programName = ...
  2.  
  3. local pastebinPrograms = {{pastebinCode, programName}}
  4. if not pastebinCode then
  5.     -- array of all programms: { {pastebinCode, name}, ... }
  6.     pastebinPrograms = {
  7.         {"gXNbkqEq", "move"},
  8.         {"SBFhJsWE", "inspect"},
  9.         {"6BHSbwQQ", "dropAll"},
  10.         {"hVkMNCvw", "collectLava"},
  11.         {"DPmmbNjZ", "Miner"},
  12.         {"sSK762iy", "Copy"},
  13.         {"DNEwQzVY", "3x3_Tunnler"},
  14.         {"gZnCZ1kD", "LavaLoader"},
  15.         {"05RYAd3T", "Lumberjack"},
  16.         {"St5ykWrZ", "FluidProofer"},
  17.         {"tCqp2NLe", "LavaPlacer"}
  18.     }
  19. end
  20.  
  21. -- function to download the program
  22. local function downloadProgram(pastebinCode, fileName)
  23.     local command = "pastebin get " .. pastebinCode .. " " .. fileName
  24.     local success, message = shell.run(command)
  25. end
  26.  
  27. -- download all programs from list
  28. for _, program in ipairs(pastebinPrograms) do
  29.     local code, name = unpack(program)
  30.     downloadProgram(code, name)
  31. end
  32.  
  33. print("All downloads comleted!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement