OSRS Plugin API
    Preparing search index...

    Enumeration ON_NPC_UNLOAD

    Event id for NPC unloading on the client. Calls the OnNpcLoadUnloadCallback.

    -- Create a function
    local npcUnload = function(name, ID)
    osrs.printf("NPC %s unloaded in, has ID: %i", name, ID)
    end
    -- Subscribe to the function
    osrs.Events.subscribe(npcUnload, osrs.Events.ON_NPC_UNLOAD)