From 8a39d04f6d09c0b1f7ebbbb724c708343a24c115 Mon Sep 17 00:00:00 2001 From: alondria Date: Mon, 24 Mar 2008 19:11:56 +0000 Subject: Implements llGetInventoryType() --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 83f87d3..75c1475 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -4190,8 +4190,14 @@ namespace OpenSim.Region.ScriptEngine.Common public int llGetInventoryType(string name) { m_host.AddScriptLPS(1); - NotImplemented("llGetInventoryType"); - return 0; + foreach (KeyValuePair inv in m_host.TaskInventory) + { + if (inv.Value.Name == name) + { + return inv.Value.InvType; + } + } + return -1; } public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons) -- cgit v1.1