OSRS Plugin API
    Preparing search index...

    Function getStatXP

    • Returns the amount of xp for the specified stat. If stats were not transmitted yet, returns -1.

      Parameters

      • statId: number

        Id of the stat to query.

      Returns number

      Amount of XP in the specified stat.

      osrs.printf("%s stat XP: %d", "Strength", osrs.ClientState.getStatXP(2))