Please explain more clearly what you're wanting. Are you wanting a script that responds to someone else's request, or a script that requests a song if someone plays a sound you don't already have? Or, is the script supposed to respond to some filetypes like mp3 but ignore other sounds like midi?
Note: in mirc-options/sound/requests you can check a box "listen for 'nick file' requests" to respond to someone else's requests, or check the box to "send 'nick file' as private msg".
Nowever, some of those options can get you banned from some channels, because they don't want you to open a query window to beg for a sound.