Posts: 335
Threads: 15
Joined: Aug 2011
16 Oct 12, 12:12AM
(This post was last modified: 16 Oct 12, 12:12AM by Link.)
Thanks Jg. That will sure come in handy to admins.
Here's mine.
[cubescript]
music "pingpong/03-pp-kamikadze.ogg" "90000" [echo Music finished.]
[/cubescript]
How it works:
Base command: music A B C
"music" is the command to play music.
A is the path to the *.ogg file in your "ACRoot/packages/audio/songs" folder.
B is the duration to play the song. For example if the music is 2 mins long and 03 seconds long, 2*60= 120 + 3 secs = 123 seconds. Then, multiply the result for 1000 for milliseconds, and put that for B. In this case, it's 90000 because it's 90 seconds long.
C is a command to do after the music finished playing. In my case, it says "Music finished." in the chatbox when done.