Advertisement
Guest User

Blubb

a guest
Apr 14th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. local sf = {
  2.     {"Dlc_glados_killing_spree_ann_glados_kill_double_",1},
  3.     {"Dlc_glados_killing_spree_ann_glados_kill_triple_",1},
  4.     {"Dlc_glados_killing_spree_ann_glados_kill_ultra_",2},
  5.     {"Dlc_glados_killing_spree_ann_glados_kill_rampage_",3},
  6.     {"Dlc_glados_ann_glados_followup_respaw_",13},
  7.     {"Dlc_glados_ann_glados_ally_neg_",26},
  8. }
  9.  
  10. if not DirExists(SOUNDS_PATH..[[\Glados\]]) then
  11.     CreateDir(SOUNDS_PATH..[[\Glados\]])
  12. end
  13.  
  14. function DL()
  15.     for _,i in pairs(sf) do
  16.         for l=1,i[2] do
  17.             print(i[1]..i[2])
  18.             if not FileExist(SOUNDS_PATH.. [[\Glados\]] .. i[1] .. l .. ".wav") then
  19.                 DownloadFileAsync("https://raw.githubusercontent.com/LoggeL/GoS/master/GS/" .. i[1]..l..".wav" ,SOUNDS_PATH .. [[\Glados\]] .. i[1].."0"..l..".wav", function() PrintChat("Downloaded "..i[i]..l) DL() end)
  20.                 return
  21.             else
  22.                 print("exists")
  23.             end
  24.         end
  25.     end
  26. end
  27.  
  28. DL()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement