From 307f26e80e7d14a49fe0cf766849fb9bd81b1c5f Mon Sep 17 00:00:00 2001
From: Charles Krinke
Date: Mon, 29 Sep 2008 20:24:59 +0000
Subject: Mantis#2299. Thank you kindly, Idb for a patch that: OS/SL script
conformance, implement llSoundPreload and llRemoteLoadScript to behave as in
SL. In SL llSoundPreload appears to do nothing. In OS llRemoteLoadScript
shouts an error when invoked "Deprecated. Please use llRemoteLoadScriptPin
instead."
---
.../Shared/Api/Implementation/LSL_Api.cs | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 540ff98..7c19ad7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -134,6 +134,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_ScriptEngine.SetState(m_itemID, newState);
}
+ ///
+ /// Reset the named script. The script must be present
+ /// in the same prim.
+ ///
public void llResetScript()
{
m_host.AddScriptLPS(1);
@@ -2616,10 +2620,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
NotImplemented("llMinEventDelay");
}
- public void llSoundPreload()
+ ///
+ /// llSoundPreload is deprecated. In SL this appears to do absolutely nothing
+ /// and is documented to have no delay.
+ ///
+ public void llSoundPreload(string sound)
{
m_host.AddScriptLPS(1);
- Deprecated("llSoundPreload");
}
public void llRotLookAt(LSL_Rotation target, double strength, double damping)
@@ -5356,14 +5363,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
///
- /// Reset the named script. The script must be present
- /// in the same prim.
+ /// This is a depecated function so this just replicates the result of
+ /// invoking it in SL
///
- public void llRemoteLoadScript()
+ public void llRemoteLoadScript(string target, string name, int running, int start_param)
{
m_host.AddScriptLPS(1);
- Deprecated("llRemoteLoadScript");
+ // Report an error as it does in SL
+ ShoutError("Deprecated. Please use llRemoteLoadScriptPin instead.");
// ScriptSleep(3000);
}
--
cgit v1.1