Update or Create a Notecard in Inventory or Task Inventory

20 May 2017

  • Release 9.164 - added.
updatenotecard (Commands)
TypeCorrade progressive command
Commandupdatenotecard
DescriptionThe updatenotecard command is used to update or create a new notecard inside either Corrade's inventory or inside a primitive's (task) inventory.
Permissionsinventory, interact
Parametersgroup, password, type, entity
Last ChangesRelease 9.164 - added.

The updatenotecard command is used to update or create a new notecard inside either Corrade's inventory or inside a primitive's (task) inventory.

Command Required Parameters Required Corrade Permissions Example
updatenotecard group, password, type, entity inventory, interact, system
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Update or create a notecard named
            // "bla bla" in the a primitive that
            // is referenced by an UUID.
            "command", "updatenotecard",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "type", "task",
            // The UUID or name of the primitive.
            "item", "490b67ba-4cce-c243-be56-51f711f26d3e",
            // The range in meters from Corrade
            // where the primitive can be found.
            "range", 5,
            // The name of the notecard.
            "target", "bla bla",
            // Set the notecard body text.
            "entity", "text",
            "data", "My Cool Notecard!",
            // If the notecard "bla bla" does not exist
            // within the primitive, then create it.
            "create", "True",
            "callback", wasURLEscape(URL)
        ]
    )
);
Parameter Possible Value Second Parameter Possible Value Optional Parameter Possible Value Description
type task item The name or UUID of the primitive containing the notecard to update. range The range in meters where the primitive can be found. Update or create a notecard inside a primitive's inventory.
target The name of the notecard.
agent item The inventory item name or UUID of the notecard to create or update. Update or create a notecard in Corrade's inventory.
target The name of the notecard.
entity text data The text contained in the notecard. Creates or updates a notecard using the value passed to the optional parameter data as the notecard text.
file path The path to a file on the local storage that Corrade is running off. Creates or updates a notecard by reading the file passed to the optional path parameter and setting the notecard text to the contents of the file.
asset data Base64-encoded asset data such as the one returned by the download command. Creates or updates a notecard from binary asset data.
create True or False description A string. The command attempts to update an existing notecard and if create is set to True (default is False), then the notecard will first be created if it does not exist and then updated.

Notes

  • The command will return the asset UUID and the inventory UUID of the created or updated notecard if successful.
  • Corrade supports creating notecards with attachments: depending on the value passed to entity, you may upload notecards that contain embedded items however for the result to be valid, all attachments must be specified as a CSV list of inventory UUIDs or inventory paths passed to the attachments parameter.

secondlife/scripted_agents/corrade/api/progressive/commands/updatenotecard.txt ยท Last modified: 2017/05/28 20:35 by Wizardry and Steamworks

Access website using Tor


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