Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

IM control via access list?

Javier Hamelin
Registered User
Join date: 31 Dec 2008
Posts: 6
02-11-2009 09:03
I use RLV, and that may or may not matter for this question but...does anyone know how to allow IM (instant messages) based on names contained in an access list? If a person IMs me and they are not on a list I would not get the IM.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
02-11-2009 09:45
Yeah, RLV makes a difference. For a regular viewer, the only tool that will get you there is to mute the avatars. With RLV, you can turn off sending and receiving IMs in general, then allow those actions for individual avatars (the script will need to know or find out the key for each avatar you want to enable).

To send commands to RLV, make an object llOwnerSay them to you. The reference is at

http://wiki.secondlife.com/wiki/RestrainedLifeAPI

To turn off all IM, you would use:

llOwnerSay("@sendim=n,recvim=n";);

Then to allow yourself to exchange IMs with a particular avatar:

string someAvatarKey = "11111111-2222-3333-4444-555555555555";
llOwnerSay("@recvim:" + someAvatarKey + "=add,sendim:" + someAvatarKey + "=add";);

...and repeat for any other avatars you want to allow. To take someone off the allowed list, change the =add in the above to =rem
Javier Hamelin
Registered User
Join date: 31 Dec 2008
Posts: 6
02-12-2009 03:36
Viktoria, thank you very much! Now all I need to know is how to make a script that does this. Onward I go!

Javier
Lance Corrimal
I don't do stupid.
Join date: 9 Jun 2006
Posts: 877
02-12-2009 03:43
I'm selling a gadget that does exactly that, with an access list that is maintained by chat commands.

http://uncensored.xstreetsl.com/modules.php?name=Marketplace&file=item&ItemID=662234

or come to my in-world shop at http://slurl.com/secondlife/Gwarl/72/176/740 and grab it there.
Javier Hamelin
Registered User
Join date: 31 Dec 2008
Posts: 6
02-12-2009 04:15
Even better, Lance! I'll be over soon. :)