ID:149592
 
I have a login script which has usr << 'mymid.mid'
how would i make it play random songs a directory or in a order like
usr << 'mymid.mid'
usr << 'mymid1.mid'
usr << 'mymid2.mid'
usr << 'mymid3.mid' playing each one after another then going back to number one?
that isnt random...

from what i can think off the top of my head, make a proc that plays MIDI 1 sleep till it is over, play number 2, sleep till its over, ect. ect.
Mrhat99au wrote:
I have a login script which has usr << 'mymid.mid'
how would i make it play random songs a directory or in a order like
usr << 'mymid.mid'
usr << 'mymid1.mid'
usr << 'mymid2.mid'
usr << 'mymid3.mid' playing each one after another then going back to number one?

Try something along the lines of this:

var/list/Songs = list('song1.mid','song2.mid') //the list of songs to play

client
New()// Client New() proc
Music() // Calls music proc
..() // Does what client new normally does
proc
Music()
src << sound(pick(Songs),1) // picks song to play and sents it to the src
In response to Darkness
Thats a start but what about not just looping that song but after it finishes it goes on to another song without having to sleep or spawn