All pastes #908992 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-18 21:09 UTC
rendered paste body
SCRIPT #1

integer picindex=0;

LSL_Types.list urlarray = [] ;


public void default_event_state_entry()
{
llSay( 0, "cs osSetDynamicTextureURL Tester");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/001.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/002.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/003.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/004.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/005.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/006.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/007.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/008.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/009.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/010.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/011.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/012.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/013.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/014.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/015.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/016.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/017.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/018.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/019.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/020.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/021.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/022.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/023.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/024.png");
urlarray.Add("http://nebadon2025.com/sample_gallery_01/025.png");


llSetTimerEvent( 30); // create a "timer event" every 20 seconds.

}

public void default_event_timer(){
// do these instructions every time the timer event occurs.

// llSay( 0, "Fetching.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
picindex = (picindex+1) % urlarray.Length;
string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
//llSay(0,"URLTexture = "+srcURL);
llSetTexture(URLTexture, ALL_SIDES);
}
}

-----------------------------------------------------------------
SCRIPT #2

default
{
    state_entry()
    {
        llSetTimerEvent(9.9);
        llSay(0,"reset.");
    }
    
    timer()
    {
        llPlaySound("4bb28849-6234-40d4-bfee-09ee54801720",0.5);
    }
    
    
}

-----------------------------------------------------------------
SCRIPT #3 (Running 4 of these same script differnt image)

integer picindex=0;

LSL_Types.list urlarray = [] ;


public void default_event_state_entry()
{
llSay( 0, "cs osSetDynamicTextureURL Tester");
urlarray.Add("http://images.intellicast.com/WeatherImg/Radar/usa.gif");

llSetTimerEvent( 900); 

}

public void default_event_timer(){
// do these instructions every time the timer event occurs.

// llSay( 0, "Fetching.");
string dynamicID="";
integer refreshRate = 600;
string contentType="image";
picindex = (picindex+1) % urlarray.Length;
string srcURL = urlarray.GetSublist(picindex,picindex).ToString(); // URL
string URLTexture=osSetDynamicTextureURL(dynamicID, contentType ,srcURL , "", refreshRate );
if (llStringLength(URLTexture)>0)
{
//llSay(0,"URLTexture = "+srcURL);
llSetTexture(URLTexture, ALL_SIDES);
}
}

-----------------------------------------------------------------
SCRIPT #4
default
{
    state_entry()                                   
    {                                               
       float SPEED = 6; 
       llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES, 0, 0, 1.0, 1000, SPEED);
    }
}

-----------------------------------------------------------------
SCRIPT #5

//Set Text

default {
state_entry() {
llSetText("Click screens to force an update!",<1,1,1>,1);
}

}