mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
Implements llGetInventoryNumber()
This commit is contained in:
@@ -1779,8 +1779,15 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||||||
public int llGetInventoryNumber(int type)
|
public int llGetInventoryNumber(int type)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
NotImplemented("llGetInventoryNumber");
|
int count = 0;
|
||||||
return 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)
|
public string llGetInventoryName(int type, int number)
|
||||||
|
|||||||
Reference in New Issue
Block a user