diff options
author | Melanie Thielker | 2008-09-23 11:41:34 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-09-23 11:41:34 +0000 |
commit | 44e566260c9da5ff62c448cfdd67063c7a486126 (patch) | |
tree | 64b9c963872c986317132adc5d4fe0978ad25b64 /OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | |
parent | Small fix to eliminate a beauty spot (diff) | |
download | opensim-SC-44e566260c9da5ff62c448cfdd67063c7a486126.zip opensim-SC-44e566260c9da5ff62c448cfdd67063c7a486126.tar.gz opensim-SC-44e566260c9da5ff62c448cfdd67063c7a486126.tar.bz2 opensim-SC-44e566260c9da5ff62c448cfdd67063c7a486126.tar.xz |
Mantis #2243
Thank you, tyre, for a patch that refactors LSL to use a unified set of
method signatures and type names, reorders methods and removes unused
and adds new method stubs.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs index 264a586..c9551ae 100644 --- a/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs | |||
@@ -580,6 +580,24 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
580 | } | 580 | } |
581 | } | 581 | } |
582 | 582 | ||
583 | public void osSetParcelMediaURL(string url) | ||
584 | { | ||
585 | m_host.AddScriptLPS(1); | ||
586 | UUID landowner = World.GetLandOwner(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); | ||
587 | |||
588 | if (landowner == UUID.Zero) | ||
589 | { | ||
590 | return; | ||
591 | } | ||
592 | |||
593 | if (landowner != m_host.ObjectOwner) | ||
594 | { | ||
595 | return; | ||
596 | } | ||
597 | |||
598 | World.SetLandMediaURL(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y, url); | ||
599 | } | ||
600 | |||
583 | public string osGetScriptEngineName() | 601 | public string osGetScriptEngineName() |
584 | { | 602 | { |
585 | m_host.AddScriptLPS(1); | 603 | m_host.AddScriptLPS(1); |