Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Getting land or group owner name from key

Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
10-26-2009 17:13
What am I doing wrong here?

This line produces a valid key:
llOwnerSay((string)llGetLandOwnerAt(llGetPos()));


But this line produces a blank string:
llOwnerSay((string)llKey2Name(llGetLandOwnerAt(llGetPos())));

I'm having the same issue trying to get the group name from land as well. I've tried this method and also tried parsing it from llGetParcelDetails. Both methods return a valid key but I can't resolve the name from the keys.
IBME Swindlehurst
Registered User
Join date: 5 Mar 2007
Posts: 139
10-26-2009 18:13
If the owner is not in the Sim, you will have to do an llHTTPRequest (from something like Whitehat at http://w-hat.com/name2key) to get the actual name from the key. Hope this helps! :-)
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
10-26-2009 18:32
From: IBME Swindlehurst
If the owner is not in the Sim, you will have to do an llHTTPRequest (from something like Whitehat at http://w-hat.com/name2key) to get the actual name from the key. Hope this helps! :-)

Or feed it to http://search.secondlife.com/...

/me tries to find the scriptable API but it's hiding on me. I'm pretty sure there is one, tho.
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!!
- Go here: https://jira.secondlife.com/browse/SVC-3895
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Fillo Farber
Registered User
Join date: 6 Jun 2004
Posts: 60
10-26-2009 19:04
oh I thought it was just that you couldn't get a key from a name unless they were in the same sim. Didn't realize it applied to llKey2Name as well.

Odd though that this didn't work for me on my own land either. Obviously I was there. :)

edit: I should add that my land is group land - but I am the group officer so I'm not sure how that should work.
Ron Khondji
Entirely unlike.
Join date: 6 Jan 2007
Posts: 224
10-26-2009 23:11
llRequestAgentData( llGetLandOwnerAt( llGetPos() ), DATA_NAME );

http://wiki.secondlife.com/wiki/LlRequestAgentData