OSRS Plugin API
    Preparing search index...

    Function npcCreationCycle

    • Gets the unique server creation cycle for the npc, used as unique identifiers in functions like ClientOp.highlightNpcOn

      Parameters

      • npcId: number

        id of the npc.

      Returns number

      the server creation cycle.

      idList = osrs.ClientOp.getNpcIdAll()
      for index, id in pairs(idList) do
      osrs.ClientOp.highlightNpcOn(id, osrs.ClientOp.npcCreationCycle(id), 6);
      end