aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authoralondria2008-02-02 22:53:01 +0000
committeralondria2008-02-02 22:53:01 +0000
commit742ed9537df1cb45a0c57e38e4c0c0735fc92eca (patch)
treeda78e2838e34139dfc4aa8f4fa5e118136781b16 /OpenSim/Region/ScriptEngine
parentAdded llParseString2List (and a few extra methods to LSL_Types.list). (diff)
downloadopensim-SC_OLD-742ed9537df1cb45a0c57e38e4c0c0735fc92eca.zip
opensim-SC_OLD-742ed9537df1cb45a0c57e38e4c0c0735fc92eca.tar.gz
opensim-SC_OLD-742ed9537df1cb45a0c57e38e4c0c0735fc92eca.tar.bz2
opensim-SC_OLD-742ed9537df1cb45a0c57e38e4c0c0735fc92eca.tar.xz
Implements LSL function llDialog().
The ScriptDialogReply packet handler is a bit of a hack job. It is currently handled similar to ChatFromViewer, which will trigger the listen() event, however this is not exactly how LL's implementation works and will/can be fixed up later.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 8ef33d7..9d228fa 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2487,7 +2487,19 @@ namespace OpenSim.Region.ScriptEngine.Common
2487 2487
2488 public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel) 2488 public void llDialog(string avatar, string message, LSL_Types.list buttons, int chat_channel)
2489 { 2489 {
2490 NotImplemented("llDialog"); 2490 LLUUID av = new LLUUID();
2491 if (!LLUUID.TryParse(avatar,out av))
2492 {
2493 LSLError("First parameter to llDialog needs to be a key");
2494 return;
2495 }
2496 string[] buts = new string[buttons.Length];
2497 for(int i = 0; i < buttons.Length; i++)
2498 {
2499 buts[i] = buttons.Data[i].ToString();
2500 }
2501 World.SendDialogToUser(av, m_host.Name, m_host.UUID, m_host.OwnerID, message, new LLUUID("00000000-0000-2222-3333-100000001000"), chat_channel, buts);
2502 //NotImplemented("llDialog");
2491 } 2503 }
2492 2504
2493 public void llVolumeDetect(int detect) 2505 public void llVolumeDetect(int detect)