diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 75c1475..1b1a08f 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 | |||
1779 | public int llGetInventoryNumber(int type) | 1779 | public int llGetInventoryNumber(int type) |
1780 | { | 1780 | { |
1781 | m_host.AddScriptLPS(1); | 1781 | m_host.AddScriptLPS(1); |
1782 | NotImplemented("llGetInventoryNumber"); | 1782 | int count = 0; |
1783 | return 0; | 1783 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
1784 | { | ||
1785 | if (inv.Value.InvType == type) | ||
1786 | { | ||
1787 | count = count + 1; | ||
1788 | } | ||
1789 | } | ||
1790 | return count; | ||
1784 | } | 1791 | } |
1785 | 1792 | ||
1786 | public string llGetInventoryName(int type, int number) | 1793 | public string llGetInventoryName(int type, int number) |