DATA_ONLINE
constant
Constant
integer DATA_ONLINE = 1;Constant groups
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.
Examples
Section titled “Examples”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 ); } }}Known issues
Section titled “Known issues”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
See also
Section titled “See also”Constants
Section titled “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. | ||||
Functions
Section titled “Functions”Events
Section titled “Events”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.