twelve27 User

Re: @scriptdoog:
Yeah, its a really good solution. I was trying to replace the is_click_cheat function to return false but I didn't have it before every click. I only had it in one part of the code and it didn't work for every function for me.

Re: @Ally_E:
No problem. When something goes wrong with the script I tend to look on both here and greasy fork since the code is kept on both sites. My fix wasn't going to be as clean since the original thought I had didn't work and I was planning to simulate Mouseclick events with some coordinates in there.

Re: @MrCoder:
And how exactly do your prevent the game developers from getting this code you have if you were to deliver it to anyone else and not keep it for yourself? The devs will always work to stop us from automating the crappy parts of the game. Like when they destroyed their timers to be worse or changed element names unnecessarily. This cheat check is the most direct way they've addressed this as far as I can tell. If you have your code available to anyone else at all, it seems like they'll still work to stop your script.

At the very least, we got around the most recent block that the patch caused already.


Look at the comment section for the other site with the code here:
https://greasyfork.org/en/forum/discussion/43207/x

That thread talks about a way to edit the script so it works again. I've been testing it out and it seems to work. Although I'll see if I can cut it down and edit the usage of that line as necessary when I can. But either way it looks like a solution is available and its to pretty much "overwrite" the function from the game


Re: @InfraDelta:
You'd go into the code to edit it directly. No need to do it at the moment now because of how damaged the script currently is.


I posted a work around for AutoArena a few days ago in regards to it requiring power. AutoArena and Troll battle link to the same function which is why the message looks familiar and it seems it is being treated as an arena battle.

As for what is broken, its already rooted in how those functions are calling their clicks. At the very least its good that auto quest and auto mission work. I wonder if those will be broken in time. But in another issue, someone posted the function they also noticed which is checking for "cheating clicks".

To resolve this, we'll either have to block the function, overwrite it somehow, or change how the buttons on pages are being clicked. I'm sure others besides me are also looking into it.


I'm not sure. I'm looking into it now. I haven't ever tried to use this to block out scripts. Looking into some solutions and testing stuff out on how to make the function return false.


Re: @alnmawi:
I just noticed it too. Getting around that function itself would be the easiest way to resolve this. Otherwise there would be an annoying amount of changes to do from what i can tell.


Re: @TheTilodon:
I wouldn't say this is a bug. It is a very deliberate attempt to punish script users while slightly updating how the league works.


There is a if/else block in the doBattle function that starts with

if(currentPower >= battle_price)

Extract the code from the if block

// We have the power.
                battleButton.click();
                // Skip
                setTimeout(function(){$("#battle_middle button[rel='skip']").click();},1000);
                setTimeout(function(){$("#battle_end div[style*='display: block;'] .blue_text_button").click();},2500);

                if (sessionStorage.questRequirement === "battle") {
                    // Battle Done.
                    sessionStorage.questRequirement = "none";
                }

And paste it about the if/else block. Now just comment out the if/else block and auto arena will work fine.


Re: @3jameo3:
That could be it. Sometimes it looks like it is going to the contest page and does not pick up a mission. And sometimes it looks like the contest rewards aren't collected as well. Wish I had more free time to look into it. Been relatively busy with stuff so I can't debug and play around with other solutions


Haven't been able to deduce what is happening so far. Seems I always have to select the first mission or visit the missions page and sit a while to see it activated and continue


Unfortunately I was away from my PC when a page crashed so I don't know if it would have worked normally for me. Guess I'll debug later if I have the time. Of course pachinko happens to be among the hardest to debug lol


Re: @3jameo3:
Yes, it looks like it may be resolved right now. As of today when I had updated it worked fine. So I'll see tomorrow if it works or not.



AutoPachinko seems to never return a 2nd, 3rd, etc time to collect the free pachinko.


Yesterday it seemed to pick up the missions and kobans as expected but today when the missions refreshed and the timer was gone, no mission was picked up and I had to manually select it. But afterwards, it picked up the next mission right after it collects the reward. So it seems there might be a gap of coverage right when new missions become available that needs user interaction.

Anyone else experience this or was this just an issue in my browser?



Re: @eileen12:
Oops, yeah, hangs is the right term. "Stuck" and "break" really don't describe it well. I'll update to the new 3.0 and try to remember to take a look tonight to see how it reacts.


Re: @eileen12:

I'm not sure if there really is a way to do what is best. Personally I've generally done the epic missions and worked my way down to smaller time when selecting missions out of preference. If there is a really long mission I'll set that one before I am away from my PC for a while or about to sleep. Since this is automatic I think any order should be just fine. A first mission selection seems perfectly fine.


Its working for me as well. I think eileen12 is right about you needing to restart the browser.



Re: @3jameo3:

Not yet. This has been one of the most elusive parts for me to figure out. I'm not sure how to approach a solution for it.



Re: @eileen12:

No problem. Glad I could contribute a little until you updated. And thanks for continuing to return to the script to update it for everyone! :)


Re: @eileen12:
The rewards you earn at 4, 8, and 16 wins in the arena. The script will be stuck there when you earn one of them.