aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 9a1b652..029abf6 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -40,6 +40,7 @@ using OpenSim.Region.Environment.Scenes;
40using OpenSim.Region.ScriptEngine.Common; 40using OpenSim.Region.ScriptEngine.Common;
41using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; 41using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase;
42using OpenSim.Region.Environment; 42using OpenSim.Region.Environment;
43using OpenSim.Region.Environment.Modules.LandManagement;
43//using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; 44//using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL;
44 45
45namespace OpenSim.Region.ScriptEngine.Common 46namespace OpenSim.Region.ScriptEngine.Common
@@ -4517,8 +4518,17 @@ namespace OpenSim.Region.ScriptEngine.Common
4517 public LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos) 4518 public LSL_Types.list llGetParcelPrimOwners(LSL_Types.Vector3 pos)
4518 { 4519 {
4519 m_host.AddScriptLPS(1); 4520 m_host.AddScriptLPS(1);
4520 NotImplemented("llGetParcelPrimOwners"); 4521 LandObject land = (LandObject)World.LandChannel.getLandObject((float)pos.x, (float)pos.y);
4521 return new LSL_Types.list(); 4522 LSL_Types.list ret = new LSL_Types.list();
4523 if (land != null)
4524 {
4525 foreach (KeyValuePair<LLUUID, int> d in land.getLandObjectOwners())
4526 {
4527 ret.Add(d.Key.ToString());
4528 ret.Add(d.Value);
4529 }
4530 }
4531 return ret;
4522 } 4532 }
4523 4533
4524 public int llGetObjectPrimCount(string object_id) 4534 public int llGetObjectPrimCount(string object_id)