Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL Bug found?

Micheru Mathys
Politicat Extremus
Join date: 28 Nov 2005
Posts: 9
03-17-2006 22:08
I tried to bug report this in-world, but it doesn't let me post the whole script in the report. I'm going to both link to this thread and post this here at once.

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!";);

}
}
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
03-18-2006 07:58
llGetParcelFlags currently does not work. It should work next release.
_____________________
- Kelly Linden