From 6b4b041902627d9d16f28847b1db7f369b931006 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 7 Jan 2008 03:02:13 +0000 Subject: Refactor Scene.Inventory.RezScript to use newer script starting code --- .../Scenes/SceneObjectGroup.Inventory.cs | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs index 50e3fa7..1d382fa 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs @@ -37,7 +37,29 @@ using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes { public partial class SceneObjectGroup : EntityBase - { + { + /// + /// Start a given script. + /// + /// + /// A + /// + public void StartScript(uint localID, LLUUID itemID) + { + SceneObjectPart part = GetChildPart(localID); + if (part != null) + { + part.StartScript(itemID); + } + else + { + MainLog.Instance.Error( + "PRIMINVENTORY", + "Couldn't find part {0} in object group {1}, {2} to start script with ID {3}", + localID, Name, UUID, itemID); + } + } + /// /// Start the scripts contained in all the prims in this group. /// @@ -63,8 +85,8 @@ namespace OpenSim.Region.Environment.Scenes } else { - MainLog.Instance.Warn( - "SCENE", + MainLog.Instance.Error( + "PRIMINVENTORY", "Couldn't find part {0} in object group {1}, {2} to retreive prim inventory", localID, Name, UUID); } @@ -80,7 +102,7 @@ namespace OpenSim.Region.Environment.Scenes } else { - MainLog.Instance.Warn( + MainLog.Instance.Error( "PRIMINVENTORY", "Couldn't find part {0} in object group {1}, {2} to request inventory data", localID, Name, UUID); -- cgit v1.1