Thank you, Melanie, very kindly for a patch that :
Implements llGetInventoryKey with perms checking. Adds perms checking to llGetTexture, adds type checking to llStartSound, allows llSetTexture to reference textures by name0.6.0-stable
parent
dd4deebbcb
commit
ea8b6a28ed
|
@ -2242,8 +2242,21 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
public string llGetInventoryKey(string name)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
NotImplemented("llGetInventoryKey");
|
||||
return String.Empty;
|
||||
foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
|
||||
{
|
||||
if(inv.Value.Name == name)
|
||||
{
|
||||
if((inv.Value.OwnerMask & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify))
|
||||
{
|
||||
return inv.Value.AssetID.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
return LLUUID.Zero.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
return LLUUID.Zero.ToString();
|
||||
}
|
||||
|
||||
public void llAllowInventoryDrop(int add)
|
||||
|
|
Loading…
Reference in New Issue