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.
integer PARCEL_DETAILS_SEE_AVATARS = 6;
// 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() );
}
}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||