OSRS Plugin API
    Preparing search index...

    Type Alias OnNpcLoadUnloadCallback

    OnNpcLoadUnloadCallback: (npcDisplayName: string, npcId: number) => void

    The callback for Events.ON_NPC_LOAD and Events.ON_NPC_UNLOAD events.

    Type Declaration

      • (npcDisplayName: string, npcId: number): void
      • Parameters

        • npcDisplayName: string

          The display name of the NPC

        • npcId: number

          The id of the NPC that was just loaded or unloaded from the client.

        Returns void