forked from 29988122/Fate-Grand-Order_Lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_auto_friendgacha.lua
29 lines (26 loc) · 967 Bytes
/
_auto_friendgacha.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
xOffset = 0
yOffset = 0
xDifferential = getAppUsableScreenSize():getX() / 2560
yDifferential = getAppUsableScreenSize():getY() / 1440
if yDifferential > xDifferential then
yOffset = ( getAppUsableScreenSize():getY() - ( xDifferential * 1440 ) ) / xDifferential / 2
Settings:setCompareDimension(true,1280)
Settings:setScriptDimension(true,2560)
elseif yDifferential < xDifferential then
xOffset = ( getAppUsableScreenSize():getX() - ( yDifferential * 2560 ) ) / yDifferential / 2
Settings:setCompareDimension(false,720)
Settings:setScriptDimension(false,1440)
else
Settings:setCompareDimension(true,1280)
Settings:setScriptDimension(true,2560)
end
setImmersiveMode(true)
click(Location(1400 + xOffset,1120 + yOffset))
click(Location(1600 + xOffset,1120 + yOffset))
while(1) do
click(Location(1600 + xOffset,1420 + yOffset))
click(Location(1600 + xOffset,1120 + yOffset))
wait(3)
continueClick(Location(1660 + xOffset,1300 + yOffset), 15)
wait(0.5)
end