diff options
author | Melanie | 2012-01-26 00:21:21 +0000 |
---|---|---|
committer | Melanie | 2012-01-26 00:21:21 +0000 |
commit | 4ce42762ee2a8ae323b6a1d118bb4b9b0f447caf (patch) | |
tree | 6173c8da92084547e89db40e5762a74249b4a8db /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Typo fix (diff) | |
parent | refactor: change RezScriptFromAgentInventory(), RezNewScript() and AddInvento... (diff) | |
download | opensim-SC_OLD-4ce42762ee2a8ae323b6a1d118bb4b9b0f447caf.zip opensim-SC_OLD-4ce42762ee2a8ae323b6a1d118bb4b9b0f447caf.tar.gz opensim-SC_OLD-4ce42762ee2a8ae323b6a1d118bb4b9b0f447caf.tar.bz2 opensim-SC_OLD-4ce42762ee2a8ae323b6a1d118bb4b9b0f447caf.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index fda4772..23e3e15 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7003,7 +7003,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7003 | if ((scriptItem.BasePermissions & (uint)PermissionMask.Transfer) != 0 || dest.ParentGroup.RootPart.OwnerID == m_host.ParentGroup.RootPart.OwnerID) | 7003 | if ((scriptItem.BasePermissions & (uint)PermissionMask.Transfer) != 0 || dest.ParentGroup.RootPart.OwnerID == m_host.ParentGroup.RootPart.OwnerID) |
7004 | { | 7004 | { |
7005 | // the rest of the permission checks are done in RezScript, so check the pin there as well | 7005 | // the rest of the permission checks are done in RezScript, so check the pin there as well |
7006 | World.RezScript(srcId, m_host, destId, pin, running, start_param); | 7006 | World.RezScriptFromPrim(srcId, m_host, destId, pin, running, start_param); |
7007 | 7007 | ||
7008 | if ((scriptItem.BasePermissions & (uint)PermissionMask.Copy) == 0) | 7008 | if ((scriptItem.BasePermissions & (uint)PermissionMask.Copy) == 0) |
7009 | m_host.Inventory.RemoveInventoryItem(srcId); | 7009 | m_host.Inventory.RemoveInventoryItem(srcId); |
@@ -8065,6 +8065,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
8065 | ScriptSleep(2000); | 8065 | ScriptSleep(2000); |
8066 | } | 8066 | } |
8067 | 8067 | ||
8068 | public LSL_String llGetParcelMusicURL() | ||
8069 | { | ||
8070 | m_host.AddScriptLPS(1); | ||
8071 | |||
8072 | ILandObject land = World.LandChannel.GetLandObject(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y); | ||
8073 | |||
8074 | if (land.LandData.OwnerID != m_host.OwnerID) | ||
8075 | return String.Empty; | ||
8076 | |||
8077 | return land.GetMusicUrl(); | ||
8078 | } | ||
8079 | |||
8068 | public LSL_Vector llGetRootPosition() | 8080 | public LSL_Vector llGetRootPosition() |
8069 | { | 8081 | { |
8070 | m_host.AddScriptLPS(1); | 8082 | m_host.AddScriptLPS(1); |