Jump to content
You are about to reply to a thread that has been inactive for 4281 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

Hi Joni,

to my restricted knowledge a script can only compare the active group of the toucher to its own group and act upon that. There seems to be no means to differentiate between roles - sorry.

 

But maybe some of the more advanced scripters here know a way to circumvent that ;-)

Posted

Not sure if just me or what that I feel when it comes to group related scripting I feel that I can only do limited things to it. Example I want to identify if the the group is "deeded" to a land or object or its just "set to" only, Identify group name or key the group key, and this one which is detect avatar if is a owner or member of a group.

Posted

For that specific question, Rolig showed me how to tell if land is group owned or not.

You could use llGetObjectDetails, OBJECT_GROUP and OBJECT_OWNER to perform the same test on an object, I think.

A script, though, can't tell what an avatar's group role is, as far as I know.

Posted

Most things are possible one way or another, but not always entirely within LSL.

For example, you could use llGetObjectDetails() with OBJECT_OWNER and OBJECT_GROUP. If the owner key is NULL, then the object is deeded to the group and you have that group's key. If the owner key is not NULL, and the group key is not NULL, then the object is set to the group. And if the group key is NULL, then there is no group set or deeded.

Use llGetParcelDetails() with PARCEL_DETAILS_OWNER and PARCEL_DETAILS_GROUP to identify land the same way.

You can get a group Key with the methods above. While you can't convert a group key to a group name directly... you can access the group info indirectly via script and one click. Use a script to generate a clickable SLURL like this:

secondlife:///app/group/<group key>/about  or  secondlife:///app/group/<group key>/inspect

I admit, while it's technically possible (at this time) to get a group founder via script... detecting group owners isn't possible. For limited usage (such as with your own groups), you'd need to maintain your own database listing owners of the group. Then, once you detect a group member avatar, you can cross-check your database to see if that avatar is an owner.

You are about to reply to a thread that has been inactive for 4281 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...