LlRequestAgentData
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Summary
Function: key llRequestAgentData( key id, integer data );| 155 | Function ID |
| 0.1 | Delay |
| 10.0 | Energy |
Requests data about agent id. When data is available the dataserver event will be raised
Returns a key that is used to identify the dataserver event when it is raise.
| • key | id | – | avatar UUID | |
| • integer | data | – | DATA_* flag |
| data Constant | Type | Description | ||||
|---|---|---|---|---|---|---|
| DATA_ONLINE | 1 | (integer) boolean | If the requested agent is online | |||
| DATA_NAME | 2 | string | The requested agents 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] Use 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. | ||||
Examples
key owner_key; key owner_name_query; string owner_name; default { state_entry() { owner_key = llGetOwner(); owner_name_query = llRequestAgentData(owner_key, DATA_NAME); } dataserver(key queryid, string data) { if ( owner_name_query == queryid ) { owner_name = data; llSay(0, "The owner of this script is called : " + owner_name ); } } }//Anylyn Hax 06:19, 23 July 2007 (PDT)
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

