Skip to content

QoL: auto-confirm the farming tree-removal payment dialogue#517

Open
JogOnJohn wants to merge 1 commit into
chsami:mainfrom
JogOnJohn:feat/qol-auto-pay-tree-removal
Open

QoL: auto-confirm the farming tree-removal payment dialogue#517
JogOnJohn wants to merge 1 commit into
chsami:mainfrom
JogOnJohn:feat/qol-auto-pay-tree-removal

Conversation

@JogOnJohn

Copy link
Copy Markdown
Contributor

What

Adds an Auto Pay Tree Removal toggle to the Quality of Life plugin (Dialogue section, default on). When enabled, it auto-selects "Yes." on the farming "Pay X Coins to have your tree chopped down?" prompt so farm runs don't stall on a manual click.

How

  • New autoPayTreeRemoval() config item in QoLConfig (Dialogue section, default on).
  • handleTreeRemovalPayment() in QoLScript fires only when already in a dialogue and the question title matches "to have your tree chopped down", then clicks the "Yes" option.
  • Matched on the question title, so it never triggers on unrelated Yes/No dialogues. Amount-agnostic by design (works regardless of the coin cost).

Testing

  • Verified on a live farm run — the tree-removal prompt is auto-confirmed; no misfires observed on other dialogues.
  • ./gradlew compileQualityoflifeJava passes against client 2.6.12.

Scope

Single feature, 2 files (QoLConfig.java, QoLScript.java), +26 lines. No behaviour change when the toggle is off.

Add an "Auto Pay Tree Removal" toggle (Dialogue section, default on) that
selects 'Yes.' on the "Pay X Coins to have your tree chopped down?" prompt,
so farm runs don't wait on a manual click. Matched on the question title
(widget 219,1 index 0, verified live via the agent server) rather than the
option text, so it can never fire on unrelated Yes/No dialogues; the coin
amount is intentionally not matched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@JogOnJohn JogOnJohn marked this pull request as ready for review July 7, 2026 09:05
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.

1 participant