Jump to content

Profile Reader, will read an AV profile for key words


Lucinda Bulloch
 Share

You are about to reply to a thread that has been inactive for 3890 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Below is a scanner that scans AV's profiles for a key word, if it finds that word in their profile it prints their profile out, change the search word for anything can even be a phrase, enjoy playing with it, if you look it uses a meta name filter, which is a handy bit of code.

 

string searchstring = "drama";
string profile;
list keys = [];
integer cnt;
default
{
   state_entry()
    {
     llSetMemoryLimit(0x8000);
     llSensorRepeat("","",AGENT,96,PI,20.0);
    }
   http_response(key req,integer stat, list met, string body)
    {
     list dat = llParseStringKeepNulls(body,["meta name=\"description\" content=\""],[]); 
     profile = llGetSubString(llList2String(dat,1),0,llSubStringIndex(llList2String(dat,1),"\" />")-1);
     if(llSubStringIndex(llToLower(profile),llToLower(searchstring))!=-1)
      {
       llSay(0,llKey2Name(llList2Key(keys,cnt-1))+" "+ profile);
       //if you want to top them home then take the // from the line below
       //llTeleportAgentHome(llList2Key(keys,cnt-1));
      }
    }
   timer()
    {
     llSetTimerEvent(0);   
     llHTTPRequest( "http://world.secondlife.com/resident/" + llList2String(keys,cnt),[HTTP_METHOD,"GET"],"");   
     cnt++;
     if(cnt<llGetListLength(keys))llSetTimerEvent(1);
    } 
   sensor(integer t)
    {
     integer x;
     llSetTimerEvent(0);
     keys = [];
     for(x=0;x<t;x++)keys+=llDetectedKey(x);
     llSetTimerEvent(1);
     cnt = 0;
    }
}

 

 

Some people have abusive profiles, this can be used to tp them home before people get a chance to read them, good for removing drama queens.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3890 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...