mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
add llGetInventoryAcquireTime
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
@@ -12810,6 +12810,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return item.CreatorID.ToString();
|
||||
}
|
||||
|
||||
public LSL_String llGetInventoryAcquireTime(string itemName)
|
||||
{
|
||||
|
||||
TaskInventoryItem item = m_host.Inventory.GetInventoryItem(itemName);
|
||||
|
||||
if (item == null)
|
||||
{
|
||||
Error("llGetInventoryAcquireTime", "Can't find item '" + item + "'");
|
||||
return String.Empty;
|
||||
}
|
||||
|
||||
DateTime date = new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(item.CreationDate);
|
||||
return date.ToString("yyyy-MM-ddTHH:mm:ssZ");
|
||||
}
|
||||
|
||||
public void llOwnerSay(string msg)
|
||||
{
|
||||
if(m_host.OwnerID.Equals(m_host.GroupID))
|
||||
|
||||
@@ -144,6 +144,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
LSL_Vector llGetGeometricCenter();
|
||||
LSL_Float llGetGMTclock();
|
||||
LSL_String llGetHTTPHeader(LSL_Key request_id, string header);
|
||||
LSL_String llGetInventoryAcquireTime(string item);
|
||||
LSL_Key llGetInventoryCreator(string item);
|
||||
LSL_Key llGetInventoryKey(string name);
|
||||
LSL_String llGetInventoryName(int type, int number);
|
||||
|
||||
@@ -518,6 +518,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
return m_LSL_Functions.llGetHTTPHeader(request_id, header);
|
||||
}
|
||||
|
||||
public LSL_String llGetInventoryAcquireTime(string item)
|
||||
{
|
||||
return m_LSL_Functions.llGetInventoryAcquireTime(item);
|
||||
}
|
||||
|
||||
public LSL_Key llGetInventoryCreator(string item)
|
||||
{
|
||||
return m_LSL_Functions.llGetInventoryCreator(item);
|
||||
|
||||
Reference in New Issue
Block a user