Difference between revisions of "LlRequestAgentData"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{#vardefine:p_data_desc|DATA_* flag}}{{LSL_Function
|func_id=155|func_sleep=0.1|func_energy=10.0
|func_id=155|func_sleep=0.1|func_energy=10.0
|func=llRequestAgentData
|func=llRequestAgentData
|return_type=key|p1_type=key|p1_name=id|p2_type=integer|p2_name=data
|return_type=key|p1_type=key|p1_name=id|p2_type=integer|p2_name=data
|func_footnote
|func_footnote
|func_desc=Requests data about agent '''id'''. When '''data''' is available the {{LSLG|dataserver}} event will be raised
|func_desc=Requests '''{{LSL Param|data}}''' about agent '''id'''. When '''{{LSL Param|data}}''' is available the {{LSLG|dataserver}} event will be raised
|return_text=that is used to identify the {{LSLG|dataserver}} event when it is raise.
|return_text=that is used to identify the {{LSLG|dataserver}} event when it is raise.
|spec
|spec
Line 10: Line 10:
|constants={{{!}} {{Prettytable}}
|constants={{{!}} {{Prettytable}}
{{!}}- {{Hl2}}
{{!}}- {{Hl2}}
! colspan="2" {{!}} Constant
! colspan="2" {{!}} {{LSL Param|data}} Constant
! Type
! Type
! colspan="4" {{!}} Description
! colspan="4" {{!}} Description

Revision as of 09:55, 3 May 2007

Summary

Function: key llRequestAgentData( key id, integer data );

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
• integer data DATA_* flag

data Constant Type Description
DATA_ONLINE 1 (integerboolean 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 (integermask Flag Description
PAYMENT_INFO_ON_FILE 0x1 If payment info is on file.
PAYMENT_INFO_USED 0x2 If payment info has been used.

Caveats

  • This function causes the script to sleep for 0.1 seconds.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

•  llGetAgentInfo

Deep Notes

Search JIRA for related Issues

Signature

function key llRequestAgentData( key id, integer data );