|
Lis Nilsson
Registered User
Join date: 15 Sep 2005
Posts: 5
|
02-13-2008 03:19
I'm not sure if this is something that already exists as I'm not exactly sure what to search for!
I would like to have a script that detects avatars that visit an area, and have it display their name (just like the avatar scanners do), but also the Group that they are currently a member of.
I would like the list to be permanently on display, something that everyone that visits can see, for example showing the last 30 visitors details. Or be something that can be generated by any avatar by clicking the prim. I've looked at avatar and traffic scanners and I think what I need is somewhere between the two?? But I can't figure out how to do it.
This is effectively going to be a competition Leader Board displaying which level of the competition the avatar has reached. Is this possible or am I just asking too much??
|
|
Lis Nilsson
Registered User
Join date: 15 Sep 2005
Posts: 5
|
02-13-2008 03:30
I just found this in the "Things you can't do" so I'm guessing that covers what I'm trying to do:
- Find out the name of a group. - Find out any information about an avatar's groups other than llSameGroup.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-13-2008 03:37
actually, at the time of that writing, new search had not been implemented.
while you still can't look up a group directly, you can indirectly gather group keys from group owned objects, and use new search to pull up a page for that group, and then parse for the group title.
not quite what you are wanting yet, but it's a step closer.
_____________________
| | . "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... | - 
|
|
Lis Nilsson
Registered User
Join date: 15 Sep 2005
Posts: 5
|
02-13-2008 04:14
Void - thanks for that. I'm trying to adapt an avatar sensor and I'm trying to use this function,
group = llGetObjectDetails(?????? [OBJECT_GROUP]);
to obtain the name of the av's group but failing miserably. The value passed into 'group' is being added into a list which is then displayed using llSetText. Could you point a hopelessly out of her depth scripter in the right direction? I'm not sure what needs to go in place of the ?????'s - the wiki shows syntax as
list llGetObjectDetails(key id, list params)
but as you can tell I'm way out of my comfort zone here and struggling.
|
|
Lis Nilsson
Registered User
Join date: 15 Sep 2005
Posts: 5
|
02-13-2008 04:16
oooooh - am I not an Object? Does this only work on things, rather than AV's? Please forgive the stupid questions. I'm trying to stretch myself here and might have bitten off more than I can chew 
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
02-13-2008 07:17
When applied to an agent (the invisible "prim" that defines your avatar's anchor and ovoid physics hitbox (under the nametag)) "OBJECT_GROUP" always returns "NULL_KEY" (000000-0000-0000-0000-000000000000) http://rpgstats.com/wiki/index.php?title=LlGetObjectDetails
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Lis Nilsson
Registered User
Join date: 15 Sep 2005
Posts: 5
|
02-13-2008 07:25
Thank you Winter, that makes sense. Need to find another way to get this leader board displayed I guess 
|