mob
var
Playing = 0
mob/proc/RandomSong()
usr << pick(Song1(),Song2())
mob
verb
Listen()
set name = "Red Road Radio"
set category = "Radio"
Playing = 0
if(Playing == 0)
Playing = 1
RandomSong()
else
Playing = 0
usr << sound(null)
mob
proc
Song1()
set name = "Jingle Jangle Jingle"
usr << 'MUS_Jingle_Jangle_Jingle.wav'
sleep(2030)
RandomSong()
Song2()
set name = "Blue Moon"
usr << 'MUS_Blue_Moon.wav'
sleep(1740)
RandomSong()
Problem description:
Weeeellll, I click the verb and it plays fine, but then i click it to turn it off and another song starts up in the backround, with the other still playing!
Also, I would suggest not using pick() like that, even though it works for somewhat silly reasons.