15 December 2023

7 October 2016

17 December 2014

The searchinventory command can be used to search for items in Corrade's inventory.

CommandRequired ParametersRequired Corrade PermissionsExample
searchinventorygroup, password, patterninventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // lists all the scripts and
            // notecards found in
            // Corrade's inventory
            "command", "searchinventory",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "pattern", wasURLEscape(".+?"),
            "options", wasListToCSV(["IgnoreCase", "Compiled"]),
            "type", wasListToCSV(["LSLText", "Notecard"]),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional ParameterPossible ValueDescription
typeA CSV list of member names of the AssetType structure.The type of asset to search. If this parameter is not provided, any asset type is searched.
optionsA CSV list of regular expression options.Flags to be passed to the regular expression engine .

The pattern parameter is fed a regular expression that can match part or whole asset names.