PDA

View Full Version : [3RD PARTY] i.traveler.lsl


Posiden Dryke
17-12-2008, 12:25 AM
//A script that I wrote in conjunction with Droth Karu.


// It tells the owner who is incoming on an incoming wormhole using a data server.


//note: just because a name pops up doesn't mean they will come through.


//some times people accidentally click or bump into the other gates EH


[START]

<pre>key avatarData;
default
{
state_entry()
{

llListen(-905000, "", "", "");
llListen(-805000, "", "", "");
}

listen(integer channel, string name, key id, string message)
{
list apiMessage = llParseString2List(message,["|"],[]);

if (llList2String(apiMessage, 0) == "target wormhole collision")
{
//Only get name if type is agent
if (llList2String(apiMessage, 1) == "agent")
{
avatarData = llRequestAgentData(llList2Key(apiMessage,2), DATA_NAME);
}
}
}

dataserver(key queryid, string data)
{
if (queryid == avatarData)
{
llOwnerSay("Incoming traveler: " + data + "!");
}
}
}</pre>





[END]