Implements llGetInventoryNumber()

0.6.0-stable
alondria 2008-03-24 19:29:35 +00:00
parent 8a39d04f6d
commit 9117dfc858
1 changed files with 9 additions and 2 deletions

View File

@ -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<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
{
if (inv.Value.InvType == type)
{
count = count + 1;
}
}
return count;
}
public string llGetInventoryName(int type, int number)