Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script opengrid - Land info script
#1
Bug 
Adapted for opensim

sim info Wink

Code:
default
{
    state_entry()
    {
            list info = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_AREA]);
    string name = llList2String(info, 0);
    integer size = llList2Integer(info, 1);
    integer primMAX = llGetParcelMaxPrims(llGetPos(), FALSE);
    integer prims = llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, TRUE);
    integer flags = llGetParcelFlags(llGetPos());
    string restrictions;
    if(!(flags & PARCEL_FLAG_ALLOW_FLY))
    {
        restrictions += " : No Fly";
    }
    if(flags & PARCEL_FLAG_ALLOW_DAMAGE)
    {
        restrictions += " : Damage Zone";
    }
    if(!(flags & PARCEL_FLAG_ALLOW_CREATE_OBJECTS))
    {
        restrictions += " : No Build";
    }
    if(!(flags & PARCEL_FLAG_RESTRICT_PUSHOBJECT))
    {
        restrictions += " : Push Enabled";
    }
    if(flags & PARCEL_FLAG_RESTRICT_PUSHOBJECT)
    {
        restrictions += " : Push Disabled";
    }
    restrictions += " :";
    llOwnerSay(name + " ~ " + (string)size + "sqm");
    llOwnerSay((string)prims + "/" + (string)primMAX + " prims.");
    llOwnerSay(restrictions);
    }
}
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  script Opengrid - avatar key and name speaker trainz 1 828 12-14-2011, 05:21 AM
Last Post: Anarchist_Labs
Photo Script Opensim - Texture Carte Map trainz 1 824 12-14-2011, 05:18 AM
Last Post: Anarchist_Labs
Star Script OPENGRID - Paticle Fire Orange trainz 1 1,038 11-12-2011, 04:04 AM
Last Post: LordJames
  Script Opensim - Texture UUID trainz 0 757 11-05-2011, 08:59 PM
Last Post: trainz
Brick Script opengrid - sim info trainz 0 710 11-05-2011, 08:31 PM
Last Post: trainz
Lightbulb Script Opensim - Door Rot90° trainz 0 715 11-05-2011, 08:26 PM
Last Post: trainz
Lightbulb Script opengrid - Door with password trainz 0 673 11-05-2011, 08:02 PM
Last Post: trainz
  Script Opengrid - Group inviter trainz 0 659 11-05-2011, 07:41 PM
Last Post: trainz
Music Script Opengrid - Parcel Audio System trainz 0 495 11-05-2011, 07:30 PM
Last Post: trainz
Rainbow Script Opengrid - Teleport collision trainz 0 495 11-05-2011, 12:44 PM
Last Post: trainz



Users browsing this thread: 1 Guest(s)