Implements llGetInventoryCreator()

0.6.0-stable
alondria 2008-03-24 19:05:44 +00:00
parent ca7c954a61
commit 3423ed4739
1 changed files with 9 additions and 1 deletions

View File

@ -4105,7 +4105,15 @@ namespace OpenSim.Region.ScriptEngine.Common
public string llGetInventoryCreator(string item) public string llGetInventoryCreator(string item)
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
NotImplemented("llGetInventoryCreator"); foreach (KeyValuePair<LLUUID, TaskInventoryItem> 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; return String.Empty;
} }