diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 49bd2fb513..b5b0bd4a5b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -13638,6 +13638,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return (int)tmp; } + public LSL_String llGetInventoryDesc(string name) + { + TaskInventoryItem item = m_host.Inventory.GetInventoryItem(name); + if (item is null) + { + Error("llGetInventoryDesc", "Item " + name + " not found"); + return new LSL_String(); + } + + return new LSL_String(item.Description); + } + public LSL_Integer llGetInventoryType(string name) { diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 13f6386d98..2907e7fbeb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs @@ -156,6 +156,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces LSL_String llGetInventoryName(int type, int number); LSL_Integer llGetInventoryNumber(int type); LSL_Integer llGetInventoryPermMask(string item, int mask); + LSL_String llGetInventoryDesc(string name); LSL_Integer llGetInventoryType(string name); LSL_Key llGetKey(); LSL_Key llGetLandOwnerAt(LSL_Vector pos); diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index 06b375507a..f881ce3e03 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs @@ -650,6 +650,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase return m_LSL_Functions.llGetInventoryPermMask(item, mask); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public LSL_String llGetInventoryDesc(string name) + { + return m_LSL_Functions.llGetInventoryDesc(name); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public LSL_Integer llGetInventoryType(string name) {