From e5db6a75d02cf057dad316f5707f69fcbfbb0b1a Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 26 Sep 2008 17:59:36 +0000 Subject: Finishing the code cleanup in DNE, make llDie work again in DNE. Add some compile messages from XEngine into DNE as well. --- OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/XEngine') diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 3a06462..0448030 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -356,6 +356,31 @@ namespace OpenSim.Region.ScriptEngine.XEngine engine = engineName; script = "//" + script.Substring(script.IndexOf(':')+1); } + else + { + if (engine == ScriptEngineName) + { + SceneObjectPart part = + m_Scene.GetSceneObjectPart( + localID); + + TaskInventoryItem item = + part.GetInventoryItem(itemID); + + ScenePresence presence = + m_Scene.GetScenePresence( + item.OwnerID); + + if (presence != null) + { + presence.ControllingClient.SendAgentAlertMessage( + "Selected engine unavailable. "+ + "Running script on "+ + ScriptEngineName, + false); + } + } + } } } -- cgit v1.1