Open Krazeecode opened 1 year ago
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()
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)
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.