Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
07-03-2005 07:31
I am making a simple land scanner that will tell me who owns land within a SIM. I am useing llGetLandOwnerAt() but I have found that it will only give me the name of an owner if they have been inside the SIM while I am online.
Is this a bug or some wierd feature?
is there any other way of getting a list of who owns land inside a SIM?
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
07-03-2005 07:35
llKey2Name() only works when the av or object is in the sim at the time. You can fetch the name through a slower method: llRequestAgentData(). Note that if the land is group owned, getting the name is (I think) impossible.
|
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
thanks (Update)
07-03-2005 07:42
ok, thank you very much.
(updated)_ I just tried it and have found no matter what I get keys instead of the name what has this warped brain looked over again?
|
Synergy Belvedere
Prim Reaper
Join date: 7 Jul 2004
Posts: 253
|
07-05-2005 12:18
As Jillian mentioned, use llKey2Name() to translate the owner's key to something more readable.
_____________________
---------------------------------------------------------- --The mind's eye is limited only by its focus--
|
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
working
07-05-2005 12:44
llKey2Name doe snot do what I need it to do all the time. However Jillian's sugestion of useing llRequestAgentData() worked after I fixed some umm
crap in my code.
But thanks all for the help.
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-05-2005 13:22
Are you getting keys returned in your dataserver event? Can you post your code? There's a rare bug where a script will expect a name, but get a key instead, but I'm not sure that's what's happening here. The dataserver can be tricky.
|