From: Ee Maculate
Hopefully just a quick question... I want an object to know if it is deeded to a group or not.
Note: this is not the same as getting llDetectedOwner() to return a NULL_KEY because I want the object the script is in to know if it is deeded itself.
Note 2: I don't care what the group is, just whether deeded or not.
I've been trying combinations of llGetOwner (which changes to the groups key if deeded?) but no luck..
Anyone know how to do this?
Here is a little utility I use to give me the status of an object and how it relates to the group and land. Cut/paste the parts which might apply to your situation.
deed()
{
key id = llGetOwner();
key objectOwner = llGetOwnerKey(llGetOwner());
string objectName = (string)llGetObjectDetails(llGetKey(), [OBJECT_NAME]);
key objectGroup = (string)llGetObjectDetails(llGetKey(), [OBJECT_GROUP]);
key landOwner = (llGetLandOwnerAt(llGetPos()));
string landName = (string)(llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME]));
key landGroup = (string)(llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_GROUP]));
{
if (objectOwner != landOwner)
{
llSay(0, "NOTE : The object owner does and land owner do not match."

;
}
else
{
llSay(0, "PASSED : The object and land owner match."

;
}
if (objectGroup != landGroup)
if (objectOwner != landOwner)
{
llSay(0, "NOTE : The object and land groups do not match."

;
}
else
{
llSay(0, "PASSED : The object and land group match."

;
}
if (llSameGroup(id))
{
llSay(0, "PASSED : The object and avatar's group match."

;
}
else
{
llSay(0, "NOTE : The object and avatar's group do not match."

;
}
return;
}
}