diff options
Added OnRezScript event to Scene.EventManager.Which the script engine should subscribe to. This is triggered whenever a script is moved into a primitive (and includes the localid of the prim and the script text as params) . Currently though the script item isn't deleted from a users inventory, nor does it actually show up in the objects inventory (this will be fixed soon.) So that means that it isn't currently possible to edit a script (or delete it) once it has been added to a primitive.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 592254a..579b824 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -472,6 +472,11 @@ namespace OpenSim.Region.ClientStack | |||
472 | break; | 472 | break; |
473 | case PacketType.RezScript: | 473 | case PacketType.RezScript: |
474 | //Console.WriteLine(Pack.ToString()); | 474 | //Console.WriteLine(Pack.ToString()); |
475 | RezScriptPacket rezScript = (RezScriptPacket)Pack; | ||
476 | if (OnRezScript != null) | ||
477 | { | ||
478 | OnRezScript(this, rezScript.InventoryBlock.ItemID, rezScript.UpdateBlock.ObjectLocalID); | ||
479 | } | ||
475 | break; | 480 | break; |
476 | case PacketType.MapLayerRequest: | 481 | case PacketType.MapLayerRequest: |
477 | this.RequestMapLayer(); | 482 | this.RequestMapLayer(); |