niels-db / Rush-Royale-Bot

Python based bot for Rush Royale
MIT License
10 stars 1 forks source link

Treasure map fix for green maps #22

Open Newb420 opened 1 year ago

Newb420 commented 1 year ago
        # Click play floor if found
        if not (pos == np.array([0, 0])).any():
            if floor % 3 == 0:
                self.click_button(pos + [30, -460])
            elif floor % 3 == 1:
                self.click_button(pos + [30, 485])
            elif floor % 3 == 2:
                self.click_button(pos + [30, 885])
            # Click the treasure map at coords 350, 1450
            self.click_button((350, 1450))
            # Click Random
            self.click_button((500, 600))
            for i in range(10):
                time.sleep(7)
                avail_buttons = self.get_current_icons(available=True)
                # Look for correct chapter
                self.logger.info(f'Waiting for match to start {i}')
                if avail_buttons['icon'].isin(['back_button.png', 'fighting.png']).any():
                    break

just added a self click for green treasure map before clicking random to start coop
The original treasure map function stopped working for me and if its not working for you just use this code in bot_core

niels-db commented 1 year ago

Hi @Newb420, can you give the latest release a try? Make sure the green treasure map check box is checked before starting the bot. If the issue still persists, can you provide me a screenshot of the "dungeon selection" page and the "selecting allies" page? Please use the screenshot button in Bluestacks.