Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Getting freinds list using scripting

Gorden Letord
Registered User
Join date: 16 Feb 2008
Posts: 1
02-19-2008 15:05
Hi friends,

I am very new to the second life and the linden scripting.

I am trying to extract my friends list through a object but I am not able to.

I tried using the inventory methods available but in vain.

Kindly help me with this.

Sincerely,
Gorden Letord
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-19-2008 17:41
This is currently not possible using LSL alone. You would need to build a custom client/viewer program to do that (yes, the use of the libsecondlife library counts as a custom client). Suffice it to say, this is beyond most people's desired level of involvement.

Usually the solution for this sort of thing is to maintain a separate list of people manually. Your friends' names would be easiest, but a list of keys is generally more useful to scripts. You can obtain they key of many but not all residents through http://w-hat.com/name2key
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-19-2008 21:55
or the key of any resident you want through new search all... limit the search to people, then type in the desired name, click their name and you'll be taken to a page containing profile data... at the bottom is a url link to the page... the last part of that url after 'resident/' is that av's key...
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
02-19-2008 23:22
Interesting. Doesn't work if they don't have their profile in search though (there's a checkbox). You CAN copy/paste from there though, which is a lot better than the old Debug Console/IM solution.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
02-19-2008 23:58
ah you can get around that by using the magic phrase
intitle:Avatar Name

at least I've pulled up pages that way before for avatars that are set to not be listed.
I think it's because they don't filter the title search parameter (because they don't officially expose it)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -