Rutherford Beresford Posted September 27, 2015 Share Posted September 27, 2015 Is there a way for a script to return the total number of avatars on the grid? I know, when you first sign on to the view, that that number is present, but I wasn't sure if it was something to which you have access in an LSL script.Thank you!Ford Link to comment Share on other sites More sharing options...
Rolig Loon Posted September 27, 2015 Share Posted September 27, 2015 Nope. Link to comment Share on other sites More sharing options...
Qie Niangao Posted September 27, 2015 Share Posted September 27, 2015 Not directly, but there's a reasonably popular script that can be had, full perm, on Simon Linden's roof in Denby, which scrapes a little text from http://secondlife.com/httprequest/homepage.php which is an official, documented API. Link to comment Share on other sites More sharing options...
Chaser Zaks Posted September 28, 2015 Share Posted September 28, 2015 You can use HTTP Requests to figure out how many agents are on the grid(And more if you wish). Here is an example script which finds out how many people are on the grid when clicked, then says it out on channel 0: //This is called from below when we get our info//If you want you can just change this. :3( ) (, + () + );//Function for ease of use =; () //Lets not re-request if we already are waiting on a request. (==) = (,[],); ; ( ) //Lets ask the server for information (); ( , , , ) (==)//Is it our request? (==)//Make sure we didn't get an error //The response is seperated by new lines, so we use \n = (, [], []); //Never trust the order, it can always change. //So we will find out where it is here = (, []); () //Make sure we got a VALID location //Add 1 to locationOfInWorld and we get our value //Note it is STILL a string, we need to cast it into a integer = ()(, + ); //Lets call our function (); //This is optional, it's just made for ease of use =; --EDIT-- Oh god the forums cant handle my formatting --EDIT LOG #26928-- It is the year 2582, It's getting dark, there is still no hope in sight the forums will accept my formating soon. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now