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

Chaos stuck #55

Open
Krazeecode opened this issue Apr 6, 2023 · 2 comments
Open

Chaos stuck #55

Krazeecode opened this issue Apr 6, 2023 · 2 comments

Comments

@Krazeecode
Copy link

If it's possible to do higher priority when it finds the tower or portal, it would help. Most of the time, just get stuck because the skills are being used toward the opposite direction.

@BoredCoder95
Copy link

BoredCoder95 commented May 26, 2023

Personally, I'd like the priority to be something along the lines of:
Floor 2 Boss
Floor 2 Elite
Gold Mob
Floor 3 Elite
Floor 3 Tower
Portal
Mob

If you want to change the priority order, I think that's within the useAbilities() function. You'd essentially just want to change the order of the checks as they are in if/elif setup, so it stops after the first success.

could possibly make if more efficient as well by nesting the statements like so, gives it a way to fail early so that it moves on faster

if states = floor 1

 if checkPortal()
 elif checkFloor1Mob()

elif states = floor 2

 if checkFloor2Boss()
 elif checkFloor2Elite()
 elif checkPortal()
 elif checkFloor2Mob()

elif states = floor 3

 if checkGoldMob()
 elif checkFloor3Elite()
 elif checkFloor3Tower()

@Jonesjlc
Copy link

Jonesjlc commented Aug 28, 2023

I managed to resolve this issue by adding the following lines to force the click and move where i want

                    pydirectinput.click(
                    x=states["moveToX"], y=states["moveToY"], button=config["move"]
                    )

1 - add in > elif states["status"] == "floor2": before # fightFloor2Boss() (commented line) > Force to move close to the boss on Floor 2
2 - add in > elif states["status"] == "floor3" and checkFloor3Tower(): after moveToMinimapRelative > Force to move close to the tower
3 - add in > elif states["status"] == "floor3" and checkFloor2Mob(): after moveToMinimapRelative > Force to move to the mobs on floor3 if there's any (expl: some times the mobs get stucked and the tower wont appear causing a stuck)

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

No branches or pull requests

3 participants