Crates.io | osrs-api |
lib.rs | osrs-api |
version | 0.1.0 |
source | src |
created_at | 2020-11-21 04:13:36.845817 |
updated_at | 2020-11-21 04:13:36.845817 |
description | An Oldschool Runescape API Wrapper |
homepage | |
repository | https://github.com/Meantub/osrs-api |
max_upload_size | |
id | 314582 |
size | 38,102 |
An Oldschool Runescape API wrapper
This is a wrapper for the Hiscores API in Oldschool Runescape. It lets you access information for any of the gamemodes.
Currently it only shows the skills but if you would like you can submit a pull request to add the boss kill stats and stuff like that.
Check out the examples folder, there is only one method as of right now:
use osrs_api::gamemode::Gamemode;
fn main() {
println!("{}", osrs_api::get_hiscore("meantub".to_string(), Gamemode::Main).unwrap());
}
There are XP calculations that are being worked on, apparently the data structure that holds the experience in the game uses only 1 decimal place, and by default the floats in Rust have a lot more decimal points of precision. So probably needs a custom data type of some sort. It's still very close to what the normal values are.
std::fmt::Display
traitsosrs_api::prelude::*