LlGetParcelDetails
De DigiWiki.
(Différences entre les versions)
| Ligne 1 : | Ligne 1 : | ||
<lsl> | <lsl> | ||
| - | + | list landinforeqd = [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC]; | |
| + | vector regionbase; | ||
default | default | ||
{ | { | ||
| + | state_entry() | ||
| + | { | ||
| + | |||
| + | regionbase = llGetPos(); // llGetRegionCorner(); | ||
| + | |||
| + | } | ||
| + | |||
touch_start(integer total_number) | touch_start(integer total_number) | ||
{ | { | ||
| - | + | ||
| - | list | + | list details = llGetParcelDetails(regionbase,landinforeqd); |
| - | + | ||
| - | + | llSay(0, "Nom du terrain :" + llList2String(details ,0)); | |
| - | + | llSay(0, "Description du terrain : " + llList2String(details ,1)); | |
| + | |||
| + | } | ||
| + | } | ||
| + | </lsl> | ||
| + | |||
| + | <lsl> | ||
| + | |||
| + | default | ||
| + | { | ||
| + | touch_start(integer total_number) | ||
| + | { | ||
| + | list details = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC]); | ||
| + | |||
| + | llSay(0, "Local Parcel Name:" + llList2String(details ,0)); | ||
| + | llSay(0, "Local Parcel Desc:" + llList2String(details ,1)); | ||
| + | } | ||
| + | } | ||
| + | </lsl> | ||
| + | |||
| + | |||
| + | <lsl> | ||
| + | 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); | |
| - | + | } | |
| - | + | } | |
| - | + | </lsl> | |
| - | + | ||
| - | + | <lsl> | |
| + | 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 | ||
} | } | ||
} | } | ||
</lsl> | </lsl> | ||
Version du 6 novembre 2013 à 12:02
list landinforeqd = [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC]; vector regionbase; default { state_entry() { regionbase = llGetPos(); // llGetRegionCorner(); } touch_start(integer total_number) { list details = llGetParcelDetails(regionbase,landinforeqd); llSay(0, "Nom du terrain :" + llList2String(details ,0)); llSay(0, "Description du terrain : " + llList2String(details ,1)); } }
default { touch_start(integer total_number) { list details = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC]); llSay(0, "Local Parcel Name:" + llList2String(details ,0)); llSay(0, "Local Parcel Desc:" + llList2String(details ,1)); } }
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); } }
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 } }


