sendGMCP([[Core.Supports.Add ["IRE.Target 1"] ]]) sendGMCP([[Core.Supports.Add ["Comm.Channel 1"] ]])The script itself which drives everything is:
local EMCO = require("MDK-1.EMCO") emcoContainer = emcoContainer or Adjustable.Container:new({name = "EMCOCon"}) chatEMCO = EMCO:new({ name = "Chatbox", x = 0, y = 0, height = "100%", width = "100%", consoles = { "All", "CT", "CGT", "Tells", "Misc", "Map" }, allTab = true, allTabName = "All", mapTab = true, mapTabName = "Map", blankLine = true, blink = true, timestamp = true, fontSize = 12, commandLine = true, cmdActions = { CT = "ct |t", CGT = function(txt) send("cgt " .. txt) end, }, backgroundImages = { CT = { image = "/home/demonnic/Pictures/i-am-the-mud-client-now.png", --edit for your own image mode = "center" } } }, emcoContainer) local function chatCapture() local info = gmcp.Comm.Channel.Text if info.channel:starts("tell ") then info.channel = "Tells" elseif not table.contains(chatEMCO.consoles, info.channel:upper()) then debugc("GMCP channel that isn't in console list: " .. info.channel) info.channel = "Misc" else info.channel = info.channel:upper() end local txt = ansi2decho(info.text) chatEMCO:decho(info.channel,txt) end if chatCaptureEventID then killAnonymousEventHandler(chatCaptureEventID) end chatCaptureEventID = registerAnonymousEventHandler("gmcp.Comm.Channel.Text", chatCapture)
(Ironhart Collective): Ashira says, "I'm pretty much the only dwarf around these days..."
(Ironhart Collective): Jolanthe says, "You might say that racial demographic is quite... dwarved by the others."
(Ironhart Collective): Celaphaeia says, "I would like a new alliance, please."
(Ironhart Collective): Eritheyl says, "Targeting Jolanthe."
(Ironhart Collective): You say, "No targeting Jolanthe!"
(Ironhart Collective): Llani says, "They always seem to come up short."
(Ironhart Collective): You say, "...Nn."
(Ironhart Collective): Lysandus says, "Oh boy."
(Ironhart Collective): Sutekh says, "Celaphaeia prefers the *new* clan...goru, it seems."
Gurashi,
Who you are friends with, especially a contemptible bug one is not my
concern or really worth the dirt on my boot as a reason for entry.
That said, your request seems harmless enough. Your access within the
borders of the Engine of Transformation is granted for 15 months with a
few basic stipulations. Keep your buggy buffoonery away from the
Megalith of Doom or other public spaces. There is to be no gnawing on or
otherwise disturbing city property. Beyond that, common sense applies to
respect from a visitor.
-- Kalas @Zagreus, Minister of Security