diff --git a/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs b/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs index 24a23ea..730f140 100644 --- a/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs +++ b/OpenSimProfile/Modules/ProfileModule/OpenProfile.cs @@ -378,12 +378,14 @@ namespace OpenSimProfile.Modules.OpenProfile ReqHash["snapshot_id"] = snapshotID.ToString(); ReqHash["sort_order"] = sortOrder.ToString(); ReqHash["enabled"] = enabled.ToString(); - ReqHash["parcel_uuid"] = remoteClient.Scene.RegionInfo.RegionID.ToString(); ReqHash["sim_name"] = remoteClient.Scene.RegionInfo.RegionName; ScenePresence p = FindPresence(remoteClient.AgentId); Vector3 avaPos = p.AbsolutePosition; + + ReqHash["parcel_uuid"] = Util.BuildFakeParcelID(remoteClient.Scene.RegionInfo.RegionHandle, (uint)avaPos.X, (uint)avaPos.Y); + Vector3 posGlobal = new Vector3(remoteClient.Scene.RegionInfo.RegionLocX*Constants.RegionSize + avaPos.X, remoteClient.Scene.RegionInfo.RegionLocY*Constants.RegionSize + avaPos.Y, avaPos.Z); ReqHash["pos_global"] = posGlobal.ToString();