OSRS Plugin API
    Preparing search index...

    Enumeration ON_STOCK_TRANSMIT

    Event id for any stock offers being updated. Calls the OnStockTransmitCallback.

    -- Create a function
    local stockTransmit = function(stockTable)
    for index, slot in pairs(stockTable) do
    osrs.print("Stock slot changed: " .. tostring(slot))
    end
    end
    -- Subscribe to the function
    osrs.Events.subscribe(stockTransmit, osrs.Events.ON_STOCK_TRANSMIT)