mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Merge branch 'master' into httptests
This commit is contained in:
@@ -6303,6 +6303,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
IUrlModule UrlModule = World.RequestModuleInterface<IUrlModule>();
|
||||
return UrlModule.ExternalHostNameForLSL;
|
||||
}
|
||||
else if (name == "region_max_prims")
|
||||
{
|
||||
return World.RegionInfo.ObjectCapacity.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "";
|
||||
@@ -13789,6 +13793,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
} catch { };
|
||||
ret.Add(new LSL_Integer(invcount));
|
||||
break;
|
||||
case ScriptBaseClass.OBJECT_REZZER_KEY:
|
||||
ret.Add(new LSL_Key(id));
|
||||
break;
|
||||
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||
ret.Add(new LSL_String(av.Grouptitle));
|
||||
break;
|
||||
@@ -13984,6 +13991,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
count += parts[i].Inventory.Count;
|
||||
ret.Add(new LSL_Integer(count));
|
||||
break;
|
||||
case ScriptBaseClass.OBJECT_REZZER_KEY:
|
||||
ret.Add(new LSL_Key(obj.ParentGroup.RezzerID.ToString()));
|
||||
break;
|
||||
case ScriptBaseClass.OBJECT_GROUP_TAG:
|
||||
ret.Add(new LSL_String(String.Empty));
|
||||
break;
|
||||
|
||||
@@ -4030,8 +4030,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
CheckThreatLevel(ThreatLevel.None, "osGetRezzingObject");
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
return new LSL_Key(m_host.ParentGroup.FromPartID.ToString());
|
||||
UUID rezID = m_host.ParentGroup.RezzerID;
|
||||
if(rezID == UUID.Zero || m_host.ParentGroup.Scene.GetScenePresence(rezID) != null)
|
||||
return new LSL_Key(UUID.Zero.ToString());
|
||||
return new LSL_Key(rezID.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -640,6 +640,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
public const int OBJECT_OMEGA = 29;
|
||||
public const int OBJECT_PRIM_COUNT = 30;
|
||||
public const int OBJECT_TOTAL_INVENTORY_COUNT = 31;
|
||||
public const int OBJECT_REZZER_KEY = 32;
|
||||
public const int OBJECT_GROUP_TAG = 33;
|
||||
public const int OBJECT_TEMP_ATTACHED = 34;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user