Skip to content

feat(LeaguesToolkit): add Leagues utility plugin with anti-AFK#395

Merged
chsami merged 2 commits intochsami:developmentfrom
mdp18:feat/leagues-toolkit
Apr 16, 2026
Merged

feat(LeaguesToolkit): add Leagues utility plugin with anti-AFK#395
chsami merged 2 commits intochsami:developmentfrom
mdp18:feat/leagues-toolkit

Conversation

@mdp18
Copy link
Copy Markdown
Contributor

@mdp18 mdp18 commented Apr 16, 2026

Summary

  • New standalone [DV] Leagues Toolkit plugin for Leagues quality-of-life utilities
  • First feature: Anti-AFK — presses configurable input whenever idle ticks approach the client's idle-timeout threshold, preventing logout during long auto-banking skilling sessions (e.g. mining with Endless Harvest relic)
  • Input methods: random arrow key (default), backspace, or camera yaw rotation
  • Configurable trigger buffer (randomized min/max ticks before threshold)
  • Adds `[DV]` purple prefix to `PluginConstants`

Test plan

  • Enable plugin on a Leagues world with Endless Harvest active mining, verify no AFK logout after 6+ minutes of passive mining
  • Verify input method dropdown changes behavior (arrow keys vs backspace vs camera)
  • Verify min/max buffer randomization is honored

Note

This PR overlaps with #393 (AI Firemaking) in adding the `DV` constant to `PluginConstants`. Whichever merges second will need a trivial conflict resolution.

dev and others added 2 commits April 16, 2026 07:42
New standalone plugin for Leagues quality-of-life utilities. First
feature is anti-AFK which presses a configurable input (random arrow
key, backspace, or camera rotation) whenever the client's idle ticks
approach the idle-timeout threshold — prevents logout during long
auto-banking skilling sessions (e.g. mining with Endless Harvest relic).

Configurable trigger buffer window (randomized min/max ticks before
threshold) and input method.

Adds [DV] prefix to PluginConstants.
@chsami chsami merged commit 109b63f into chsami:development Apr 16, 2026
1 check passed
chsami added a commit that referenced this pull request Apr 16, 2026
* fix(Fletching): match "Logs" item name when using LOG material (#396)

The bank lookup constructed the secondary item name as
`material.getName() + " logs"`, producing "Log logs" for LOG material
which doesn't match the actual OSRS item name "Logs". Plain logs
therefore were never found in the bank and the script shut down with
"logs not found". Added FletchingMaterial.getLogItemName() that returns
"Logs" for LOG and "<name> logs" for everything else, and routed all
three call sites through it.

Co-authored-by: dev <dev@riskless.id>

* feat(LeaguesToolkit): add Leagues utility plugin with anti-AFK (#395)

New standalone plugin for Leagues quality-of-life utilities. First
feature is anti-AFK which presses a configurable input (random arrow
key, backspace, or camera rotation) whenever the client's idle ticks
approach the idle-timeout threshold — prevents logout during long
auto-banking skilling sessions (e.g. mining with Endless Harvest relic).

Configurable trigger buffer window (randomized min/max ticks before
threshold) and input method.

Adds [DV] prefix to PluginConstants.

Co-authored-by: dev <dev@riskless.id>
Co-authored-by: chsami <sami.chkhachkhi@gmail.com>

---------

Co-authored-by: Max <max@riskless.id>
Co-authored-by: dev <dev@riskless.id>
@mdp18
Copy link
Copy Markdown
Contributor Author

mdp18 commented Apr 16, 2026

Added Toci's Gem Cutter

New feature added to Leagues Toolkit.

What it does:

  • Walks to Toci in Aldarin (Varlamore)
  • Opens the shop, mass-clicks "Buy 1" on the selected uncut gem at 100-250ms intervals until inventory is full or shop runs out (breaks on 2 consecutive misses)
  • Uses chisel on uncut gem, presses SPACE to pick "All" in the cutting dialog, waits until all cutting finishes (via `!isGainingExp || !hasItem(uncut)`)
  • Reopens shop, rapid-sells each cut gem from the bottom inventory slot
  • Shop stays open across sell→buy transitions to eliminate wasted UI cycles
  • Auto-banks for coins when below configurable minimum (supports Bank Heist briefcase)

Config (new "Toci's Gem Cutter" section):

  • Enable toggle (default false, closed-by-default)
  • Gem dropdown: Sapphire / Emerald / Ruby
  • Min coins to keep (default 10,000)
  • Use Bank Heist briefcase toggle

Plugin version bumped to 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants