aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authoralondria2008-03-24 19:29:35 +0000
committeralondria2008-03-24 19:29:35 +0000
commit9117dfc858eaead065f02e6e87dea4e8a1decffe (patch)
treefa87e95e9baa4213af18880ab3a0595ef5ca8538 /OpenSim/Region/ScriptEngine/Common
parentImplements llGetInventoryType() (diff)
downloadopensim-SC_OLD-9117dfc858eaead065f02e6e87dea4e8a1decffe.zip
opensim-SC_OLD-9117dfc858eaead065f02e6e87dea4e8a1decffe.tar.gz
opensim-SC_OLD-9117dfc858eaead065f02e6e87dea4e8a1decffe.tar.bz2
opensim-SC_OLD-9117dfc858eaead065f02e6e87dea4e8a1decffe.tar.xz
Implements llGetInventoryNumber()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs11
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)