OsSetParcelDetails

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 2: Line 2:
 
|threat_level=High or VeryHigh (see description)
 
|threat_level=High or VeryHigh (see description)
 
|function_syntax=void osSetParcelDetails(vector pos, list rules)
 
|function_syntax=void osSetParcelDetails(vector pos, list rules)
|ossl_example=
+
|ossl_example=<source lang = "lsl">
 +
// ----------------------------------------------------------------
 +
// Example / Sample Script to show function use.
 +
//
 +
// Script Title:    osSetParcelDetails.lsl
 +
// Script Author:
 +
// Threat Level:    High
 +
// Script Source:  SUPPLEMENTAL http://opensimulator.org/wiki/osSetParcelDetails
 +
//
 +
// Notes: See Script Source reference for more detailed information
 +
// This sample is full opensource and available to use as you see fit and desire.
 +
// Threat Levels only apply to OSSL & AA Functions
 +
// See http://opensimulator.org/wiki/Threat_level
 +
// ================================================================
 +
// C# Source Line:      public void osSetParcelDetails(LSL_Vector pos, LSL_List rules)
 +
// Inworld Script Line:    osSetParcelDetails(vector pos, list rules);
 +
//
 +
// Example of osSetParcelDetails
 +
// This function allows for setting parcels information programmatically.
 +
// -- constants for osSetParcelDetails
 +
//    PARCEL_DETAILS_NAME = 0;
 +
//    PARCEL_DETAILS_DESC = 1;
 +
//    PARCEL_DETAILS_OWNER = 2;
 +
//    PARCEL_DETAILS_GROUP = 3;
 +
//
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        llSay(0,"Touch to use osSetParcelDetails Parcels");
 +
    }
 +
    touch_start(integer total_num)
 +
    {
 +
        vector position = <128.0, 128.0, 0.0>;      //Parcel Location: centre of region
 +
        string name = "My New Land ";                //Parcel Name to set
 +
        string descript = "My New Land Description"; //Parcel Description text
 +
        key owner = llGetOwner();                    //Parcel Owners UUID
 +
        key group = NULL_KEY;                        //Parcel Group UUID
 +
        // setup the Rules List with the above values
 +
        list rules =[
 +
            PARCEL_DETAILS_NAME, name,
 +
            PARCEL_DETAILS_DESC, descript,
 +
            PARCEL_DETAILS_OWNER, owner,
 +
            PARCEL_DETAILS_GROUP, group];
 +
        osSetParcelDetails(position, rules);
 +
    }
 +
}
 +
</source>
 
|description=This function is the counterpart to [http://wiki.secondlife.com/wiki/LlGetParcelDetails llGetParcelDetails]. Currently only PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC, PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP are implemented. Note that the threat levels for PARCEL_DETAILS_NAME and PARCEL_DETAILS_DESC are "High", and those for PARCEL_DETAILS_OWNER and PARCEL_DETAILS_GROUP are "VeryHigh".
 
|description=This function is the counterpart to [http://wiki.secondlife.com/wiki/LlGetParcelDetails llGetParcelDetails]. Currently only PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC, PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP are implemented. Note that the threat levels for PARCEL_DETAILS_NAME and PARCEL_DETAILS_DESC are "High", and those for PARCEL_DETAILS_OWNER and PARCEL_DETAILS_GROUP are "VeryHigh".
 
|
 
|

Revision as of 10:32, 30 July 2011

void osSetParcelDetails(vector pos, list rules)
This function is the counterpart to llGetParcelDetails. Currently only PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC, PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP are implemented. Note that the threat levels for PARCEL_DETAILS_NAME and PARCEL_DETAILS_DESC are "High", and those for PARCEL_DETAILS_OWNER and PARCEL_DETAILS_GROUP are "VeryHigh".
Threat Level High or VeryHigh (see description) is unknown threat level
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// ----------------------------------------------------------------
// Example / Sample Script to show function use.
//
// Script Title:    osSetParcelDetails.lsl
// Script Author:
// Threat Level:    High
// Script Source:   SUPPLEMENTAL http://opensimulator.org/wiki/osSetParcelDetails
//
// Notes: See Script Source reference for more detailed information
// This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
// See http://opensimulator.org/wiki/Threat_level
// ================================================================
// C# Source Line:      public void osSetParcelDetails(LSL_Vector pos, LSL_List rules)
// Inworld Script Line:     osSetParcelDetails(vector pos, list rules);
//
// Example of osSetParcelDetails
// This function allows for setting parcels information programmatically.
// -- constants for osSetParcelDetails
//    PARCEL_DETAILS_NAME = 0;
//    PARCEL_DETAILS_DESC = 1;
//    PARCEL_DETAILS_OWNER = 2;
//    PARCEL_DETAILS_GROUP = 3;
//
default
{
    state_entry()
    {
        llSay(0,"Touch to use osSetParcelDetails Parcels");
    }
    touch_start(integer total_num)
    {
        vector position = <128.0, 128.0, 0.0>;       //Parcel Location: centre of region
        string name = "My New Land ";                //Parcel Name to set
        string descript = "My New Land Description"; //Parcel Description text
        key owner = llGetOwner();                    //Parcel Owners UUID
        key group = NULL_KEY;                        //Parcel Group UUID
        // setup the Rules List with the above values 
        list rules =[
            PARCEL_DETAILS_NAME, name,
            PARCEL_DETAILS_DESC, descript,
            PARCEL_DETAILS_OWNER, owner,
            PARCEL_DETAILS_GROUP, group];
        osSetParcelDetails(position, rules);
    }
}
Personal tools
General
About This Wiki