ID:268473
 
How do u add music to games? Such as playing another song when the other one is finished instead of playing the same one over and over again.
usr << midi.mid
world << midi.mid

I believe that's how it goes, anyway.
In response to Devourer Of Souls
Very, simple. To make the song go to a mob when they login do this....

mob
Login()
usr<<sound('yoursong.mid or wav',1)
Note the 1. That means it will loop. 0 means it won't.
In response to Fantasy Entertainment
Except you shouldn't be using usr in procs.

And you'd want to put that in client/New().
In response to Fantasy Entertainment
Both wrong, he asked how to queue up a linup of songs instead of looping a single song.

Have a list of songs in an associative list, and associate the file with its length. The number should be the length of the song in tenths of a second. Then you can easily tell when a song is finished playing.
var/global/list
music=list('song1.mid'=600,'song2.mid'=350,'song3.mid'=400)
music_queue=list()
proc/MusicBox()
while(global.music_queue.len)
world<<global.music_queue[1]
sleep(global.music[global.music_queue[1]])
global.music_queue-=global.music_queue[1]
client/verb/Play_Tune(song in global.music)
global.music_queue+=song
if(global.music_queue.len>1)
MusicBox()