Mantis#1704. Thank you kindly, Mjm for a patch that:

The attached patch implements llRemoveInventory().
0.6.0-stable
Charles Krinke 2008-07-09 18:03:22 +00:00
parent 9f68bcd80b
commit 130cbd4376
1 changed files with 9 additions and 2 deletions

View File

@ -2759,10 +2759,17 @@ namespace OpenSim.Region.ScriptEngine.Common
llSay(0, "Could not find object " + inventory);
}
public void llRemoveInventory(string item)
public void llRemoveInventory(string name)
{
m_host.AddScriptLPS(1);
NotImplemented("llRemoveInventory");
foreach (TaskInventoryItem item in m_host.TaskInventory.Values)
{
if (item.Name == name)
{
m_host.RemoveInventoryItem(item.ItemID);
return;
}
}
}
public void llSetText(string text, LSL_Types.Vector3 color, double alpha)