31 July 2019

6 October 2016

24 September 2015

19 May 2015

The give command can be used to send an item from Corrade's inventory to an agent or object.

CommandRequired ParametersRequired Corrade PermissionsExample
givegroup, password, item, entityinventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "give",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "avatar",
            "item", wasURLEscape("/My Inventory/Objects/Carrot"), // or UUID
            // or "agent", "69ce412b-dffc-436d-86ff-d788bfa66d9d"
            "firstname", "Bugs",
            "lastname", "Bunny"
        ]
    )
);

item can be the path to an inventory item or the UUID of an inventory item.

ParameterPossible ValueAdditional ParametersDescriptionExample
entityavatarfirstnameThe first name of the avatar to give the item to.
lastnameThe second name of the avatar to give the item to.
agentThe key of the agent if more convenient than firstname and lastname
itemAn UUID or path to an item in the bot's inventory.
objectrangeThe range in which to find the object to give the item to.
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "give",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // a path or UUID of an item in inventory
            "item", wasURLEscape("/My Inventory/Gestures/smile"),
            // give the item to an object
            // instead of an avatar.
            "entity", "object",
            // object name or uuid to give
            // the item to.
            "target", "Face",
            // the range in which to find
            // the object to give the item to.
            "range", 3,
            "callback", wasURLEscape(URL)
        ]
    )
);
targetA name or UUID of the object to give the inventory item to.
itemAn UUID or path to an item in the bot's inventory.
selectionEither attached, rezzed or all for selecting only primitives or objects attached to avatars, primitives or objects rezzed in-world or all primitives or objects respectively.

Notes

llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "give",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "avatar",
            "item", wasURLEscape("/My Inventory/Objects/Carrot"), // or UUID
            // or "agent", "69ce412b-dffc-436d-86ff-d788bfa66d9d"
            "firstname", "Bugs",
            "lastname", "Bunny",
            // set permissions to copy only
            "permissions", "c--mvt------------c---v-c--mvt"
        ]
    )
);