Home |
Add a script
|
||
|---|---|---|---|
| Category: | Contributor: | Description | |
| Group Land | Fred Kinsei | Group Land Finder | |
Used to find the group land owner on your current parcel.
The Script
Download this script - Please use this link to get this script. If you see all the code on one long line, please use Wordpad or another editor, such as LSLEdit.exe. The .LSL file you will download is an ordinary text file.
1 //Credit to the creator: 2 //Made by SL resident Fred Kinsei 3 //Method found by Vince Bosen 4 //Modified by Vince so that it always works without the land owner in the sim 5 request(string owner) 6 { 7 llHTTPRequest("http://teen.world.secondlife.com/group/" + (string)owner, [HTTP_METHOD, "GET"], ""); 8 } 9 string owner; 10 default 11 { 12 state_entry() 13 { 15 llRequestAgentData(owner,DATA_NAME); 16 } 18 if(d=="") 19 request(owner); 20 else 21 llSay(0,"Owner of this plot is: "+d); 22 } 24 { 25 integer start = llSubStringIndex(body, "<title>"); 26 integer end = llSubStringIndex(body, "</title>"); 27 string name = llGetSubString(body, start+7, end-1); 28 llSay(0, "(Group) Owner is: " + name); 29 } 30 }