Jump to content

Why can I not get the Parcels Avatar name when using llGetParcelDetails


jak Scribe
 Share

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

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

Recommended Posts

I am on a sandbox and I tried this script:

list landdetails = llGetParcelDetails( llGetPos(),[PARCEL_DETAILS_OWNER] );

key landownerid = llList2String(landdetails,0);

llOwnerSay(landownerid);  //>>>>>>>>>> displays the avatars key

string avatarname = llKey2Name(landownerid);

llOwnerSay("avatarname: ("+avatarname+")");  //>>>>>>>>>> Displays "avatarname: ()"

Any idea why it is not showing the avatars name??

The key is the correct key as I have the Owner on my Friends list and its the same key as in thier Profile.

 

 

 

Link to comment
Share on other sites

there's also llRequestUsername / llRequestDisplayName…  it's be a dataserver request in either case, if they're not present on the sim.

llRequestUsername will give you cannonical name (lower-case with a dot, and no "resident"), while DATA_NAME gives you legacy name (proper cased with a space, with "Resident").

Keeping both in mind lets you select which form you want.  Both use a dataserver response.

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 276 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
 Share

×
×
  • Create New...