DATA ONLINE
Looking for the current API? Open the DATA_ONLINE reference →
Wiki description
Used with llRequestAgentData to return a string that contains the integer boolean for if the user is online (or not). TRUE if online, FALSE if offline.
Examples
key queryID; // the id key
default
{
state_entry()
{
key id = llGetOwner(); // get the owner key
queryID = llRequestAgentData( id, DATA_ONLINE ); // returns if the owner is online or not
}
dataserver( key query, string info )
{
// find the correct query id
if( query == queryID )
{
string message;
// convert the info to an actual message
if( info == "1" )
{
message = "Online";
}
else if( info == "0" )
{
message = "Offline";
}
// display that they are online or offline in owner say.
llOwnerSay( "The owner of this object is: " + message );
}
}
}See also: constants
|
| DATA_ONLINE | 1 | (integer) boolean | If the requested agent is online | |||
| DATA_NAME | 2 | string | The requested agent's legacy name | |||
| DATA_BORN | 3 | string | The account creation/"born on" date as a string in an ISO 8601 format of YYYY-MM-DD. | |||
| DATA_RATING | 4 | llCSV2List() | Deprecated: Returns [0, 0, 0, 0, 0, 0] Used to return: [pos_behavior, neg_behavior, pos_appearance, neg_appearance, pos_building, neg_building] | |||
| DATA_PAYINFO | 8 | (integer) mask | Flag | Description | ||
|---|---|---|---|---|---|---|
| PAYMENT_INFO_ON_FILE | 0x1 | If payment info is on file. | ||||
| PAYMENT_INFO_USED | 0x2 | If payment info has been used. | ||||
See also: functions
See also: events
Shared wiki helpers
The original page also injects shared parameter notes, caveats or issue information through these helpers. Their conditional MediaWiki logic is not reproduced here; inspect the preserved helper source for additional material.
Original shared helper source (conditional wiki logic is not evaluated)
{{Issues|SVC-6831|[[llRequestAgentData]] with [[DATA_ONLINE]] parameter has a delay of up to 10 minutes in reporting offline status|type=bug}}Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.