walterdis / lunarush-bot

Luna Rush Bot Auto Clicker
GNU General Public License v3.0
32 stars 20 forks source link

Is there any update coming? #62

Open Soulbadguy54 opened 2 years ago

Soulbadguy54 commented 2 years ago

Hello, thx for you work. I saw some topics in Portuguese, but i cant understand the whole situation. Is there any solution to make bot working or probably some update?

Thx for answer

walterdis commented 2 years ago

Hi ;)

You have to take the screen of the new buttons, then go to the helpers.py in the handlePopup() method and duplicate the verification lines and replace the image names with the new.

Ex:

def handlePopup(screen=None):
    time.sleep(1)
    if screen is None:
        screen = printSreen()

    if(hasImage('button-ok.png', 0.8, screen)):
        clickDestinationImage('button-ok.png', None, 2, 0.8)

    # here is the new piece of code. Take a screen shot of the double arrow button, save in the 
    # targe_images with the name below. Do the same with new buttons
    if(hasImage('button-double-arrow.png', 0.8, screen)): 
        clickDestinationImage('button-double-arrow.png', None, 2, 0.8) 

    if(hasImage('button-x.png', 0.8, screen)):
        clickDestinationImage('button-x.png', None, 2, 0.8)
walterdis commented 2 years ago

Someone just sent me a pull request with some changes.

Backup your current bot and try this version to see if it works ;)

Soulbadguy54 commented 2 years ago

Someone just sent me a pull request with some changes.

Backup your current bot and try this version to see if it works ;)

Hello, sir! I tried a new version of bot and after picture changes it seems to work. But I still have a problem for 1 month (I opened the issue some time ago), that bot picks the wrong warrior, for example, already picked one. So, sometimes, bot fights with only two or one warriors I change the accuracy many times, but there is still no effect. If I raise it to high values, bot sometimes skips the warriors with suitable energy, if decrease the value, bot picks the already picked warrior, then pick it for the 3rd time and then clicks “boss hunt” button (with only 1 warrior). I have such suggestion. I can’t do it myself, because I’m afraid to break something or don’t get the expected effect. Every time when bot wants to click on “boss hunt” button, he should check the existence of empty slot. There is a problem (on picture) with the moving knifes that can be under the slot picture. The possible way to solve problem is to check not whole empty slot picture or green plus inside the slot, but the leg of shadow which doesn’t lie on the trajectory of moving knives.

Waiting for your response! Thx for the job you doing!

image

tgarrone commented 2 years ago

Try cropping images 2/3 and 3/3 again

walterdis commented 2 years ago

Someone just sent me a pull request with some changes. Backup your current bot and try this version to see if it works ;)

Hello, sir! I tried a new version of bot and after picture changes it seems to work. But I still have a problem for 1 month (I opened the issue some time ago), that bot picks the wrong warrior, for example, already picked one. So, sometimes, bot fights with only two or one warriors I change the accuracy many times, but there is still no effect. If I raise it to high values, bot sometimes skips the warriors with suitable energy, if decrease the value, bot picks the already picked warrior, then pick it for the 3rd time and then clicks “boss hunt” button (with only 1 warrior). I have such suggestion. I can’t do it myself, because I’m afraid to break something or don’t get the expected effect. Every time when bot wants to click on “boss hunt” button, he should check the existence of empty slot. There is a problem (on picture) with the moving knifes that can be under the slot picture. The possible way to solve problem is to check not whole empty slot picture or green plus inside the slot, but the leg of shadow which doesn’t lie on the trajectory of moving knives.

Waiting for your response! Thx for the job you doing!

image

Hi ;) You can try combinations of cropping image and adjusting the threshold (try using 3 digits ex: 0.874).

I stopped playing, so, i'm not maintaning the bot anymore 😢