Skip to content

Make advanced grind AI production-ready for live AC - #1

Merged
walkline merged 2 commits into
mainfrom
fix/advanced-grind-ai
Jul 26, 2026
Merged

Make advanced grind AI production-ready for live AC#1
walkline merged 2 commits into
mainfrom
fix/advanced-grind-ai

Conversation

@walkline

Copy link
Copy Markdown
Collaborator

Summary

  • Switch scripts/grind.lua to the advanced strategy AI (survive, rest, grind, loot, melee, single class spec) with level-1 GM combat prep.
  • Fix Charge: stop+cast while closing, server relocate snaps movement (no rubber-band home), do not abort chase on failed Charge casts.
  • Gate warrior casts on rage costs; block re-casts after CAST_FAILED NO_POWER (85).
  • Profile YAML loads bot_mode / flags correctly; --lua-script forces Lua mode.
  • Targeting skips critters; warriors no longer enable engage_ranged (which froze bots staring from 8–25y).
  • Stance is applied once at prep — no periodic Battle Stance spam.

Test plan

  • go test ./bot/ -run 'TestAdvanced|TestCharge|TestCastCharge|TestSummon'
  • Live AC: ./azghost --profile local-ac cli --char-name ChargeBot --class 1 --race 1 --lua-script scripts/grind.lua --delete-existing-chars --duration 55s
    • Observed Charge + Server relocate, multiple kills, no stance spam every 15s
  • Manual: low-level warrior grind in Elwynn — Charge openers, melee close, rest on low HP, no NO_POWER spam

walkline added 2 commits July 25, 2026 22:14
Switch grind.lua to the strategy framework with survive/rest/class rotations,
fix Charge/path rubber-banding, power-gated casts, profile loading, and
live-validated targeting so low-level bots actually close and kill.
Fix rest_if_low arming rest_until before yielding to loot, drop combat
stop_moving thrash in survive_low_health, lock server-relocate pose
writes, share noPowerUntil via CanCast, remove optimistic warrior
mark_nopower, and wire grind_chase into select/engage paths.

@walkline walkline left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in fe8179f: rest/loot priority, combat thrash, relocate race, NO_POWER gate, grind_chase wiring.

Comment thread scripts/ai/init.lua
Comment thread scripts/ai/init.lua Outdated
Comment thread client/world.go Outdated
Comment thread bot/bot.go Outdated
Comment thread scripts/ai/class/warrior.lua Outdated
Comment thread scripts/ai/init.lua
@walkline

Copy link
Copy Markdown
Collaborator Author

Addressed all review threads in fe8179f:

  • rest_if_low arms rest_until before yielding to loot
  • survive_low_health no longer stop_moving in combat
  • applySelfServerRelocate pose writes go through moveMu and reassert after callback
  • CanCast uses Bot.IsSpellReady (noPowerUntil shared)
  • removed optimistic warrior mark_nopower
  • grind_chase wired into select_grind_target / engage_melee

All six threads resolved. CI should re-run on the new commit.

@walkline
walkline merged commit 2f5424b into main Jul 26, 2026
2 checks passed
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