Update a Primitive's Inventory

31 July 2019

  • C10 - added the selection optional parameter.

10 January 2019

  • C10 - allow inventory path for folder parameter when action is set to take.

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.

19 May 2015

  • Release 8.12 - range is now an optional parameter and not required to locate the item.

14 December 2014

  • Release 7.28 - added the take action.
updateprimitiveinventory (Commands)
TypeCorrade progressive command
Commandupdateprimitiveinventory
DescriptionThe updateprimitiveinventory command can add or remove items from a primitive's (task) inventory.
Permissionsinteract
Parametersgroup, password, item, entity, action
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The updateprimitiveinventory command can add or remove items from a primitive's (task) inventory.

Command Required Parameters Required Corrade Permissions Example
updateprimitiveinventory group, password, item, entity, action interact
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Add a "README" notecard from the bot's
            // inventory to a primitive named "Package".
            "command", "updateprimitiveinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // Or UUID...
            "item", "Package",
            "range", 5,
            "entity", "/My Inventory/Notecards/README",
            "action", "add"
        ]
    )
);
Optional Parameter Possible Value Description
range A range in meters. The spherical distance from Corrade in which to locate the item.
Parameter Possible Value Optional Parameter Description
action add Add an entity to the primitive.
remove Remove an entity from the primitive.
take Remove an entity from the primitive and place it in Corrade's inventory.
folder The path to a folder or the UUID of the folder to which Corrade should take the item to.

Depending on context, entity can be:

  • In the context of the add action, entity can the path to an inventory item or an UUID representing an item in the bot's inventory.
  • In the context of the remove and take action, entity can be the name or UUID representing an item in the primitive's inventory.

Notes


secondlife/scripted_agents/corrade/api/commands/updateprimitiveinventory.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.