This is an old revision of the document!


Chat Capture Window Mudlet Script

  1. Open the “scripts” setting page and create a new one.
  2. Give it a name, like “Chat Capture Window”
  3. In “Registered Event Handlers” enter :
    sysConnectionEvent
  4. Copy in the following source code to the text area.
    function make_chat_window()
      chat_window = Geyser.UserWindow:new({
        name = "chat_window",
        titleText = "CHATS",
        docked = true,
        height = "5c",
        dockPosition = "top",
      })
      chat_window:setFontSize(getFontSize())
      return 1
    end
    
    make_chat_window()
  5. Your scripts setting pages should now look exactly like this:
  6. Open the “triggers” setting page and create a new one.
  7. Give it a name like “Chat Capture”.
  8. In the first pattern, enter a channel name as it appears in game:
    [chat]
  9. Leave everything else empty.
  10. Copy in the following code to the textarea:
      if(chat_window)
      then
        selectCurrentLine()
        copy()
        chat_window:appendBuffer()
      end
  11. Your triggers settings page should now look exactly like this:
  12. You may need to reconnect to the MUD to get the window to appear.
  13. Add other patterns to the trigger for other channels as desired.