mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
mantis 8577: add key osGetInventoryItemKey(string name) to get a inventory item ID within prim inventory. the llGetInventory does return the asset it, not item.
This commit is contained in:
@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
public partial class ScriptBaseClass
|
||||
{
|
||||
// SCRIPTS CONSTANTS
|
||||
public static readonly LSLInteger OS_APIVERSION = 5;
|
||||
public static readonly LSLInteger OS_APIVERSION = 6;
|
||||
|
||||
public static readonly LSLInteger TRUE = 1;
|
||||
public static readonly LSLInteger FALSE = 0;
|
||||
|
||||
@@ -1382,6 +1382,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_OSSL_Functions.osGetInventoryLastOwner(itemNameOrId);
|
||||
}
|
||||
|
||||
public LSL_Key osGetInventoryItemKey(LSL_String name)
|
||||
{
|
||||
return m_OSSL_Functions.osGetInventoryItemKey(name);
|
||||
}
|
||||
|
||||
public LSL_String osGetInventoryName(LSL_Key itemId)
|
||||
{
|
||||
return m_OSSL_Functions.osGetInventoryName(itemId);
|
||||
|
||||
Reference in New Issue
Block a user