Implements llGetInventoryType()

0.6.0-stable
alondria 2008-03-24 19:11:56 +00:00
parent 3423ed4739
commit 8a39d04f6d
1 changed files with 8 additions and 2 deletions

View File

@ -4190,8 +4190,14 @@ namespace OpenSim.Region.ScriptEngine.Common
public int llGetInventoryType(string name) public int llGetInventoryType(string name)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetInventoryType"); foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
return 0; {
if (inv.Value.Name == name)
{
return inv.Value.InvType;
}
}
return -1;
} }
public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons) public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons)