aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.Inventory.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/Scene.Inventory.cs
parent(Untested) Scripts are individually loaded into objects (on rez), and event f... (diff)
downloadopensim-SC_OLD-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.zip
opensim-SC_OLD-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.gz
opensim-SC_OLD-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.bz2
opensim-SC_OLD-47c6d8ae8f85f07a16390f0130180a1b0521b6a1.tar.xz
Added OnRemoveScript(uint localID, LLUUID itemID) event , trigged when a script in a primitive is deleted.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.Inventory.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index fa1b865..9cbd65b 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -208,6 +208,26 @@ namespace OpenSim.Region.Environment.Scenes
208 } 208 }
209 } 209 }
210 210
211 public void RemoveTaskInventory(IClientAPI remoteClient, LLUUID itemID, uint localID)
212 {
213 bool hasPrim = false;
214 foreach (EntityBase ent in Entities.Values)
215 {
216 if (ent is SceneObjectGroup)
217 {
218 hasPrim = ((SceneObjectGroup)ent).HasChildPrim(localID);
219 if (hasPrim != false)
220 {
221 int type = ((SceneObjectGroup)ent).RemoveInventoryItem(remoteClient, localID, itemID);
222 if (type == 10)
223 {
224 this.EventManager.TriggerRemoveScript(localID, itemID);
225 }
226 }
227 }
228 }
229 }
230
211 public void RezScript(IClientAPI remoteClient, LLUUID itemID, uint localID) 231 public void RezScript(IClientAPI remoteClient, LLUUID itemID, uint localID)
212 { 232 {
213 CachedUserInfo userInfo = commsManager.UserProfiles.GetUserDetails(remoteClient.AgentId); 233 CachedUserInfo userInfo = commsManager.UserProfiles.GetUserDetails(remoteClient.AgentId);