Music Streams

Copy and paste the script:

// Title: Music Streams
integer dialogChannel = 19242; // dialog channel
list stationMenu;
list streams;
string stationURL;

llListen(dialogChannel, “”, NULL_KEY, “”); // listen for dialog answers
stationMenu = [“Radio Nigel”,”Club”,”Demented”,”80s”,”Top 500″];

streams = [“”%5D; // Radio Nigel
streams+= [“”%5D; // Club
streams+= [“”%5D; // Demented radio
streams+= [“”%5D; // 80s
streams+= [“”%5D; // Top 500



on_rez(integer start_param)

touch(integer touchCounter)
llDialog(llDetectedKey(0), “Click a button to choose a different internet radio station”, stationMenu, dialogChannel); // present dialog on click

listen(integer channel, string name, key id, string chosenStation)
if(channel == dialogChannel){

integer place;
place = llListFindList(stationMenu,[chosenStation]);
stationURL = llList2String(streams, place);


llSetText(“Now playing ” + chosenStation + “\n” + stationURL,<1,0,0>,1.0);

} // end if

}// end listen



2 responses to “Music Streams

  1. I am having problems with this script, also it is different from the one you have on SL. The one on SL has no compile errors yet the one here does.. Just letting you know while I try and figure this out…

  2. sorry Matt!

    The color vector in the llSetText was missing

    I’ve added it in this script, and tested it in SL!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s