parcel_list

From SmartBots Developers Docs
HTTP APIBot Commands
Revision as of 18:45, 16 January 2020 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE: parcel_list}} <onlyinclude>Retrieves all parcels of the current sim</onlyinclude> <syntaxhighlight lang="lsl"> // See "LSL Helper Functions" page for this fun...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Retrieves all parcels of the current sim

// See "LSL Helper Functions" page for this function
smartbotsAPI("parcel_list", []);

Variables

The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description
Input basic parameters:
action yes = parcel_list
apikey yes Your personal developer's API key.
botname yes Your bot's SL login.
secret yes Bot access code of your bot.
dataType optional Set to "json" to get JSON reply instead of URL-encoded string
custom optional The custom data (string) to be passed back to caller script. This value will be returned back to the caller in HTTP response.
Input:
Output:
(to be received in http_response LSL event, see docs for details)
result OK - command completed successfully
FAIL - command failed
resulttext Detailed reason for the failure.
custom The value from input "custom" parameter. See above.

Return values

Important: due to large amount of data, this function works only with dataType=json.

The command fetches and returns all parcels in current sim. For large number of parcels (>30) this could be a time-consumptive operation, be ready to wait up to 30 seconds for the result.

On success, the command returns the parcel data:

result=OK
parcel=the array of parcels

The following data is being returned:

{
  "d": 1
}


<< return back to Bot commands

(Miss an API call or parameter? Submit your request in forum)