public DateTime llTextBox(string agent, string message, int chatChannel)
{
IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
if (dm == null)
return DateTime.Now;
if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return DateTime.Now;
UUID av = new UUID();
if (!UUID.TryParse(agent, out av))
{
LSLError("First parameter to llDialog needs to be a key");
return DateTime.Now;
}
if (message != null && message.Length > 1024)
message = message.Substring(0, 1024);
dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID);
return PScriptSleep(1000);
}