Skip to content
lsl.devlsl.devLSL Dev

DATA_ONLINE

constant
Constant
integer DATA_ONLINE = 1;

Constant groups

AgentData

Other AgentData values (5)

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.

Example 1
5 collapsed lines
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
}
23 collapsed lines
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 );
}
}
}

From the issue templates included by the wiki article:

  • SVC-6831 (bug): llRequestAgentData with DATA_ONLINE parameter has a delay of up to 10 minutes in reporting offline status

|

DATA_ONLINE1(integer) booleanIf the requested agent is online
DATA_NAME2stringThe requested agent’s legacy name
DATA_BORN3stringThe account creation/“born on” date as a string in an ISO 8601 format of YYYY-MM-DD.
DATA_RATING4llCSV2List()Deprecated: Returns [0, 0, 0, 0, 0, 0]
Used to return: [pos_behavior, neg_behavior, pos_appearance, neg_appearance, pos_building, neg_building]
DATA_PAYINFO8(integer) maskFlagDescription
PAYMENT_INFO_ON_FILE0x1If payment info is on file.
PAYMENT_INFO_USED0x2If payment info has been used.
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.