I just started to experiment with the great chat that mush has, but I cant figure out how to append the incomming\outgoing messages to a notepad window using Lua.
Please help me...
\Surakai
Please help me...
\Surakai
This forum is a read-only archive of the Gammon Software forum (2000–2026). No new posts can be made. Search the archive.
Posted by Imperian_Addict on Sat 17 Dec 2005 06:13 PM — 4 posts, 16,659 views.
function OnPluginChatDisplay (message, sText)
--
-- We will take normal incoming and outgoing chats and emotes, and
-- display them in a notepad window, and omit them from the main window
--
if message >= 4 and message <= 9 then
AppendToNotepad ("Chats",
Replace (StripANSI (sText), "\n", "\r\n"), "\r\n")
return false
end -- if
return true -- display it
end -- function