llGetParcelDetails

From Second Life Wiki
Jump to navigation Jump to search

Summary

Function: list llGetParcelDetails( vector pos, list params );

Returns a list that is the parcel details specified in params (in the same order) for the parcel at pos.

• vector pos
• list params a list of PARCEL_DETAILS_* flags.

Constants

Detail Meaning Max Length Return Type
PARCEL_DETAILS_NAME 0 The name of the parcel. 63 Characters string
PARCEL_DETAILS_DESC 1 The description of the parcel. 127 Characters string
PARCEL_DETAILS_OWNER 2 The parcel owner's key. (36 Characters) key
PARCEL_DETAILS_GROUP 3 The parcel group's key. (36 Characters) key
PARCEL_DETAILS_AREA 4 The parcel's area, in sqm. (5 Characters) integer

Max Lengths in parentheses represent how many characters required when it is typecast to a string.

Examples


A very simple example to return the parcel details for the current parcel. Note the use of llGetPos() as opposed to llGetRegionCorner(). Using the latter will return simulator details.

list landinforeqd = [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC];
vector regionbase;
default
{
    state_entry()
    {
        regionbase = llGetPos();  // llGetRegionCorner();
    }

    touch_start(integer total_number)
    {

        llSay(0, "Local Parcel Name:" + llList2String(llGetParcelDetails(regionbase,landinforeqd),0));
        llSay(0, "Local Parcel Desc:" + llList2String(llGetParcelDetails(regionbase,landinforeqd),1));
        
    }
}

Deep Notes

Search JIRA for related Issues

Signature

function list llGetParcelDetails( vector pos, list params );