Roukys / HHauto

GNU General Public License v3.0
45 stars 44 forks source link

Still spamming attacks on villains... #711

Closed UncleBob800 closed 1 year ago

UncleBob800 commented 1 year ago

Please add a delay of 3 seconds between retries to attack the villain, because this spam causes the script to hang and not attack the villain for a long time. This is observed not only on the test server, but also on the HH live server. Moreover, such spamming can eventually lead to a ban... it was very unreasonable to make repeated attempts to attack without a pause of several seconds.

UncleBob800 commented 1 year ago

As a temporary solution, I inserted before 'return' part of the code from the Mouse Sleep function. image Although a crutch method of solving the problem, it worked. Unfortunately, I don't know JS and haven"t been able to figure out how this programming language works in order to achieve the desired effect in the right way. But I hope this somehow helps the developer of this script to find the right method to create a 5 second delay before trying to click "Perform" button again. At least I don't have button click spam now that was causing the script to hang. The game servers are still lagging and after pressing the attack, 3 seconds pass before opening the battle page, this is not the first time this has happened, so this delay in the script is vital for normal functioning.

rilitili commented 1 year ago

There is something wrong with the Attack Villain feature for sure. Please help us fix this. Untitled

deuxge commented 1 year ago

As I said in previous ticket, this happens when server is slow. I will add something to prevent this, but it will slow down the process

buttstallion69 commented 1 year ago

It doesn't do that on pornstarharem, though.

deuxge commented 1 year ago

In the past two days it was sometime on HH sometimes on PSH...

deuxge commented 1 year ago

I push a possible fix. But Now I don't have the issue again. Let me know if you see improvement.

The script will work as usuall in "normal" case. But everytime the script will do a one time fight, if the script detect the number of fight point available is the same as before, then it will temporay disable itself. Then it will start himself again as soon as it reach the new page.

rilitili commented 1 year ago

Everything appears to be stable now. Previously this problem was very easy to motice because I use multiple tabs, and when 1 tab got stuck in an infinite villain loop, the other tabs reacted very slowly, almost as if there was no more bandwisth available to the other tabs. Now it never feels like that anymore. I'm glad we stopped ddos'ing the HH server :sweat_smile:

deuxge commented 1 year ago

Closing this ticket. We can reopen a new one if it occurs again.