list llGetParcelDetails(vector pos, list details)
Returns of a list of the
details in the order they are in the
details list, for the
parcel at
pos.
pos is in absolute region coordinates.
Values for
details:
Detail | Value | 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 |
PARCEL_DETAILS_ID | 5 | The parcel's key. (Server 1.36 and later) | (36 Characters) | key |
Max Lengths expressed with parentheses around represent how many characters required when it is typecast to a string.
This script will return
PARCEL_DETAILS_NAME. To change the data returned, you would replace the 0 in lstParcelDetails to any of values, or any number separated with commas.
default
{
state_entry()
{
llSay(0, "Ready!");
}
touch_start(integer total_number)
{
list lstParcelDetails = [PARCEL_DETAILS_NAME];
list lstParcelName=llGetParcelDetails(llGetPos(),lstParcelDetails);
llSay(0, (string)lstParcelName);
}
}
Parse All Parcel Details:
default
{
state_entry()
{
llSay(0, "Touch Me!");
}
touch_start(integer total_number)
{
// Grab Parcel Info
list lstParcelDetails = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC, PARCEL_DETAILS_OWNER, PARCEL_DETAILS_GROUP, PARCEL_DETAILS_AREA]);
// Set Parcel Variables
string ParcelName = llList2String(lstParcelDetails, 0); // Parcel's Name (63 Characters Max)
string ParcelDesc = llList2String(lstParcelDetails, 1); // Parcels Description (127 Characters Max)
key ParcelOwner = llList2Key(lstParcelDetails, 2); // Parcel Owners Key (AV Or Group Key If Group Owned)
key ParcelGroup = llList2Key(lstParcelDetails, 3); // Parcel's Group Key (NULL_KEY Unless Group Set Or Owned By Group)
integer ParcelArea = llList2Integer(lstParcelDetails, 4); // Parcel's Size (In Meters Squared. ie: 512, 1024...)
// Put Your Code Here
}
}
Added in SL 1.12.4; released in 1.13.0
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Land Jasa SEO Jasa SEO Murah Sepatu Online Toko Sepatu Online Sepatu Sepatu Murah Sepatu Safety Sepatu Futsal Cheapes Hostgator Coupon Link Booking Televisori offerte Notebook Offerte Berita Terkini Internet Marketer Muda Internet Marketer Indonesia Portatile Apple RDAnet Lorks Karikatur Bisnis Modal Kecil Bisnis UKM Berita Terbaru Iklan Baris Jasa SEO Jasa SEO Murah SEO Indonesia Konsultan SEO SEO Belajar SEO Kursus SEO Kursus SEO Murah Jam Tangan Casio Jam Tangan Casio Jam Tangan Murah Jam Tangan Grosir Baju Terbaru Grosir Baju Baju Terbaru Grosir Baju Murah Bisnis Online Belajar SEO Kerupuk Kerupuk kulit Social Bookmark Dofollow Social Bookmark Kumpulan Puisi Kirim Puisi bola hantu Penumbuh Rambut Penumbuh Rambut timbangan WBC Wonogiri Jasa SEO Murah Jasa SEO Jam Tangan Murah