OpenKore / OpenKore/openkore

Add a config to control slave attack range independently from followDistanceMax

Open
#4,202 0 comments 0 reactions 1 assignee View on GitHub

@Henrybk is already working on this.

Since Apr 1, 2026.

feature request
Dominant language
Perl
Stars
1.5k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the solution you'd like

Currently, the slave uses followDistanceMax to control how far it will attack monsters from the master position, as seen in Misc.pm:
https://github.com/OpenKore/openkore/blob/a99517618f5d51569873e2135057cff799cccdac/src/Misc.pm#L3225-L3247

Problem:
When followDistanceMax is set to 1, this causes two issues:

  1. The check only happens once at the time the master starts attacking the monster and the distance between master and monster exceeds followDistanceMax. The slave won't attack the monster even when the monster is moving inside range. In my testing, the slave eventually attacks, but it took around 10 seconds after the master's first hit.

  2. When both the monster (e.g. Cruiser) and the master (e.g. Archer) are ranged attackers and the distance between them exceeds followDistanceMax, the slave never attacks the monster even after waiting 30 seconds. Only when the master and monster distance comes within followDistanceMax does the slave start attacking.

Proposed Solution:
Add a new config option followAttackDistance <range> to control slave attack range independently from follow behavior.

  • If followAttackDistance 0, the slave falls back to using followDistanceMax
Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.