Advertisement
Marlingaming

CC Tweaked CCSPS Iron - Install Manager/Handler - 2.0.0

Feb 3rd, 2022 (edited)
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. local tArg = {...}
  2. local InstallFile = tArg[1]
  3. local Things = {}
  4.  
  5. local Paster = "os/System/Scripts/SilentPaster.lua"
  6.  
  7. function Download(I)
  8.  
  9. shell.run(Paster,"get",Things[I][3],Things[I][2])
  10. if Things[I][4] == true then
  11.     local Path = fs.combine("os/System/Saved/Shortcuts",Things[I][1])
  12.     local file = fs.open(Path,"w")
  13.     file.writeLine(Things[I][1])
  14.     file.writeLine(Things[I][2])
  15.     file.writeLine(Things[I][6])
  16.     file.writeLine(Things[I][5])
  17.     file.close()
  18. else
  19.  
  20. end
  21. end
  22.  
  23. local Li = fs.open(InstallFile,"r")
  24. Things = textutils.unserialize(Li.readAll())
  25. Li.close()
  26. for i = 1, #Things do
  27.     Download(i)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement