|
Rock Ryder
Registered User
Join date: 6 Oct 2006
Posts: 384
|
11-16-2007 14:58
Hi,
I have a list of owners of prims and the number of prims they own in a parcel on my SIM using llGetParcelPrimOwners, and passing the agent Keys to llRequestAgentData
However, I notice that the list produced by the script did not match that using About Land, Objects, Refresh List (I am the sim owner). On closer scrutiny the data that was missing was the prims owned by the Residents' group, whih showed like this:
Hoini Residents 13
However, dumping the data from llGetParcelPrimOwners to a string does show these missing prims, and a key to whom they do belong, like so:
13, 4f89efae-705b-1700-5172-e30cf9854db5
I take it then that llRequestAgentData does NOT give the name of group when presented with that group's key (though the Wiki is mute on this point).
My question is: is there any function that can take this key and produce the group name?
TIA
Rock
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
11-16-2007 16:25
Unfortunately, no. The only hope would be some kind of GroupKey2Name database, like the Name2Key database out there, but there are no functions in SL which give you any information about groups.
It's a huge oversight, IMO.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
11-16-2007 22:51
if you are a member of the groups in question, there is a sort of workaround as Talarus suggests
test the key retrieved via llRequestAgentData against prims with specific groups set (or against a list you've compiled with those keys and names)... in effect making your own custom GroupKey2Name Database... if I can't find it in there, and conversion with Key2Name faills, you could replace it with "Unknown Group" so that at least it's easier to read
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
Try This
01-06-2008 06:29
default { touch_start(integer number) { key group = "4f89efae-705b-1700-5172-e30cf9854db5"; llHTTPRequest("http://world.secondlife.com/group/" + (string)group, [HTTP_METHOD, "GET"], ""); } http_response(key request_id, integer status, list metadata, string body) { if (status == 200) { integer start = llSubStringIndex(body, "<title>") + 7; integer end = llSubStringIndex(body, "</title>") - 1; llOwnerSay(llGetSubString(body, start, end)); } else { llOwnerSay("Unknown"); } } }
|