OSRS Plugin API
    Preparing search index...

    Function getStatBaseLevel

    • Returns the level calculated from XP of the specified stat. If stats were not transmitted yet, returns -1.

      Parameters

      • statId: number

        Id of the stat to query.

      Returns number

      Calculated actual level of the specified stat based on XP.

      osrs.printf("Base %s Level: %d", "Strength", osrs.ClientState.getStatBaseLevel(2))