Giter Site home page Giter Site logo

hwvs / osrshiscoresharp Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 157 KB

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

C# 100.00%
osrs osrs-api runelite dotnet csharp runescape osrs-hiscores async

osrshiscoresharp's Introduction

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",
        };

osrshiscoresharp's People

Contributors

hwvs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.