Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple Radio Script Help Needed

Brett Bjornson
Registered User
Join date: 8 Nov 2005
Posts: 25
10-09-2007 10:41
The following script was working fine on land I own until recently. Now, the only way I can get it to work is to deed it to a group. Any suggestions?

I'd like to leave it "open" so anyone can change channels, not just a member of a specified group.


integer channel; //What channel are we on?
integer maxChannels = 4; //Set here the total number of channels.
string hoverText; //For text that floats above the radio.

default
{
state_entry()
{
channel = 0;

}

touch_start(integer total_number)
{
channel = channel + 1; //Increment the channel by one each touch.

if (channel > maxChannels) //Then reset channel to 1.
{
channel = 1;
}

if (channel == 1)
{
llSetParcelMusicURL("http://128.118.86.117:8000/";);
hoverText = "Click me to change channels.\nNow playing WPSU.";
llSetText(hoverText,<0,1,0>,1);
}

if (channel == 2)
{
llSetParcelMusicURL("http://146.186.221.181:8000";);
hoverText = "Click me to change channels.\nNow playing The LION.";
llSetText(hoverText,<0,1,0>,1);
}

if (channel == 3)
{
llSetParcelMusicURL("http://128.118.86.117:800";);
hoverText = "Click me to change channels.\nNow playing NPR Folk Jazz.";
llSetText(hoverText,<0,1,0>,1);
}

if (channel == 4)
{
llSetParcelMusicURL("http://205.188.215.232:8014";);
hoverText = "Click me to change channels.\nNow playing Classical Guitar.";
llSetText(hoverText,<0,1,0>,1);
}
}


}
Okiphia Rayna
DemonEye Benefactor
Join date: 22 Sep 2007
Posts: 2,103
10-09-2007 10:47
just wondering, is it group land now, and wasnt before? if it is, and scripts arent allowed even for group members, that might do that..maybe not, uncertain
Django Yifu
Beat Island Gaffer
Join date: 7 May 2007
Posts: 189
10-09-2007 11:11
I can't see where in the script it checks for who's touching it so it should work when anyone does. I guess it depends on the Parcels Media settings and the deeding.

If the land is deeded to group then that explains why the object needs to be deeded to group.
_____________________
Tread softly upon the Earth for you walk on my face.