Difference between revisions of "Dataserver"

From Second Life Wiki
Jump to navigation Jump to search
Line 57: Line 57:
{{!}}-
{{!}}-
{{!}} rowspan="9" {{!}} {{LSLG|llRequestSimulatorData}}
{{!}} rowspan="9" {{!}} {{LSLG|llRequestSimulatorData}}
{{!}} {{LSLG|DATA_SIM_POS}}
{{LSL Constants/llRequestedSimulatorData}}
{{!}} ({{LSLG|vector}})
{{!}} colspan="4" {{!}} The sims global position.
{{!}}-
{{!}} rowspan="7" {{!}} {{LSLG|DATA_SIM_STATUS}}
{{!}} rowspan="7" {{!}} {{LSLG|string}}
! Value
! colspan="3" {{!}} Description
{{!}}-
{{!}} "up"
{{!}} colspan="3" {{!}} simulator currently up and running
{{!}}-
{{!}} "down"
{{!}} colspan="3" {{!}} simulator currently down
{{!}}-
{{!}} "starting"
{{!}} colspan="3" {{!}} simulator currently starting
{{!}}-
{{!}} "stopping"
{{!}} colspan="3" {{!}} simulator currently stopping
{{!}}-
{{!}} "crashed"
{{!}} colspan="3" {{!}} simulator has crashed
{{!}}-
{{!}} "unknown"
{{!}} colspan="3" {{!}} simulator status unknown or unknown simulator
{{!}}-
{{!}} {{LSLG|DATA_BORN}}
{{!}} {{LSLG|string}}
{{!}} colspan="4" {{!}} The account creation/"born on" date as a string in in ISO 8601 format of YYYY-MM-DD.
{{!}}}
{{!}}}
|caveats
|caveats

Revision as of 16:16, 21 February 2007

Description

Event: dataserver( key queryid, string data ){ ; }

Triggered when task receives asynchronous data

• key queryid matches the return of the requesting function
• string data the requested data (cast as a string as necessary).
Function Input Decode Description
llGetNotecardLine string The line in the requested notecard, if EOF the line requested is past the end of the notecard.
llGetNumberOfNotecardLines (integer) The number of lines in the notecard requested.
llRequestAgentData DATA_ONLINE (integer) boolean If the requested agent is online
DATA_NAME string The requested agents name
DATA_BORN string The account creation/"born on" date as a string in in ISO 8601 format of YYYY-MM-DD.
DATA_RATING llCSV2List() [behavior, 0, appearance, 0, building, 0]
DATA_PAYINFO (integer) bit-field Flag Value Description
PAYMENT_INFO_ON_FILE 0x1 If payment info is on file.
PAYMENT_INFO_USED 0x2 If payment info has been used.
llRequestInventoryData Landmark (vector) global_position_of_landmark = llGetRegionCorner() + (vector)data;
llRequestSimulatorData DATA_SIM_POS 5 (vector) The regions global position.
DATA_SIM_STATUS 6 string Value Description
"up" region currently up and running
"down" region currently down
"starting" region currently starting
"stopping" region currently stopping
"crashed" region has crashed
"unknown" region status unknown or unknown region
DATA_SIM_RATING 7 string Value Maturity rating
"PG" Parcel lght G.png General
"MATURE" Parcel lght M.png Moderate
"ADULT" Parcel lght A.png Adult
"UNKNOWN" rating or region unknown

Examples

Deep Notes

Signature

event void dataserver( key queryid, string data );