mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
committed by
UbitUmarov
parent
9a92d94e99
commit
f42fd1c552
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user