Skip to content

feat: Add hunter (maniacal monkeys) support#43

Open
kelltom wants to merge 2 commits intoCar-Role:masterfrom
kelltom:feat-add-hunter-maniacal-monkeys
Open

feat: Add hunter (maniacal monkeys) support#43
kelltom wants to merge 2 commits intoCar-Role:masterfrom
kelltom:feat-add-hunter-maniacal-monkeys

Conversation

@kelltom
Copy link
Copy Markdown

@kelltom kelltom commented Mar 15, 2026

Adds support for detecting maniacal monkey hunting in Kruk's Dungeon.

This change involves looking at Game Objects instead of animations, since this hunting activity involves the player being idle most of the time.

The plugin checks the four tiles two spaces away from the player (N/S/E/W) for active monkey trap objects. If found, the activity is treated as maniacal monkey hunting and the distraction overlay is enabled.

Because this detection relies on scene objects, the overlay could theoretically trigger if the player stands next to another player’s trap. In practice this should not occur, since traps cannot be shared between players.

The check is limited to the Kruk's Dungeon region, so performance impact is negligible.

Demo:

java_xiiqABravr.mp4

@kelltom
Copy link
Copy Markdown
Author

kelltom commented Mar 15, 2026

I should mention that I considered an event-driven approach, where we watch for object spawns to track traps, but the overhead of subscribing to those events isn't really worth it, considering you can only do this activity in one tiny region of the game.

Easier to just check a few adjacent tiles each tick.

@kelltom kelltom force-pushed the feat-add-hunter-maniacal-monkeys branch from eb9facb to 8062971 Compare March 16, 2026 01:02
Car-Role pushed a commit that referenced this pull request Mar 28, 2026
PR #43: Hunter — maniacal monkey trap detection (new feature)
PR #45: POH detection — exit portal scanning (resolves #38, #26)
Bug #41: Amethyst dart tips — AnimationID.GEM_CUTTING_AMETHYST (6295) added to Crafting
Bug #42: Fish cutting — BRUT_HUMAN_KNIFEUSE + sacred/infernal eels added to Cooking
Feature #39: Salvaging split — separate toggles for salvaging hook vs sorting salvage
Feature #40: Hotkey toggle — Keybind config + HotkeyListener via KeyManager
Feature #23: Activation delay — new activationDelay config in Timing section; skilling must be detected continuously for that many ticks before the overlay appears (default 0 = immediate)
Feature #28: Thieving — THIEVING_ANIMATION_IDS set (pickpocketing 881, stalls 832, Varlamore houses AnimationID.THIEVING_VARLAMORE_STEALING_VALUABLES) + thieving() config toggle
README: Added Firemaking, Magic, Sailing (Sorting), Thieving, fish cutting, amethyst, hotkey toggle, activation delay to features list
@Car-Role
Copy link
Copy Markdown
Owner

merged, in f8894bf

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