diff --git a/DataSnapShot/DataSnapShot.patch b/DataSnapShot/DataSnapShot.patch new file mode 100644 index 0000000..fa2d8e9 --- /dev/null +++ b/DataSnapShot/DataSnapShot.patch @@ -0,0 +1,72 @@ +Index: OpenSim/Region/DataSnapshot/LandSnapshot.cs +=================================================================== +--- OpenSim/Region/DataSnapshot/LandSnapshot.cs (revision 6693) ++++ OpenSim/Region/DataSnapshot/LandSnapshot.cs (working copy) +@@ -152,14 +152,20 @@ + // Check the category of the Parcel + XmlAttribute category_attr = nodeFactory.CreateAttribute("category"); + category_attr.Value = ((int)parcel.Category).ToString(); +- +- ++ // Check if the parcel is for sale ++ XmlAttribute forsale_attr = nodeFactory.CreateAttribute("forsale"); ++ forsale_attr.Value = CheckForSale(parcel); ++ XmlAttribute sales_attr = nodeFactory.CreateAttribute("salesprice"); ++ sales_attr.Value = parcel.SalePrice.ToString(); ++ + //XmlAttribute entities_attr = nodeFactory.CreateAttribute("entities"); + //entities_attr.Value = land.primsOverMe.Count.ToString(); + xmlparcel.Attributes.Append(scripts_attr); + xmlparcel.Attributes.Append(build_attr); + xmlparcel.Attributes.Append(public_attr); + xmlparcel.Attributes.Append(category_attr); ++ xmlparcel.Attributes.Append(forsale_attr); ++ xmlparcel.Attributes.Append(sales_attr); + //xmlparcel.Attributes.Append(entities_attr); + + +@@ -293,30 +299,38 @@ + private string GetScriptsPermissions(LandData parcel) + { + if ((parcel.Flags & (uint)Parcel.ParcelFlags.AllowOtherScripts) == (uint)Parcel.ParcelFlags.AllowOtherScripts) +- return "yes"; ++ return "true"; + else +- return "no"; ++ return "false"; + + } + + private string GetPublicPermissions(LandData parcel) + { + if ((parcel.Flags & (uint)Parcel.ParcelFlags.UseAccessList) == (uint)Parcel.ParcelFlags.UseAccessList) +- return "no"; ++ return "false"; + else +- return "yes"; ++ return "true"; + + } + + private string GetBuildPermissions(LandData parcel) + { + if ((parcel.Flags & (uint)Parcel.ParcelFlags.CreateObjects) == (uint)Parcel.ParcelFlags.CreateObjects) +- return "yes"; ++ return "true"; + else +- return "no"; ++ return "false"; + + } + ++ private string CheckForSale(LandData parcel) ++ { ++ if (parcel.SalePrice > 0) ++ return "true"; ++ else ++ return "false"; ++ } ++ + #endregion + + #region Change detection hooks