llGetInventoryDesc

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
Vincent Sylvester
2025-03-31 17:11:22 +02:00
committed by UbitUmarov
parent 9a92d94e99
commit f42fd1c552
3 changed files with 19 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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);

View File

@@ -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)
{