aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorPixel Tomsen2012-01-25 21:31:18 +0100
committerBlueWall2012-01-25 15:48:38 -0500
commit8f53c768f53478ff3e0c27198b257bb27be16259 (patch)
tree014d6d93de40b6e2049d77dfba305d696c4ca12d /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC-8f53c768f53478ff3e0c27198b257bb27be16259.zip
opensim-SC-8f53c768f53478ff3e0c27198b257bb27be16259.tar.gz
opensim-SC-8f53c768f53478ff3e0c27198b257bb27be16259.tar.bz2
opensim-SC-8f53c768f53478ff3e0c27198b257bb27be16259.tar.xz
llGetParcelMusicURL implementation http://wiki.secondlife.com/wiki/LlGetParcelMusicURL
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index fb930e0..330c65d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7566,6 +7566,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7566 ScriptSleep(2000); 7566 ScriptSleep(2000);
7567 } 7567 }
7568 7568
7569 public LSL_String llGetParcelMusicURL()
7570 {
7571 m_host.AddScriptLPS(1);
7572
7573 ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y);
7574
7575 if (land.LandData.OwnerID != m_host.OwnerID)
7576 return String.Empty;
7577
7578 return land.GetMusicUrl();
7579 }
7580
7569 public LSL_Vector llGetRootPosition() 7581 public LSL_Vector llGetRootPosition()
7570 { 7582 {
7571 m_host.AddScriptLPS(1); 7583 m_host.AddScriptLPS(1);