aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs10
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs6
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs1
3 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 9c8d40a..71e8ca9 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6303,6 +6303,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6303 IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>(); 6303 IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
6304 return UrlModule.ExternalHostNameForLSL; 6304 return UrlModule.ExternalHostNameForLSL;
6305 } 6305 }
6306 else if (name == "region_max_prims")
6307 {
6308 return World.RegionInfo.ObjectCapacity.ToString();
6309 }
6306 else 6310 else
6307 { 6311 {
6308 return ""; 6312 return "";
@@ -13789,6 +13793,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
13789 } catch { }; 13793 } catch { };
13790 ret.Add(new LSL_Integer(invcount)); 13794 ret.Add(new LSL_Integer(invcount));
13791 break; 13795 break;
13796 case ScriptBaseClass.OBJECT_REZZER_KEY:
13797 ret.Add(new LSL_Key(id));
13798 break;
13792 case ScriptBaseClass.OBJECT_GROUP_TAG: 13799 case ScriptBaseClass.OBJECT_GROUP_TAG:
13793 ret.Add(new LSL_String(av.Grouptitle)); 13800 ret.Add(new LSL_String(av.Grouptitle));
13794 break; 13801 break;
@@ -13984,6 +13991,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
13984 count += parts[i].Inventory.Count; 13991 count += parts[i].Inventory.Count;
13985 ret.Add(new LSL_Integer(count)); 13992 ret.Add(new LSL_Integer(count));
13986 break; 13993 break;
13994 case ScriptBaseClass.OBJECT_REZZER_KEY:
13995 ret.Add(new LSL_Key(obj.ParentGroup.RezzerID.ToString()));
13996 break;
13987 case ScriptBaseClass.OBJECT_GROUP_TAG: 13997 case ScriptBaseClass.OBJECT_GROUP_TAG:
13988 ret.Add(new LSL_String(String.Empty)); 13998 ret.Add(new LSL_String(String.Empty));
13989 break; 13999 break;
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index a21a0ca..19f2d09 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -4030,8 +4030,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4030 { 4030 {
4031 CheckThreatLevel(ThreatLevel.None, "osGetRezzingObject"); 4031 CheckThreatLevel(ThreatLevel.None, "osGetRezzingObject");
4032 m_host.AddScriptLPS(1); 4032 m_host.AddScriptLPS(1);
4033 4033 UUID rezID = m_host.ParentGroup.RezzerID;
4034 return new LSL_Key(m_host.ParentGroup.FromPartID.ToString()); 4034 if(rezID == UUID.Zero || m_host.ParentGroup.Scene.GetScenePresence(rezID) != null)
4035 return new LSL_Key(UUID.Zero.ToString());
4036 return new LSL_Key(rezID.ToString());
4035 } 4037 }
4036 4038
4037 /// <summary> 4039 /// <summary>
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 48afcc0..734d878 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -640,6 +640,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
640 public const int OBJECT_OMEGA = 29; 640 public const int OBJECT_OMEGA = 29;
641 public const int OBJECT_PRIM_COUNT = 30; 641 public const int OBJECT_PRIM_COUNT = 30;
642 public const int OBJECT_TOTAL_INVENTORY_COUNT = 31; 642 public const int OBJECT_TOTAL_INVENTORY_COUNT = 31;
643 public const int OBJECT_REZZER_KEY = 32;
643 public const int OBJECT_GROUP_TAG = 33; 644 public const int OBJECT_GROUP_TAG = 33;
644 public const int OBJECT_TEMP_ATTACHED = 34; 645 public const int OBJECT_TEMP_ATTACHED = 34;
645 646