10 releases (5 stable)

2.0.0 Apr 27, 2022
1.1.0 Dec 8, 2021
1.0.2 Nov 16, 2021
0.3.2 Feb 7, 2021
0.1.0 Aug 4, 2020

#190 in Games

Download history 19/week @ 2023-10-26 4/week @ 2023-11-02 1/week @ 2023-11-09 2/week @ 2023-11-16 20/week @ 2023-11-23 32/week @ 2023-11-30 1/week @ 2023-12-07 11/week @ 2023-12-14 20/week @ 2023-12-21 26/week @ 2024-01-18 10/week @ 2024-01-25 10/week @ 2024-02-01 22/week @ 2024-02-08

68 downloads per month

MIT license

155KB
2K SLoC

osrs-cli

Test Status crates.io version

A command line tool for doing lookups and calculations related to Oldschool RuneScape. Features include:

  • Calculate drop rate
  • Calculate XP to a level
  • Hiscores lookups
  • And more!

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.

Installation

See the website

Examples

Here are some simple examples. For more detail, see the user guide on the website.

Hiscore lookup

osrs hiscore <username>

Calculate drop rate

> osrs calc drop --probability 1/5000 --kills 1000
18.1286% chance of ≥1 successes in 1000 attempts

Calculate XP to a level

osrs calc xp --from-xp 100000 --to-lvl 80
osrs calc xp --from-lvl 50 --to-lvl 60

Calculate spicy stew boosts

> 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% |
+------------+-------+-------+-------+-------+-------+

Search the wiki

osrs wiki shark
osrs wiki smithing

Ping a world

osrs ping 450

Bug Reports/Feature Requests

Found a bug or have a suggestion for a new feature? Submit an issue on this repo.

Development

Interested in contributing? Here's some basic steps for setup:

CLI

The CLI is written entirely in Rust.

Required tools:

cargo run -- help # Run any command
cargo test # Run unit tests

Rust Version

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.

Website

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.

Dependencies

~10–25MB
~382K SLoC