Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRequestGroupData(group_key, DATA_NAME)

Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
02-20-2006 07:58
I use llGetLandOwnerAt and llDetectedOwner in several tools I'm building but often they return a group key that I can do nothing with. I'm making an off-world database but it's such a hack because nothing in LSL gives me a group name; I have to copy and paste it from the group dialog. I need a group name!
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
02-20-2006 09:47
Out of morbid curiosity, what happens if you feed that key to llRequestAgentData and ask for the name? I highly doubt it'd work, but stranger things have happened...
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
02-20-2006 09:50
From: Lex Neva
Out of morbid curiosity, what happens if you feed that key to llRequestAgentData and ask for the name? I highly doubt it'd work, but stranger things have happened...

Nothing! It doesn't return - I need a timer so I can give up and put "unknown group" in my output.
_____________________
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-20-2006 11:07
CODE

key llRequestGroupData(key group_key, integer data)

Returns a handle for the dataserver event
group_key is the key of the group
data can be one of these flags [DATA_NAME, DATA_BORN]
passing DATA_NAME would return the name of the group
passing DATA_BORN would return the creation date of the group
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Sky Honey
Coder
Join date: 16 May 2005
Posts: 105
02-20-2006 11:11
Even better :)
_____________________
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
05-25-2006 10:37
/13/6e/15783/1.html
==Chris