https://github.com/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.
https://github.com/hwvs/osrshiscoresharp
async csharp dotnet osrs osrs-api osrs-hiscores runelite runescape
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/hwvs/osrshiscoresharp
- Owner: hwvs
- License: lgpl-2.1
- Created: 2021-05-07T21:45:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T01:31:07.000Z (about 3 years ago)
- Last Synced: 2025-03-24T00:57:23.296Z (about 1 year ago)
- Topics: async, csharp, dotnet, osrs, osrs-api, osrs-hiscores, runelite, runescape
- Language: C#
- Homepage:
- Size: 153 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OSRSHiscoreSharp - C# OSRS Hiscore Library (+WPF Demo)
[](https://github.com/hwvs/OSRSHiscoreSharp/actions/workflows/dotnet.yml)
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:
```csharp
// (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
```csharp
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",
};
```