mIRC Home    About    Download    Register    News    Help

Print Thread
#51472 26/09/03 03:22 PM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
Hi, I'm trying to get mirc to play sound by picking up any mp3file from the mirc/sound folder each time on *:mp3end: But i dont know how. For your info I like to play the /sound and not the /splay command, so that the sound that I played in a channel can be heard by every user that have that mp3file.
Anybody can help? confused


Keep learning everyday, you'll be a genius.
#51473 26/09/03 03:47 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Code:
on *:MP3END: {
  var %num = $findfile($mp3dir,*.mp3,[color:green]0[/color])
  if (%num) {
    var %song = $findfile($mp3dir,*.mp3,$rand(1,%num))
    sound [color:red]#channel[/color] $+(",%song,") I am playing: $nopath(%song)
  }
  else echo $color(info) -a * No Mp3 Found
}


Replace this with channel name of your choice

Yes, thank you. smile

Last edited by r0ck0; 26/09/03 03:52 PM.
#51474 26/09/03 03:50 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
Quote:

var %num = $findfile($mp3dir,*.mp3,1)

shouldnt 1 be 0?


new username: tidy_trax

Link Copied to Clipboard