OSRS Plugin API
    Preparing search index...

    Enumeration ON_NPC_OP

    Event id for taking an action on an NPC (either from click or minimenu) Calls the OnNpcOpCallback.

    -- Create a function
    local npcOp = function(action, objID, npcID)
    osrs.printf("Used Action: %s with Object: %i on NPC: %i", action, objID, npcID)
    end
    -- Subscribe to the function
    osrs.Events.subscribe(npcOp, osrs.Events.ON_NPC_OP)