hwvs / OSRSHiscoreSharp

Easy-to-use Async C#/.NET Library to lookup OSRS player hiscores (Old-School Runescape) using the undocumented Jagex API, and a WPF (Windows Presentation Framework) GUI to demonstrate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSRSHiscoreSharp - C# OSRS Hiscore Library (+WPF Demo)

.NET

Easy-to-use async C# package to lookup OSRS player hiscores. If you use this in your project, please ⭐star this repo and include a link in your credits ❤️

Usage:

// (Inside try-catch block)
{
  // Lookup the player on the hiscores
  var player = await HiscoreLookup.LookupPlayerStats("dedwilson", HiscoreGamemode.NORMAL);
  // Grab the total level of the player
  var totalLevel = player.Records.Skills["overall"].Value;
}

Check OSRSHiscoreSharp.Data.HiscoreConstants for record index values

        public static readonly string[] SKILL_NAMES = new string[] {
            "overall",
            "attack",
            "defence",
            "strength",
            "hitpoints",
            "ranged",
            "prayer",
            "magic",
            "cooking",
            "woodcutting",
            "fletching",
            "fishing",
            "firemaking",
            "crafting",
            "smithing",
            "mining",
            "herblore",
            "agility",
            "thieving",
            "slayer",
            "farming",
            "runecrafting",
            "hunter",
            "construction",
        };

        public static readonly string[] LEAGUE_NAMES = new string[] {
            "leaguePoints"
        };

        public static readonly string[] BOUNTY_HUNTER_NAMES = new string[] {
            "bhHunter",
            "bhRogue",
        };

        public static readonly string[] MINIGAME_NAMES = new string[] {
            "lms",
            "soulwars",
        };

        public static readonly string[] CLUE_NAMES = new string[] {
            "clueAll",
            "clueBeginner",
            "clueEasy",
            "clueMedium",
            "clueHard",
            "clueElite",
            "clueMaster"
        };

        public static readonly string[] BOSS_NAMES = new string[] {
            "abyssalSire",
            "alchemicalHydra",
            "barrows",
            "bryophyta",
            "callisto",
            "cerberus",
            "chambersOfXeric",
            "chambersOfXericChallengeMode",
            "chaosElemental",
            "chaosFanatic",
            "commanderZilyana",
            "corporealBeast",
            "crazyArchaeologist",
            "dagannothPrime",
            "dagannothRex",
            "dagannothSupreme",
            "derangedArchaeologist",
            "generalGraardor",
            "giantMole",
            "grotesqueGuardians",
            "hespori",
            "kalphiteQueen",
            "kingBlackDragon",
            "kraken",
            "kreeArra",
            "krilTsutsaroth",
            "mimic",
            "nightmare",
            "obor",
            "sarachnis",
            "scorpia",
            "skotizo",
            "tempoross",
            "gauntlet",
            "corruptedGauntlet",
            "theatreOfBlood",
            "thermonuclearSmokeDevil",
            "tzKalZuk",
            "tzTokJad",
            "venenatis",
            "vetion",
            "vorkath",
            "wintertodt",
            "zalcano",
            "zulrah",
        };

About

Easy-to-use Async C#/.NET Library to lookup OSRS player hiscores (Old-School Runescape) using the undocumented Jagex API, and a WPF (Windows Presentation Framework) GUI to demonstrate.

License:GNU Lesser General Public License v2.1


Languages

Language:C# 100.0%