Crates.io | osrs-cli |
lib.rs | osrs-cli |
version | 2.0.0 |
source | src |
created_at | 2020-08-04 15:04:36.564456 |
updated_at | 2022-04-27 19:02:11.800255 |
description | Command line utility program for Old School RuneScape |
homepage | |
repository | https://github.com/LucasPickering/osrs-cli |
max_upload_size | |
id | 272914 |
size | 572,198 |
A command line tool for doing lookups and calculations related to Oldschool RuneScape. Features include:
This tool is intended for people who are already familiar and comfortable with the command line. If you aren't, then you're probably better off using the wiki and other web-based tools.
Here are some simple examples. For more detail, see the user guide on the website.
osrs hiscore <username>
> osrs calc drop --probability 1/5000 --kills 1000
18.1286% chance of ≥1 successes in 1000 attempts
osrs calc xp --from-xp 100000 --to-lvl 80
osrs calc xp --from-lvl 50 --to-lvl 60
> osrs calc stew --doses 25 --boost 3
+------------+-------+-------+-------+-------+-------+
| Doses/Stew | ≥+1 | ≥+2 | ≥+3 | ≥+4 | ≥+5 |
+------------+-------+-------+-------+-------+-------+
| 1 | 99.9% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2 | 99.6% | 96.8% | 79.9% | 0.0% | 0.0% |
| 3 | 98.7% | 96.1% | 90.0% | 76.8% | 50.0% |
+------------+-------+-------+-------+-------+-------+
osrs wiki shark
osrs wiki smithing
osrs ping 450
Found a bug or have a suggestion for a new feature? Submit an issue on this repo.
Interested in contributing? Here's some basic steps for setup:
The CLI is written entirely in Rust.
Required tools:
cargo run -- help # Run any command
cargo test # Run unit tests
See Cargo.toml
for minimum Rust version. This can be built on both stable/beta and nightly. It optionally uses the following nightly features, which are simply disabled when building on stable/beta:
Here's a handy site for finding new Rust nightly versions.
The website is HTML/CSS, compiled using the 11ty framework.
Required tools:
cd website
npm install
npm run start
Change files and you should see the site refresh in your browser.