Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- state_entry()
- {
- list dets = llGetObjectDetails(llGetKey(),[OBJECT_GROUP]);
- key uuid = llList2Key(dets,0);
- uuid = "5bfe8ef5-1a4a-0199-6955-422f0b9addf9";
- llSay(0,llKey2Name(uuid)+".");
- llHTTPRequest("http://world.secondlife.com/group/"+(string)uuid,[],"");
- }
- http_response(key id, integer status, list data, string body)
- {
- list parsed = llParseString2List(body,["<title>","</title>"],[]);
- string groupname = llList2String(parsed,1);
- list parsedname = llParseString2List(groupname,[],["<","&rt;",""e","&"]);
- integer len = llGetListLength(parsedname);
- integer i;
- list replace = ["<","<","&rt;",">",""e","\"","&","&"];
- for(i = 0;i < len;i++)
- {
- string substring = llList2String(parsedname,i);
- integer idx = llListFindList(replace,[substring]);
- if(~idx && !(idx%2))
- {
- parsedname = llListReplaceList(parsedname,llList2List(replace,idx+1,idx+1),i,i);
- }
- }
- groupname = llDumpList2String(parsedname,"");
- llSetText(groupname,<1,0,1>,1.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement