From 664e8a464e4608afeb590a3330ccc69e7988138b Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 9 Nov 2008 19:30:40 +0000 Subject: Script region crossing. This has not user functionality, but lays all the groundwork. --- .../Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 30f03ac..08a97f07 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs @@ -286,6 +286,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance PostEvent(new EventParams("changed", new Object[] {new LSL_Types.LSLInteger(256)}, new DetectParams[0])); } + else if (stateSource == StateSource.PrimCrossing) + { + // CHANGED_REGION + PostEvent(new EventParams("changed", + new Object[] {new LSL_Types.LSLInteger(512)}, new DetectParams[0])); + } } } else @@ -313,6 +319,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance } else { + ScenePresence presence = m_Engine.World.GetScenePresence(part.OwnerID); + + if (presence != null && (!postOnRez)) + presence.ControllingClient.SendAgentAlertMessage("Compile successful", false); + // m_Engine.Log.ErrorFormat("[Script] Unable to load script state, file not found"); Start(); PostEvent(new EventParams("state_entry", @@ -856,8 +867,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance public string GetXMLState() { + bool run = Running; Stop(100); + Running = run; return ScriptSerializer.Serialize(this); + Running = false; } } } -- cgit v1.1