aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/OSSL_BuilIn_Commands.cs18
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);