diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 75c1475273..1b1a08f2a4 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -1779,8 +1779,15 @@ namespace OpenSim.Region.ScriptEngine.Common public int llGetInventoryNumber(int type) { m_host.AddScriptLPS(1); - NotImplemented("llGetInventoryNumber"); - return 0; + int count = 0; + foreach (KeyValuePair inv in m_host.TaskInventory) + { + if (inv.Value.InvType == type) + { + count = count + 1; + } + } + return count; } public string llGetInventoryName(int type, int number)