diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs index b3df390..b95321f 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/Compiler/LSL/LSL_BaseClass.cs | |||
@@ -9,6 +9,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
9 | { | 9 | { |
10 | public string State = "default"; | 10 | public string State = "default"; |
11 | internal OpenSim.Region.Environment.Scenes.Scene World; | 11 | internal OpenSim.Region.Environment.Scenes.Scene World; |
12 | private System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); | ||
13 | |||
12 | 14 | ||
13 | public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID) | 15 | public void Start(OpenSim.Region.Environment.Scenes.Scene _World, string FullScriptID) |
14 | { | 16 | { |
@@ -51,6 +53,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
51 | { | 53 | { |
52 | //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");"); | 54 | //Common.SendToDebug("INTERNAL FUNCTION llWhisper(" + channelID + ", \"" + text + "\");"); |
53 | Console.WriteLine("llWhisper Channel " + channelID + ", Text: \"" + text + "\""); | 55 | Console.WriteLine("llWhisper Channel " + channelID + ", Text: \"" + text + "\""); |
56 | //type for whisper is 0 | ||
57 | //World.SimChat(enc.GetBytes(text), 0, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)], MY_OBJECT_NAME, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)]); | ||
58 | |||
54 | } | 59 | } |
55 | //public void llSay(UInt32 channelID, string text) | 60 | //public void llSay(UInt32 channelID, string text) |
56 | public void llSay(int channelID, string text) | 61 | public void llSay(int channelID, string text) |
@@ -58,9 +63,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine.Compiler.LSL | |||
58 | //TODO: DO SOMETHING USEFUL HERE | 63 | //TODO: DO SOMETHING USEFUL HERE |
59 | //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); | 64 | //Common.SendToDebug("INTERNAL FUNCTION llSay(" + (UInt32)channelID + ", \"" + (string)text + "\");"); |
60 | Console.WriteLine("llSay Channel " + channelID + ", Text: \"" + text + "\""); | 65 | Console.WriteLine("llSay Channel " + channelID + ", Text: \"" + text + "\""); |
61 | //World.SimChat( | 66 | //type for say is 1 |
67 | //World.SimChat(enc.GetBytes(text), 1, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)], MY_OBJECT_NAME, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)]); | ||
68 | } | ||
69 | public void llShout(UInt16 channelID, string text) { | ||
70 | Console.WriteLine("llShout Channel " + channelID + ", Text: \"" + text + "\""); | ||
71 | //type for shout is 2 | ||
72 | //World.SimChat(enc.GetBytes(text), 2, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)], MY_OBJECT_NAME, World.Objects[World.ConvertLocalIDToFullID(MY_OBJECT_ID)]); | ||
73 | |||
62 | } | 74 | } |
63 | public void llShout(UInt16 channelID, string text) { return; } | ||
64 | public UInt32 llListen(UInt16 channelID, string name, string ID, string msg) { return 0; } | 75 | public UInt32 llListen(UInt16 channelID, string name, string ID, string msg) { return 0; } |
65 | public void llListenControl(UInt32 number, UInt32 active) { return; } | 76 | public void llListenControl(UInt32 number, UInt32 active) { return; } |
66 | public void llListenRemove(UInt32 number) { return; } | 77 | public void llListenRemove(UInt32 number) { return; } |