From 3423ed4739f79bfb4a04c9654a07e6e13fdc709c Mon Sep 17 00:00:00 2001 From: alondria Date: Mon, 24 Mar 2008 19:05:44 +0000 Subject: Implements llGetInventoryCreator() --- OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs') diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 029abf6..83f87d3 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs @@ -4105,7 +4105,15 @@ namespace OpenSim.Region.ScriptEngine.Common public string llGetInventoryCreator(string item) { m_host.AddScriptLPS(1); - NotImplemented("llGetInventoryCreator"); + foreach (KeyValuePair inv in m_host.TaskInventory) + { + if (inv.Value.Name == item) + { + return inv.Value.CreatorID.ToString(); + } + } + llSay(0, "No item name '" + item + "'"); + //NotImplemented("llGetInventoryCreator"); return String.Empty; } -- cgit v1.1