Innula Zenovka Posted May 19, 2012 Share Posted May 19, 2012 I can find out the owner's uuid easily enough, with llGetLandOwnerAt(llGetPos()), but is there a way of finding out if the uuid is that of an avatar or a group other than something like setting a timer, calling llRequestAgentData(landowner,DATA_NAME) and waiting to see if I get a reply (which I won't, of course, if it's a group)?I don't particularly want to know what group owns it. But I would like something that will tell me "Yes" or "No", either to the question "is it an avatar?" or "is it a group?" rather just ignoring me if the answer's "No".I'm not sure there is anything, but I wondered if anyone else had any ideas. Link to comment Share on other sites More sharing options...
Carl Thibodeaux Posted May 19, 2012 Share Posted May 19, 2012 Cant you check in About Land? General Tab. See if it lists a group? Link to comment Share on other sites More sharing options...
Talia Davidov Posted May 19, 2012 Share Posted May 19, 2012 Maybe use the wold api and try to parse the page? Not sure that would be easier or any more reliable than the RequestAgentData Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 19, 2012 Author Share Posted May 19, 2012 I can, Carl, but my script can't. That's the problem. Link to comment Share on other sites More sharing options...
Talia Davidov Posted May 19, 2012 Share Posted May 19, 2012 oops world api not wold api world api edit to correct another typo, not my day for typing it appears, and add link Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 19, 2012 Author Share Posted May 19, 2012 Oh, thank you Talia. That's an idea.. I must investigate. Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 19, 2012 Share Posted May 19, 2012 I can't get in world to try this, but can you test this way? list temp = llGetParcelDetails( llGetPos(),[PARCEL_DETAILS_GROUP, PARCEL_DETAILS_OWNER]);if (llList2Key(temp,0) == llList2Key(temp,1) ){ llSay(0,"The parcel is owned by a group.");} Edited to add missing parentheses. Thanks, Talia Link to comment Share on other sites More sharing options...
Talia Davidov Posted May 19, 2012 Share Posted May 19, 2012 There are a couple of missing ) in your script. But I did test it in world and it indeed does say group owned on group owned parcel, and nothing on agent owned parcel. Nice solution! Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 19, 2012 Share Posted May 19, 2012 Sorry. That's what happens when I type freehand and don't bother to compile. :smileyembarrassed: I'm glad it worked, though. I'll go back and add the missing parens now. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 19, 2012 Author Share Posted May 19, 2012 Thank you so much, Rolig and Talia. Rolig's trick certainly seems to know when the land is group-owned, and Talia's suggestion led me to Ugleh Ulrik's SLNode - lslparsers over at SLU, which parses the body of the http_response rather nicely. So now I've got two ways of doing something I didn't know how to do! Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted May 19, 2012 Share Posted May 19, 2012 And now the easy way: http://wiki.secondlife.com/wiki/LlGetAgentSize Link to comment Share on other sites More sharing options...
Rolig Loon Posted May 19, 2012 Share Posted May 19, 2012 llGetAgentSize only works if the agent is in the sim. Otherwise, it returns ZERO_VECTOR, which is the same response you get if the UUID is a non-agent. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 20, 2012 Author Share Posted May 20, 2012 What Rolig said. That was my first thought (that and llKey2Name()), but then I realised there was no way of differentiating between a landowner who isn't on the sim and one who is a group. Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted May 20, 2012 Share Posted May 20, 2012 I'm sure there was a simple inline way to check "Is this an avatar which I see before me, The freenis toward my hand? Come, let me slap thee. I have thee not, and yet I see thee still." and my memory was sure it was this. Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted May 20, 2012 Share Posted May 20, 2012 :-( I'm sure there was a simple inline way to check "Is this an avatar which I see before me, The freenis toward my hand? Come, let me slap thee. I have thee not, and yet I see thee still." and my memory was sure it was this. I shall rummage further in the attic when I'm not as distracted. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted May 20, 2012 Author Share Posted May 20, 2012 If I want to know, "is this an avatar I see before me, on the same sim as me?", then llGetAgentSize does the trick. But my question is "does this uuid belong to an avatar, who may or may not be on the same sim as me, or may even not be online, or does it belong to a group?" Link to comment Share on other sites More sharing options...
Recommended Posts
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