Weekly Raffle
Top Free Scripts
ASD Web Tools
Get Region Map
 
Script ID : 43
Published Date: 2010/5/12 5:25:16
Reads : 5504
Texture

Displays map image of current sim on prim & updates every 24 hours.


integer time 86400//update every 24 hours

key httpRequestId;
string mapTexture;
string URL "http://www.subnova.com/secondlife/api/map.php";
 
default 
{
    
on_rezinteger sparam )
    {
        
llResetScript();
    }
    
    
state_entry() 
    {
        
llSetTimerEvent(time);
        
httpRequestId llHTTPRequest(URL "?" "sim" "=" llEscapeURL(llGetRegionName()),[], "");
    }
    
    
http_response(key request_idinteger status, list metadatastring body)
    {
        if (
request_id == httpRequestId
        {
            
mapTexture body;
            
llSetTexture(mapTextureALL_SIDES); //you can replace ALL_SIDES with a side number instead
        
}
    }
    
    
timer() 
    {
        
httpRequestId llHTTPRequest(URL "?" "sim" "=" llEscapeURL(llGetRegionName()),[], "");
    }
}

Printer Friendly Page Send this Script to a Friend

Disclaimer: While I do not mind if these scripts are used in things you sell, I do not wish for these scripts to be sold either on their own or in script packs.
Most Popular Raffle System In Second Life
Visit ASD Studios Hollywood
Search for Help
Monthly Free Item
Halloween Cupcakes


Limit one per avatar
Teleport Now!



Sponsor

Site Info
Total Hits: