Fate-Grand-Order_Lua icon indicating copy to clipboard operation
Fate-Grand-Order_Lua copied to clipboard

[Feature Request] Introduce minor randomness to click events

Open Mephi-Dross opened this issue 5 years ago • 3 comments

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.

Mephi-Dross avatar Nov 30 '19 20:11 Mephi-Dross

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)

keibebe avatar Feb 04 '20 00:02 keibebe

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).

29988122 avatar Feb 04 '20 05:02 29988122

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.

Mephi-Dross avatar Feb 04 '20 05:02 Mephi-Dross