OSRS Plugin API
    Preparing search index...

    Enumeration ON_CHAT_TRANSMIT

    Event id for on sending or receiving chat messages, by NPCs or players. Calls the OnChatTransmitCallback.

    -- Create a function
    local chatTransmit = function(chatTable)
    for index, table in pairs(chatTable) do
    osrs.printf("Type: %i Tick: %i Message: %s Sender: %s", table["type"], table["tick"], table["message"], table["sender"])
    end
    end
    -- Subscribe to the function
    osrs.Events.subscribe(chatTransmit, osrs.Events.ON_CHAT_TRANSMIT)