Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGetPartnerKey()

MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
05-11-2007 13:08
Can we get llGetPartnerKey(key) ??

I have had this question come up on several occasions:

"I want my partner to be able to use your products too"


These are of course products where only the owner can operate it. If someone has an SL partner, they usually want to share as many assets as possible within reason. Yes, you can set anyone on your friends list to be able to modify your objects, but what I am proposing is a scripting function that scriptors can use to also identify the owners partner:

Instead of just:
CODE

if (llDetectedKey == llGetOwnerKey())
{
//allow access or do stuff
}

I'd love to see this:
CODE

if (llDetectedKey == llGetOwnerKey() || llDetectedKey == llGetPartnerKey(llGetOwnerKey()))
{
//allow access or do stuff
}



Heck you could even do this:

CODE

touch_start(integer num_detected)
{

if (llListFindList(list ADMITLIST, llKey2Name(llDetectedKey()) || llDetectedKey == llGetPartnerKey(llListFindList(list ADMITLIST, llKey2Name(llDetectedKey())))
{
if (llListFindList(list ADMITLIST, llKey2Name(llDetectedKey())
{ llSay(0, "You are on the access list, please enter");}

else if llDetectedKey == llGetPartnerKey(llListFindList(list ADMITLIST, llKey2Name(llDetectedKey()))
{ llSay(0, "Your partner is on the access list, now you will also be added, please enter.");}

}

}


This example I cooked up checks an access list and then allows a person to pass if they are on the list. If they are a partner of someone on the list it would add them to an internal list and allow them to pass. Would probably work better if used in a sensor, but you get the idea. Sorry for any scripting faux paus, I just wanted to get the general idea across.
_____________________
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
05-11-2007 13:15
JIRA this - I'll vote for it.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- 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
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
05-11-2007 13:40
Isn't it just easier to add a name to an access list?

CODE


list access;

//-------------

list lfind = [name];
x = llListFindList(access, lfind);
if(x != 1) return;
else //you have access...do stuff

_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
05-11-2007 17:09
Perhaps Ken, but the point is to allow adding a partner access... or whatever you will use the script function for. Perhaps you already have an access list which allows certain avatars to do various things, but you want your partner to be able to have the same functions of the do.

Like your wonderful doors/rent boxes for instance.(Absolutley coolest doors/rent system around!!!) You can add ppl to the access list, but only the owner can perform certain functions relating to the admin of those items. Why? Because you have it checking for llGetOwnerKey().

Now if we had llGetPartnerKey(), you could also check for that as well. If someone dissolved their partnership, it would automatically make it so they could not access those features. Adding them to an access list would cause ppl to have to run around and change notecards or remove the person from the access list.

What I am proposing is something to make things a little easier and also to give a little more meaning to partnerships in SL. It is just a suggestion of course. But it's one that I personally think will be of benefit to many.

I could actually see many more LSL functions that are focused on partnerships, but maybe the Lindens could just start with an easy one like this.

:) Cheers
_____________________
MadamG Zagato
means business
Join date: 17 Sep 2005
Posts: 1,402
05-11-2007 18:23
From: Meade Paravane
JIRA this - I'll vote for it.


Done!
https://jira.secondlife.com/browse/VWR-724