LoR-Bot icon indicating copy to clipboard operation
LoR-Bot copied to clipboard

bot still not working

Open E7t7t7 opened this issue 1 year ago • 5 comments

the edit to 261 did not fix the issue

E7t7t7 avatar Oct 21 '23 19:10 E7t7t7

Yea I just tried the fix theres like 3 continue windows I also have an issue with an opponent surrendering

Shinimate avatar Oct 23 '23 21:10 Shinimate

Yea I just tried the fix theres like 3 continue windows I also have an issue with an opponent surrendering

guess now all we can do is wait for OP to return let me know if you find a solution

E7t7t7 avatar Nov 01 '23 18:11 E7t7t7

Hello, you can solve your problem by changing the continue_and_replay function like this :

def continue_and_replay(self):
        sleep(4)
        continue_btn_pos = (self.window_x + 0.66 * self.window_width, self.window_y + self.window_height * 0.90)
        second_continue_btn_pos = (self.window_x + 0.73854 * self.window_width, self.window_y + self.window_height * 0.92222)
        for _ in range(16):
            self.mouse_handler.click(continue_btn_pos)
            self.mouse_handler.click(second_continue_btn_pos)
            sleep(1.5)
        sleep(1)

The line 261 is used when choosing a deck, it's at the beginning on the game, not at the end

bomoy avatar Dec 14 '23 17:12 bomoy

It's not perfect, it's doing the same thing multiple time, i'm trying to change it and I will raise a PR in a few minutes

bomoy avatar Dec 14 '23 18:12 bomoy

PR raised :) https://github.com/MOj0/LoR-Bot/pull/37

bomoy avatar Dec 14 '23 18:12 bomoy