9 November 2016

29 September 2015

7 June 2015

21 December 2014

The replytoscriptpermissionrequest command can be used to reply to a script that requests permissions from Corrade. All the required parameters for the command can be retrieved from the permission notification using the notify command.

CommandRequired ParametersRequired Corrade PermissionsExample
replytoscriptpermissionrequestgroup, password, actioneconomy, teleport, interact, grooming or inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "replytoscriptpermissionrequest",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // reply to a script permission request
            "action", "reply",
            // the parameters for task and item can be
            // obtained through the permission notification
            "task", "6df81d1b-26c4-49af-9fda-bd8d7f8832bc",
            "item", "f59a5870-4393-4d41-bf6a-658f7770dd3e",
            "region", "Cesar's Gonads",
            "permissions",
                wasListToCSV(
                    [
                        // allow the script to pay on behalf of the bot
                        "Debit",
                        // allow the script to trigger an animation
                        "TriggerAnimation"
                    ]
                )
        ]
    )
);
ParameterPossible ValueRequired ParameterPossible ValueDescription
actionreplyitemThe UUID of the object sending the request.Reply to a script permission request.
taskThe UUID of the script sending the request.
ignoreitemThe UUID of the object sending the request.Ignore a script permission request.
taskThe UUID of the script sending the request.
purgePurge all tracked script permission requests.

Notes

The permissions parameter takes a comma-separated list of permissions to grant a script.

Permissions to scripts are granted based on the Corrade ACLs enabled in Corrade's configuration file. The table below summaries which Corrade permissions are required for granting the corresponding script permissions requested with llRequestPermissions.

Script Permissions RequestedCorrade Permissions Required
PERMISSION_DEBITeconomy
PERMISSION_TELEPORTmovement
PERMISSION_ATTACHgrooming
PERMISSION_TRIGGER_ANIMATION
PERMISSION_TAKE_CONTROLS
PERMISSION_TRACK_CAMERA
PERMISSION_CONTROL_CAMERA
Remap controls (not implemented on the grid).
PERMISSION_CHANGE_LINKSinteract
Change joints (not implemented on the grid).
Release ownership (not implemented on the grid).inventory
Change permissions (not implemented on the grid).