Advertisement
Guest User

League Champ Select Song Changer

a guest
Sep 19th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.32 KB | None | 0 0
  1. @echo off
  2. echo ---------------------------------------------------------
  3. echo - LoL - Champ Select Music Changer v0.12 - by Astoriane -
  4. echo ---------------------------------------------------------
  5.  
  6. :: Music path to copy from
  7. set musicpath="music/"
  8.  
  9. :: Change this to your lol ambient path
  10. set soundpath="C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0.1.110\deploy\assets\sounds\ambient"
  11.  
  12. :: Don't touch these, these are filenames
  13. set blindpick="ChmpSlct_BlindPick.mp3"
  14. set draftpick="ChmpSlct_DraftMode.mp3"
  15.  
  16. IF /I "%1"=="d" goto draft
  17. IF /I "%1"=="b" goto blind
  18.  
  19. goto input1
  20.  
  21. :input1
  22. echo "Enter D for Draft and B for Blind pick (B/D)"
  23. set /P soundtype="Enter type: " %=%
  24. If /I "%soundtype%"=="d" goto draft
  25. If /I "%soundtype%"=="b" goto blind
  26.  
  27. :draft
  28. setlocal EnableDelayedExpansion
  29. cd %musicpath%
  30. set n=0
  31. for %%f in (*.*) do (
  32.   set /A n+=1
  33.   set "file[!n!]=%%f"
  34. )
  35. set /a rand=%random% %%n
  36. copy "!file[%rand%]!" ..
  37.  
  38. cd ..
  39.  
  40. ren *.mp3 %draftpick%
  41.  
  42. move %draftpick% %soundpath%
  43.  
  44. goto end
  45.  
  46. :blind
  47. setlocal EnableDelayedExpansion
  48. cd %musicpath%
  49. set n=0
  50. for %%f in (*.*) do (
  51.   set /A n+=1
  52.   set "file[!n!]=%%f"
  53. )
  54. set /a rand=%random% %%n
  55. copy "!file[%rand%]!" ..
  56.  
  57. cd ..
  58.  
  59. ren *.mp3 %blindpick%
  60.  
  61. move %blindpick% %soundpath%
  62.  
  63. goto end
  64.  
  65. :end
  66. echo Done!
  67. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement