29988122 / Fate-Grand-Order_Lua

Fate Grand Order auto battle script - no root needed, for Android use only
MIT License
291 stars 95 forks source link

[Feature Request] Introduce minor randomness to click events #290

Open Mephi-Dross opened 4 years ago

Mephi-Dross commented 4 years ago

This might be a minor thing considering the situation, but I was wondering if it's possible to introduce some randomness to the region click events. This doesn't have to be anything major, just enough to make it seem like someone is hitting the button, instead of it being always in the center of the region.

keibebe commented 4 years ago

I really think it is a nice way to prevent from banning. Cause in some games are banning players based on click behavior (epic seven)

29988122 commented 4 years ago

FGO(JP) probably won't do this in the foreseeable future.

  1. They (Kinoko and director) acknowledged that farming is bothersome.
  2. https://news.fate-go.jp/2020/0130tubmg/ Only mentioned binary exploitation, explicitly.

I won't be worried about this - none of the users who use this script has been banned, myself included. And we're kind of "whales" cause we care this game enough that we got to use script to play it.

Pandemic outbreak is more concerning currently (sad but true).

Mephi-Dross commented 4 years ago

Oh, I actually forgot this issue existed. While I agree it's not a must have, I did go ahead and changed stuff to fit for me a while ago. If you care enough, here's the function I added to utils.lua:

-- Take region and click on a random point within, to simulate a human touch.
function utils.RandomClick(region)
    if region == nil then
        return -1
    end

    local loc = Location(region:getX() + math.random(0, region:getW()), region:getY() + math.random(0, region:getH()))
    click(loc)
    return 1
end

As for the game.lua, I've changed pretty much everything into regions. Probably not something you can just copy/paste straight up, but I'll upload it to this post anyway. regions.txt

As far as I'm concerned the issue can be closed, sorry for not answering earlier.