acceptInventoryOffer
Accept (or reject) an inventory offer sent by another avatar or in-world script.
Bot.on("inventory_offer", (event) => {
Bot.acceptInventoryOffer(
event.sender_type,
event.object_id,
event.sender_uuid,
event.folder,
event.session,
true
);
});See the inventory_offer event for details.
Input
Variable | Required | Description |
|---|---|---|
| yes | Who sent the inventory (agent or in-world script) |
| yes | Inventory UUID of the item being offered |
| yes | UUID of the sender |
| yes | Inventory folder UUID this item goes to |
| yes | Session UUID from the event |
| yes |
|
Output
Field | Type | Description |
|---|---|---|
| bool | true if command completed successfully |
| string | error string if command has failed |