aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorMW2007-08-22 18:36:47 +0000
committerMW2007-08-22 18:36:47 +0000
commit47c6d8ae8f85f07a16390f0130180a1b0521b6a1 (patch)
treef1aeac40c1f77eba0642ba35263cc76ed4c60c97 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
parent(Untested) Scripts are individually loaded into objects (on rez), and event f... (diff)
downloadopensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.zip
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.gz
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.bz2
opensim-SC-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.xz
Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a script in a primitive is deleted.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 8a59d88..567681a 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -422,10 +422,28 @@ namespace OpenSim.Region.Environment.Scenes
422 this.m_inventorySerial++; 422 this.m_inventorySerial++;
423 } 423 }
424 424
425 public void RemoveInventoryItem() 425 public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID)
426 { 426 {
427 427 if (localID == this.LocalID)
428 {
429 if (this.TaskInventory.ContainsKey(itemID))
430 {
431 string type = TaskInventory[itemID].inv_type;
432 this.TaskInventory.Remove(itemID);
433 this.m_inventorySerial++;
434 if (type == "lsltext")
435 {
436 return 10;
437 }
438 else
439 {
440 return 0;
441 }
442 }
443 }
444 return -1;
428 } 445 }
446
429 /// <summary> 447 /// <summary>
430 /// 448 ///
431 /// </summary> 449 /// </summary>