Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo ---------------------------------------------------------
- echo - LoL - Champ Select Music Changer v0.12 - by Astoriane -
- echo ---------------------------------------------------------
- :: Music path to copy from
- set musicpath="music/"
- :: Change this to your lol ambient path
- set soundpath="C:\Riot Games\League of Legends\RADS\projects\lol_air_client\releases\0.0.1.110\deploy\assets\sounds\ambient"
- :: Don't touch these, these are filenames
- set blindpick="ChmpSlct_BlindPick.mp3"
- set draftpick="ChmpSlct_DraftMode.mp3"
- IF /I "%1"=="d" goto draft
- IF /I "%1"=="b" goto blind
- goto input1
- :input1
- echo "Enter D for Draft and B for Blind pick (B/D)"
- set /P soundtype="Enter type: " %=%
- If /I "%soundtype%"=="d" goto draft
- If /I "%soundtype%"=="b" goto blind
- :draft
- setlocal EnableDelayedExpansion
- cd %musicpath%
- set n=0
- for %%f in (*.*) do (
- set /A n+=1
- set "file[!n!]=%%f"
- )
- set /a rand=%random% %%n
- copy "!file[%rand%]!" ..
- cd ..
- ren *.mp3 %draftpick%
- move %draftpick% %soundpath%
- goto end
- :blind
- setlocal EnableDelayedExpansion
- cd %musicpath%
- set n=0
- for %%f in (*.*) do (
- set /A n+=1
- set "file[!n!]=%%f"
- )
- set /a rand=%random% %%n
- copy "!file[%rand%]!" ..
- cd ..
- ren *.mp3 %blindpick%
- move %blindpick% %soundpath%
- goto end
- :end
- echo Done!
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement