Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wait until fcr/walk time is finished #701

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Wait until fcr/walk time is finished #701

merged 1 commit into from
Feb 27, 2025

Conversation

hectorgimenez
Copy link
Owner

No description provided.

@jasorello
Copy link

Is this an approach that could be leveraged in other situations after an action has been performed? (or even bake it in to performing actions?) I was looking at the attack loop in the blizzard sorceress and trying to limit the time that the attackLoop counter incremented without actually performing an attack loop.

One of the things I tried is making the bot retry a primary attack while it waits for blizzard to come off of cooldown. I pulled from the same Data.PlayerCastDuration() function to determine what an appropriate wait time is before trying to recast.

@hectorgimenez
Copy link
Owner Author

Probably we can do the same in other situations and will improve the CPU consumption. Is not the best solution honestly, an sleep will block the application until it finishes, making it less responsive, but for this use case should be acceptable.

@hectorgimenez hectorgimenez merged commit b63d7a3 into main Feb 27, 2025
2 checks passed
@hectorgimenez hectorgimenez deleted the moving-stuff branch February 27, 2025 08:50
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