OK, I'm a true geek..... as you can see. I'm posting to blogger from within SL. That's me and a friend looking at this website with blogger open below, my big screen tv and video players, Tiny Empires Hud in the left.
I got my Prim script to work and I love it, but you have to be very careful with permissions, the script itself does not warn about permissions at all so you are warned.
integer site = 1;
string site1 = "http://ingmanndesign.com"; //replace with your site
string site2 = "http://slfashionality.blogspot.com"; //replace with your second site
string site3= "http://lunajubilee.blogspot.com"; //replace with your third site
default
{ // beginning of state
state_entry()
{ // stuff between this set of brackets happens when script first loads.
// or the script gets reset.
//Currently set to display the 'main' site.
llParcelMediaCommandList
([
PARCEL_MEDIA_COMMAND_URL, site1,
PARCEL_MEDIA_COMMAND_TYPE, "text/html",
PARCEL_MEDIA_COMMAND_PLAY
]);
}
touch_start(integer total_number)
{ //start of touch stuff
if ( site == 1.0 )
{ // bracket to start doing stuff if the site is 1.0
llParcelMediaCommandList
([
PARCEL_MEDIA_COMMAND_URL, site1,
PARCEL_MEDIA_COMMAND_TYPE, "text/html",
PARCEL_MEDIA_COMMAND_PLAY
]);
llSay(0, "Site 1");
site = 2;
} // bracket to end the first if statement
else if ( site == 2 ) // “else if” is what you use for the script to keep
// checking stuff in case that first if statement
// isn’t valid
{ // bracket starts the else if stuff
llParcelMediaCommandList
([
PARCEL_MEDIA_COMMAND_URL, site2,
PARCEL_MEDIA_COMMAND_TYPE, "text/html",
PARCEL_MEDIA_COMMAND_PLAY
]);
llSay(0, "Site 2");
site = 3;
} // end this else if stuff
else if ( site == 3)
{
llParcelMediaCommandList
([
PARCEL_MEDIA_COMMAND_URL, site3,
PARCEL_MEDIA_COMMAND_TYPE, "text/html",
PARCEL_MEDIA_COMMAND_PLAY
]);
llSay(0, "Site 3");
site = 1;
}
} // end of touch stuff
} // end of state
// Please note I am not responsible for anything you choose to display using this script, it is entirely possible to display items offensive or against the TOS, if you modify this script to do so know that I did not design it as such.

0 comments:
Post a Comment