Difference between revisions of "PARCEL DETAILS SEE AVATARS"

From Second Life Wiki
Jump to: navigation, search
(Created page with "{{LSL Constant |name={{PAGENAMEE}} |type=integer |value=6 |desc=This is a flag used with llGetParcelDetails to get the "See and chat with residents on this parcel" setting. |…")
 
Line 4: Line 4:
 
|value=6
 
|value=6
 
|desc=This is a flag used with [[llGetParcelDetails]] to get the "See and chat with residents on this parcel" setting.
 
|desc=This is a flag used with [[llGetParcelDetails]] to get the "See and chat with residents on this parcel" setting.
|examples
+
|examples=<LSL>// returns parcel data.
 +
string getParcelDataRequest()
 +
{
 +
    string message; //stores a temp message.
 +
   
 +
    // get parcel name and details on if others can see avatars on the parcel from other parcels
 +
    list parcelData = llGetParcelDetails( llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_SEE_AVATARS] );
 +
   
 +
    // name the parcel and prepare the message.
 +
    message = "Parcel name is: " + llList2String( parcelData, 0 );
 +
   
 +
    // determine if people can see avatars (1 = can see, 0 = can't see)
 +
    if( llList2String( parcelData, 1 ) == "0" )
 +
    {
 +
        message += ", avatars on other parcels can't see avatars on this parcel.";
 +
    }
 +
   
 +
    // else they can see
 +
    else
 +
    {
 +
        message +=", avatars on other parcels can see avatars on this parcel.";
 +
    }
 +
   
 +
    return message;
 +
}
 +
 
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        // calls the method for getting parcel data.
 +
        llOwnerSay( getParcelDataRequest() );
 +
    }
 +
}
 +
</LSL>
 
|functions={{LSL DefineRow||[[llGetParcelDetails]]}}
 
|functions={{LSL DefineRow||[[llGetParcelDetails]]}}
 
|constants={{!}}{{LSL_Constants/Parcel_Details}}
 
|constants={{!}}{{LSL_Constants/Parcel_Details}}

Revision as of 19:00, 2 November 2013

Description

Constant: integer PARCEL_DETAILS_SEE_AVATARS = 6;

The integer constant PARCEL_DETAILS_SEE_AVATARS has the value 6

This is a flag used with llGetParcelDetails to get the "See and chat with residents on this parcel" setting.

Related Articles

Constants

Flag Meaning Max Length Return
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
PARCEL_DETAILS_ID 5 The parcel's key. (36 Characters) key
PARCEL_DETAILS_SEE_AVATARS 6 The parcel's avatar visibility setting[1] (1 character) integer - boolean
Max Lengths in parentheses represent how many characters required when it is typecast to a string.

Functions

•  llGetParcelDetails

Examples

<LSL>// returns parcel data. string getParcelDataRequest() {

   string message; //stores a temp message.
   
   // get parcel name and details on if others can see avatars on the parcel from other parcels
   list parcelData = llGetParcelDetails( llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_SEE_AVATARS] );
   
   // name the parcel and prepare the message. 
   message = "Parcel name is: " + llList2String( parcelData, 0 );
   
   // determine if people can see avatars (1 = can see, 0 = can't see)
   if( llList2String( parcelData, 1 ) == "0" )
   {
       message += ", avatars on other parcels can't see avatars on this parcel.";
   }
   
   // else they can see
   else
   {
       message +=", avatars on other parcels can see avatars on this parcel.";
   }
   
   return message;

}

default {

   state_entry()
   {
       // calls the method for getting parcel data.
       llOwnerSay( getParcelDataRequest() );
   }

} </LSL>

Deep Notes

Search JIRA for related Issues

Footnotes

  1. ^ The parcel avatar visibility setting is used to hide avatars, their chat, and objects they sit on when they are in other parcels.

Signature

integer PARCEL_DETAILS_SEE_AVATARS = 6;