aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-17 02:23:48 +0000
committerTeravus Ovares2008-01-17 02:23:48 +0000
commitc2863df49d3bd1f4f7c2f4c17d897d9f66b36b26 (patch)
tree8d2c29d6623d9e5c61634e8f7a742858eee2a5db /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
parent* Fixed standing up so that you're at the new position of the prim if you mov... (diff)
downloadopensim-SC-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.zip
opensim-SC-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.gz
opensim-SC-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.bz2
opensim-SC-c2863df49d3bd1f4f7c2f4c17d897d9f66b36b26.tar.xz
* Added and implemented the LSL changed event.
* An example changed event syntax is at: http://opensimulator.org/wiki/Changed_Event_Example * You can use this to trigger actions in your script if someone sits on your object_rez * You can use this to figure out all of the CHANGED_ constants except for CHANGED_REGION, CHANGED_TELEPORT, and CHANGED_ALLOW_DROP
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index be2ddae..1a9e6c4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -203,6 +203,7 @@ namespace OpenSim.Region.Environment.Scenes
203 lock (m_taskInventory) 203 lock (m_taskInventory)
204 { 204 {
205 m_taskInventory.Add(item.ItemID, item); 205 m_taskInventory.Add(item.ItemID, item);
206 TriggerScriptChangedEvent(Changed.INVENTORY);
206 } 207 }
207 208
208 m_inventorySerial++; 209 m_inventorySerial++;
@@ -220,6 +221,7 @@ namespace OpenSim.Region.Environment.Scenes
220 foreach (TaskInventoryItem item in items) 221 foreach (TaskInventoryItem item in items)
221 { 222 {
222 m_taskInventory.Add(item.ItemID, item); 223 m_taskInventory.Add(item.ItemID, item);
224 TriggerScriptChangedEvent(Changed.INVENTORY);
223 } 225 }
224 } 226 }
225 227
@@ -265,7 +267,8 @@ namespace OpenSim.Region.Environment.Scenes
265 { 267 {
266 m_taskInventory[item.ItemID] = item; 268 m_taskInventory[item.ItemID] = item;
267 m_inventorySerial++; 269 m_inventorySerial++;
268 270 TriggerScriptChangedEvent(Changed.INVENTORY);
271
269 return true; 272 return true;
270 } 273 }
271 else 274 else
@@ -295,6 +298,7 @@ namespace OpenSim.Region.Environment.Scenes
295 int type = m_taskInventory[itemID].InvType; 298 int type = m_taskInventory[itemID].InvType;
296 m_taskInventory.Remove(itemID); 299 m_taskInventory.Remove(itemID);
297 m_inventorySerial++; 300 m_inventorySerial++;
301 TriggerScriptChangedEvent(Changed.INVENTORY);
298 302
299 return type; 303 return type;
300 } 304 }