17 January 2023

7 June 2015

31 May 2015

14 December 2014

The setparceldata command can be used to set various parcel properties by following the Parcel class of libopenmetaverse.

CommandRequired ParametersRequired Corrade PermissionsExample
setparceldatagroup, password, dataland
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "setparceldata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "data", wasListToCSV(
                [
                    // Set the music URL
                    "MusicURL", wasURLEscape("http://streamradio.tk/playlist.pls"),
                    // And set default parcel flags except flying
                    "Flags", wasListToCSV(
                        [
                            //"AllowFly",
                            "AllowOtherScripts",
                            "AllowLandmark",
                            "CreateObjects",
                            "AllowGroupScripts",
                            "CreateGroupObjects",
                            "AllowAPrimitiveEntry",
                            "AllowGroupObjectEntry",
                            "AllowVoiceChat",
                            "UseEstateVoiceChan"
                        ]
                    )
                ]
            ),
            "position", <128,128,0>,
            "callback", llEscapeURL(URL)
        ]
    )
);
Optional ParametersPossible ValueDescription
positionA vector.A position over a parcel, or, if not specified, the affected parcel is the one that Corrade is currently on.
regionA string representing a region name.Attempt to perform the command on the specified region. Note that Corrade must be connected to that region. If in doubt, please use the getconnectedregions command to determine whether the region you want to specify is currently connected.

Corrade Additions to OpenMetaverse Library

In addition to the Parcel class of libopenmetaverse, Corrade also allows setting the following properties for a given parcel.

FlagPossible ValueMeaning
SeeAVsTrue or FalseWhether avatars in this parcel should be invisible to the people outside.
AnyAVSoundsTrue or FalseWhether avatars outside the parcel can hear any sounds that avatars inside the parcel play.
GroupAVSoundsTrue or FalseWhether group members outside the parcel can hear any sounds avatars play inside the parcel.
ObscureMOAPTrue or FalseWhether group members outside the parcel can hear any MOAP that avatars play inside the parcel.

For instance, if you want to set a parcel's visibility (World→About Land…→Options→See and chat with residents on this parcel) off, you would issue the command:

llInstantMessage((key)CORRADE, 
    wasKeyValueEncode(
        [
            "command", "setparceldata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "position", wasURLEscape("<194.392197, 72.896423, 23.951017>"),
            "data", wasListToCSV(
                [
                    "SeeAVs", "False"
                ]
            ),
            "callback", wasURLEscape(URL)
        ]
    )
);

where <194.392197, 72.896423, 23.951017> is a vector whose projection on the ground is inside the parcel whose settings you want to change.

Notes