I found this on the LSL wiki, and modified it to look for parcel info too. When you click on the item it only gives the first thing:
Object: This region follows P2P rules!
I had a -good- scripter (Piero Padar) glance at it, and he ran it through a debugger he wrote and proclaimed it a bug, so here I am reporting it.
The actual bug seems to be that it doesn't que the commands sent or.. something. I'm still learning LSL.. ^^;
~Micheru
Actual script:
default
{
state_entry()
{
}
touch_start(integer total_number)
{
integer region_flags = llGetRegionFlags();
if (region_flags & REGION_FLAG_ALLOW_DAMAGE)
llOwnerSay("This region is damage enabled!"
;if (region_flags & REGION_FLAG_FIXED_SUN)
llOwnerSay("This regions sun doesn't move!"
;if (region_flags & REGION_FLAG_BLOCK_TERRAFORM)
llOwnerSay("This region does not allow terraforming!"
;if (region_flags & REGION_FLAG_SANDBOX)
llOwnerSay("This region is a sandbox!"
;if (region_flags & REGION_FLAG_DISABLE_COLLISIONS)
llOwnerSay("This region currently blocks non-agent collisions!"
;if (region_flags & REGION_FLAG_DISABLE_PHYSICS)
llOwnerSay("This region currently blocks all physics!"
;if (region_flags & REGION_FLAG_BLOCK_FLY)
llOwnerSay("This region blocks flying!"
;if (region_flags & REGION_FLAG_ALLOW_DIRECT_TELEPORT) {
llOwnerSay("This region follows P2P rules!"
;} else {
llOwnerSay("This region uses a telehub!"
;}
integer parcelFlags = llGetParcelFlags(llGetPos());
if (parcelFlags & PARCEL_FLAG_ALLOW_FLY)
llOwnerSay("This parcel allows flying!"
;if (parcelFlags & PARCEL_FLAG_ALLOW_SCRIPTS)
llOwnerSay("This parcel allows scripts!"
;if (parcelFlags & PARCEL_FLAG_ALLOW_LANDMARK)
llOwnerSay("This parcel allows landmarks"
;if (parcelFlags & PARCEL_FLAG_ALLOW_TERRAFORM)
llOwnerSay("This parcel allows you to terraform!"
;if (parcelFlags & PARCEL_FLAG_ALLOW_DAMAGE)
llOwnerSay("This parcel allows damage!"
;if (parcelFlags & PARCEL_FLAG_ALLOW_CREATE_OBJECTS)
llOwnerSay("This parcel allows prim creation!"
;if (parcelFlags & PARCEL_FLAG_USE_ACCESS_GROUP)
llOwnerSay("This parcel allows only those in a group!"
;if (parcelFlags & PARCEL_FLAG_USE_ACCESS_LIST)
llOwnerSay("This parcel allows only those in a list!"
;if (parcelFlags & PARCEL_FLAG_USE_BAN_LIST)
llOwnerSay("This parcel uses a ban list!"
;if (parcelFlags & PARCEL_FLAG_USE_LAND_PASS_LIST)
llOwnerSay("This parcel limits access by purchasing a pass!"
;if (parcelFlags & PARCEL_FLAG_LOCAL_SOUND_ONLY)
llOwnerSay("This parcel limits spacialized sound to itself only!"
; }
}