Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a script in a primitive is deleted.

This commit is contained in:
MW
2007-08-22 18:36:47 +00:00
parent 5a86fd2c31
commit 47c6d8ae8f
10 changed files with 73 additions and 2 deletions

View File

@@ -422,10 +422,28 @@ namespace OpenSim.Region.Environment.Scenes
this.m_inventorySerial++;
}
public void RemoveInventoryItem()
public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID)
{
if (localID == this.LocalID)
{
if (this.TaskInventory.ContainsKey(itemID))
{
string type = TaskInventory[itemID].inv_type;
this.TaskInventory.Remove(itemID);
this.m_inventorySerial++;
if (type == "lsltext")
{
return 10;
}
else
{
return 0;
}
}
}
return -1;
}
/// <summary>
///
/// </summary>