Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL Bug

Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
01-01-2008 18:17
I was working in a very simple script that needed a online indicator.

So one of the functions I used was:

"llKey2Name(id);"

And it results that when id is OffLine it returns an empty string. :S

And

llRequestAgentData(id,DATA_ONLINE);

Returns always TRUE! :S :S :S :S

So I asked in a chat group, someone made the test and same result.

Anyone else having this problem?
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
01-01-2008 19:38
llKey2Name is only for keys known to the sim running the script. Use llRequestAgentData(id, DATA_NAME) I think, for getting an agent's name if you don't know they're in the same sim.

The DATA_ONLINE always being true thing... are you sure to cast it to an integer before testing it to be true?
_____________________
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
01-01-2008 20:29
Didn't know about that, gonna give a try tomorrow.