sendGMCP([[Core.Supports.Add ["Comm.Channel 1"] ]])
[/spoiler]
function chat_capture()
local ch = gmcp.Comm.Channel.Start if not chat_channels then check_channels() end
chat_channels.last = "Misc" for c, t in pairs(chat_channels.types) do if ch:find(c) then
chat_channels.last = t break
end end
enableTrigger("Chat Processor") end
function check_channels()
chat_channels = chat_channels or {}
chat_channels.last = chat_channels.last or ""
chat_channels.types = {
["newbie"] = "Misc", ["market"] = "Misc",
["ct"] = "Orgs", ["ht"] = "Orgs",
["hts"] = "Orgs", ["hnt"] = "Orgs",
["clt"] = "Tells", ["Party"] = "Tells",
["tell"] = "Tells", ["says"] = "Says",
["ot"] = "Misc" }
end
The above table here should be reflected to how you want the messages to be processed. Change the values between the quotation marks to match your needs. (The names should be the same that appear on your chat capture)
[/spoiler]
function chat_processed()
disableTrigger("Chat Processor")
end
[/spoiler]
Finally: Download and import the trigger which is included in this post. The function you need to change will be located within the 'Chat Parser' trigger.
agui_process_chat(chat_channels.last)The above is the line specifically, that you'll have to change. For those who use demonnic (the original tabbed chat), change the line to
demonnic.chat:append(chat_channels.last)
Comments
You can add whatever you want to this, and it'll simply not process any line that has the above things within the first match (The part which captures WHO is saying the line, not the words which are spoken)In hindsight, I probably should've mentioned that.
You'll also need to add the above function into scripts, for it to work properly (demonnic SHOULD have this by default, but the thing I'm going to post below won't have it)
Since I've been asked, and because I'm nice... Those of you using @Zulah's D3 GUI will need an additional function, since he uses a different way of copying.
Firstly, you'll have to adjust the table to reflect the actual miniconsoles themselves. For instance
etcetera.
Following that, where I said to change:
You'll want to instead make the trigger as follows.
Aaaaaand, for those using his other free GUI. You'll have to edit the tables as followsetcetera.
As for the trigger:
zGUI 4.0 - A Free GUI for Mudlet 4.10+
Do not DM on forums unless you're ok with waiting a couple months!
gmcp.Comm.Channel.Text.text
Says/sings etc show up on there, too. Basically anything that isn't an illusion/membrane/event denizen shouts (like tharos, his shouts don't show up in there)/some denizen yells
Artemis says, "You are so high maintenance, Tharvis, gosh."
Tecton says, "It's still your fault, Tharvis."
And... still getting this:
if not ignoret then
selectString(line,1)
copy()
_G[chat_channels.last]:appendBuffer()
allChat_1:appendBuffer()
end