aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie2011-02-07 22:08:53 +0000
committerMelanie2011-02-07 22:08:53 +0000
commit3889e68c5441218a2ffeb2094b8251d31369837b (patch)
tree69608c869c3823df4f417d9df34866f400045533 /OpenSim/Region/ScriptEngine
parentRepair x-query-string (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-3889e68c5441218a2ffeb2094b8251d31369837b.zip
opensim-SC_OLD-3889e68c5441218a2ffeb2094b8251d31369837b.tar.gz
opensim-SC_OLD-3889e68c5441218a2ffeb2094b8251d31369837b.tar.bz2
opensim-SC_OLD-3889e68c5441218a2ffeb2094b8251d31369837b.tar.xz
Merge branch 'master' into careminster-presence-refactor
Conflicts: OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs OpenSim/Server/Handlers/Simulation/AgentHandlers.cs OpenSim/Services/Connectors/SimianGrid/SimianGridMaptileModule.cs OpenSim/Services/GridService/HypergridLinker.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs31
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs4
2 files changed, 27 insertions, 8 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 59e905e..e6ebc6e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -1917,18 +1917,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1917 1917
1918 protected void SetTexture(SceneObjectPart part, string texture, int face) 1918 protected void SetTexture(SceneObjectPart part, string texture, int face)
1919 { 1919 {
1920<<<<<<< HEAD:OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
1920 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted) 1921 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1921 return; 1922 return;
1922 1923
1923 UUID textureID=new UUID(); 1924 UUID textureID=new UUID();
1925=======
1926 UUID textureID = new UUID();
1927>>>>>>> master:OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
1924 1928
1925 if (!UUID.TryParse(texture, out textureID)) 1929 textureID = InventoryKey(texture, (int)AssetType.Texture);
1926 { 1930 if (textureID == UUID.Zero)
1927 textureID=InventoryKey(texture, (int)AssetType.Texture); 1931 {
1928 } 1932 if (!UUID.TryParse(texture, out textureID))
1929 1933 return;
1930 if (textureID == UUID.Zero) 1934 }
1931 return;
1932 1935
1933 Primitive.TextureEntry tex = part.Shape.Textures; 1936 Primitive.TextureEntry tex = part.Shape.Textures;
1934 1937
@@ -3343,15 +3346,29 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3343 msg.dialog = (byte)19; // MessageFromObject 3346 msg.dialog = (byte)19; // MessageFromObject
3344 msg.fromGroup = false;// fromGroup; 3347 msg.fromGroup = false;// fromGroup;
3345 msg.offline = (byte)0; //offline; 3348 msg.offline = (byte)0; //offline;
3349<<<<<<< HEAD:OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
3346 msg.ParentEstateID = World.RegionInfo.EstateSettings.EstateID; 3350 msg.ParentEstateID = World.RegionInfo.EstateSettings.EstateID;
3347 msg.Position = new Vector3(m_host.AbsolutePosition); 3351 msg.Position = new Vector3(m_host.AbsolutePosition);
3348 msg.RegionID = World.RegionInfo.RegionID.Guid; 3352 msg.RegionID = World.RegionInfo.RegionID.Guid;
3349 msg.binaryBucket = Util.StringToBytes256(m_host.OwnerID.ToString()); 3353 msg.binaryBucket = Util.StringToBytes256(m_host.OwnerID.ToString());
3354=======
3355 msg.ParentEstateID = 0; //ParentEstateID;
3356 msg.Position = new Vector3(m_host.AbsolutePosition);
3357 msg.RegionID = World.RegionInfo.RegionID.Guid;//RegionID.Guid;
3358 msg.binaryBucket
3359 = Util.StringToBytes256(
3360 "{0}/{1}/{2}/{3}",
3361 World.RegionInfo.RegionName,
3362 (int)Math.Floor(m_host.AbsolutePosition.X),
3363 (int)Math.Floor(m_host.AbsolutePosition.Y),
3364 (int)Math.Floor(m_host.AbsolutePosition.Z));
3365>>>>>>> master:OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
3350 3366
3351 if (m_TransferModule != null) 3367 if (m_TransferModule != null)
3352 { 3368 {
3353 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); 3369 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
3354 } 3370 }
3371
3355 ScriptSleep(2000); 3372 ScriptSleep(2000);
3356 } 3373 }
3357 3374
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index cf059b3..4d299d6 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -711,7 +711,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
711 // and convert the regionName to the target region 711 // and convert the regionName to the target region
712 if (regionName.Contains(".") && regionName.Contains(":")) 712 if (regionName.Contains(".") && regionName.Contains(":"))
713 { 713 {
714// List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); 714 World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1);
715// List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1);
716
715 string[] parts = regionName.Split(new char[] { ':' }); 717 string[] parts = regionName.Split(new char[] { ':' });
716 if (parts.Length > 2) 718 if (parts.Length > 2)
717 regionName = parts[0] + ':' + parts[1] + "/ " + parts[2]; 719 regionName = parts[0] + ':' + parts[1] + "/ " + parts[2];