Jump to content
Sign in to follow this  
Nicole Hansome

Please help with Music Stream Title Notification

Recommended Posts

Hi :)

Im currently experimenting with the stream title feature in the Firestorm Viewer (Current playing music titles are showing up in the nearby chat). I found out that I can also let these titles send to a specific channel.

What i'm now trying to find out is how can i convert this stream title info on the channel into a hovertext or into a say or shout command ?

I know to listen on that specific channel for the information but how can i make it to show up as hovertext or other commands ?

Thanks much for help ^^

Share this post


Link to post
Share on other sites

It comes in without extra formatting, so you can send the listen message right back out.

// set to the channel you used in your viewerinteger gChannel = 362394;default{    state_entry()    {        llListen(gChannel, "", llGetOwner(), "");    }    on_rez(integer start_param)    {        llResetScript();    }    listen(integer channel, string name, key id, string message)    {        llSetText("Now playing:\n" + message, <1.,1.,0.>, 1.);        llOwnerSay("Now playing: " + message);    }}

 

Share this post


Link to post
Share on other sites

Note that this will only work if there's an ava run in a viewer which has set the channel to the specific channel is close by (I don't actually know which communication command Firestorm uses.).

If you want a script that displays the song currently played in a certain stream in a parcel independently of a certain ava present, you would have to use the notorious page 7.html and poll it with a timer.

Share this post


Link to post
Share on other sites

Hi :) Thanks Darkie for the Info, but it's okay, it will only be used when im online sending the information from my viewer.. 

And thanks very much Trixie. The script works perfectly for me :matte-motes-kiss:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...