OSRS Plugin API
    Preparing search index...

    Function highlightNpcTypeOn

    • Highlights all npcs of the specified type. If the npc type has already been highlighted with other channel ids, the channel with the smallest id that is also enabled will be the channel through which the highlight gets its properties from.

      Parameters

      • typeId: number

        The type of npc to highlight. Integer.

      • channelId: number

        The highlight channel to use [1-32]. If specified channel is not enabled the highlight will not be visible. Positive Integer.

      Returns void

      -- Highlights all types in the area
      idList = osrs.ClientOp.getNpcIdAll()
      for index, id in pairs(idList) do
      osrs.ClientOp.highlightNpcTypeOn(osrs.ClientOp.npcTypeId(id), 12)
      end