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