Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to obtain an agent key from their name

Petersnow Hyun
Registered User
Join date: 16 Jun 2007
Posts: 2
07-26-2007 17:59
I am writing a script in which I want to contact an agent based on user name information only. I have searched high and low :) - no joy so far.

In general the agent will not be present, so the usual means of detecting their key won't work.

The calls I need to make are :
CODE

// llInstantMessage(key user, string message);
// llGiveInventoryList(key dest, string cat, list inv);

I can obtain the agent name from key using the standard:
// llRequestAgentData(key id, integer DATA_NAME);
CODE


and catching the dataserver event.

However I can't find a means of doing the reverse lookup - agen name -->> agent key

Has anyone found a solution to this?

Thanks in advance :)
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
07-26-2007 18:06
From: Petersnow Hyun
I am writing a script in which I want to contact an agent based on user name information only. I have searched high and low :) - no joy so far.

In general the agent will not be present, so the usual means of detecting their key won't work.

The calls I need to make are :
CODE

// llInstantMessage(key user, string message);
// llGiveInventoryList(key dest, string cat, list inv);

I can obtain the agent name from key using the standard:
// llRequestAgentData(key id, integer DATA_NAME);
CODE


and catching the dataserver event.

However I can't find a means of doing the reverse lookup - agen name -->> agent key

Has anyone found a solution to this?

Thanks in advance :)
No solution in LSL if the agent isn't accessable by sensor or similar.

You may want to give a go to one of the key/name databases out there. None are inclusive, but they help:

http://w-hat.com/name2key

http://www.moopf.com/name2key.php
_____________________
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
07-26-2007 18:10
From: Jillian Callahan
No solution in LSL if the agent isn't accessable by sensor or similar.

You may want to give a go to one of the key/name databases out there. None are inclusive, but they help:

http://w-hat.com/name2key

http://www.moopf.com/name2key.php


They also both include LSL code samples that allow you to perform the lookup, which is extremely helpful.


.
_____________________
Petersnow Hyun
Registered User
Join date: 16 Jun 2007
Posts: 2
07-26-2007 18:18
Thank you both - I will look at that.

I guess the only other alternatives are to obtain the key from an object created or owned, or the land owned, by the agent.... A bit too much like spying here :)