aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index d8ad914..57a579a 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2242,8 +2242,21 @@ namespace OpenSim.Region.ScriptEngine.Common
2242 public string llGetInventoryKey(string name) 2242 public string llGetInventoryKey(string name)
2243 { 2243 {
2244 m_host.AddScriptLPS(1); 2244 m_host.AddScriptLPS(1);
2245 NotImplemented("llGetInventoryKey"); 2245 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
2246 return String.Empty; 2246 {
2247 if(inv.Value.Name == name)
2248 {
2249 if((inv.Value.OwnerMask & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify))
2250 {
2251 return inv.Value.AssetID.ToString();
2252 }
2253 else
2254 {
2255 return LLUUID.Zero.ToString();
2256 }
2257 }
2258 }
2259 return LLUUID.Zero.ToString();
2247 } 2260 }
2248 2261
2249 public void llAllowInventoryDrop(int add) 2262 public void llAllowInventoryDrop(int add)