aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs33
1 files changed, 16 insertions, 17 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index c00254d..04f8967 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -34,13 +34,12 @@ using System.Threading;
34using Axiom.Math; 34using Axiom.Math;
35using libsecondlife; 35using libsecondlife;
36using OpenSim.Framework; 36using OpenSim.Framework;
37using OpenSim.Framework.Communications; 37using OpenSim.Region.Environment;
38using OpenSim.Region.Environment.Interfaces; 38using OpenSim.Region.Environment.Interfaces;
39using OpenSim.Region.Environment.Modules.LandManagement;
39using OpenSim.Region.Environment.Scenes; 40using OpenSim.Region.Environment.Scenes;
40using OpenSim.Region.ScriptEngine.Common;
41using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; 41using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase;
42using OpenSim.Region.Environment; 42
43using OpenSim.Region.Environment.Modules.LandManagement;
44//using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL; 43//using OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL;
45 44
46namespace OpenSim.Region.ScriptEngine.Common 45namespace OpenSim.Region.ScriptEngine.Common
@@ -86,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Common
86 } 85 }
87 catch (AppDomainUnloadedException) 86 catch (AppDomainUnloadedException)
88 { 87 {
89 System.Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance"); 88 Console.WriteLine("[SCRIPT]: state change called when script was unloaded. Nothing to worry about, but noting the occurance");
90 } 89 }
91 } 90 }
92 } 91 }
@@ -1677,10 +1676,10 @@ namespace OpenSim.Region.ScriptEngine.Common
1677 //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID); 1676 //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID);
1678 1677
1679 GridInstantMessage msg = new GridInstantMessage(); 1678 GridInstantMessage msg = new GridInstantMessage();
1680 msg.fromAgentID = new System.Guid(m_host.UUID.ToString()); // fromAgentID.UUID; 1679 msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.UUID;
1681 msg.fromAgentSession = new System.Guid(friendTransactionID.ToString());// fromAgentSession.UUID; 1680 msg.fromAgentSession = new Guid(friendTransactionID.ToString());// fromAgentSession.UUID;
1682 msg.toAgentID = new System.Guid(user); // toAgentID.UUID; 1681 msg.toAgentID = new Guid(user); // toAgentID.UUID;
1683 msg.imSessionID = new System.Guid(friendTransactionID.ToString()); // This is the item we're mucking with here 1682 msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here
1684 Console.WriteLine("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); 1683 Console.WriteLine("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message);
1685 Console.WriteLine("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); 1684 Console.WriteLine("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString());
1686 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; 1685 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp;
@@ -2654,7 +2653,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2654 { 2653 {
2655 return new LSL_Types.Vector3(0, 0, 0); 2654 return new LSL_Types.Vector3(0, 0, 0);
2656 } 2655 }
2657 if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3)) 2656 if (src.Data[index].GetType() == typeof(LSL_Types.Vector3))
2658 { 2657 {
2659 return (LSL_Types.Vector3)src.Data[index]; 2658 return (LSL_Types.Vector3)src.Data[index];
2660 } 2659 }
@@ -2675,7 +2674,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2675 { 2674 {
2676 return new LSL_Types.Quaternion(0, 0, 0, 1); 2675 return new LSL_Types.Quaternion(0, 0, 0, 1);
2677 } 2676 }
2678 if (src.Data[index].GetType() == typeof(OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion)) 2677 if (src.Data[index].GetType() == typeof(LSL_Types.Quaternion))
2679 { 2678 {
2680 return (LSL_Types.Quaternion)src.Data[index]; 2679 return (LSL_Types.Quaternion)src.Data[index];
2681 } 2680 }
@@ -2713,11 +2712,11 @@ namespace OpenSim.Region.ScriptEngine.Common
2713 return 0; 2712 return 0;
2714 } 2713 }
2715 2714
2716 if (src.Data[index] is System.Int32) 2715 if (src.Data[index] is Int32)
2717 return 1; 2716 return 1;
2718 if (src.Data[index] is System.Double) 2717 if (src.Data[index] is Double)
2719 return 2; 2718 return 2;
2720 if (src.Data[index] is System.String) 2719 if (src.Data[index] is String)
2721 { 2720 {
2722 LLUUID tuuid; 2721 LLUUID tuuid;
2723 if (LLUUID.TryParse(src.Data[index].ToString(), out tuuid)) 2722 if (LLUUID.TryParse(src.Data[index].ToString(), out tuuid))
@@ -2729,11 +2728,11 @@ namespace OpenSim.Region.ScriptEngine.Common
2729 return 4; 2728 return 4;
2730 } 2729 }
2731 } 2730 }
2732 if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Vector3) 2731 if (src.Data[index] is LSL_Types.Vector3)
2733 return 5; 2732 return 5;
2734 if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.Quaternion) 2733 if (src.Data[index] is LSL_Types.Quaternion)
2735 return 6; 2734 return 6;
2736 if (src.Data[index] is OpenSim.Region.ScriptEngine.Common.LSL_Types.list) 2735 if (src.Data[index] is LSL_Types.list)
2737 return 7; 2736 return 7;
2738 return 0; 2737 return 0;
2739 2738