requestScreenCapture();
var apple=images.read("/storage/emulated/0/fgo/apple.jpg")
var templ = images.read("/storage/emulated/0/fgo/kong.jpg")
for(var i=0;i<100;i++){
click(1600,340)
click(1600,340)
sleep(2000)
var img0=captureScreen()
var point=findImage(img0,apple)
if(point){
click(point.x+100,point.y+100);
sleep(1000)
click(1452,844)
click(1452,844)
sleep(1000)
}
while(p==null){
var img = captureScreen();
var p = findImage(img, templ);
if(p){
click(p.x+100,p.y+100);
}else{
sleep(4000)
click(1476,196)
sleep(500)
click(1473,841)
sleep(8000);
}
}
p=null
sleep(3000)
click(1980,1010)
sleep(19000)
click(1569,872)
sleep(2000)
click(1421,863)
sleep(2000)
click(1279,871)
sleep(800)
click(1186,652)
sleep(3000)
click(1923,898)
sleep(2500)
click(1191,325)
sleep(800)
click(434,782)
sleep(800)
click(810,773)
sleep(28000)
click(950,864)
sleep(3000)
click(1923,898)
sleep(2500)
click(1191,325)
sleep(800)
click(434,782)
sleep(800)
click(810,773)
sleep(28000)
click(1923,898)
sleep(2500)
click(841,320)
sleep(800)
click(434,782)
sleep(800)
click(810,773)
sleep(28000)
click(1900,800)
sleep(4000)
click(1900,800)
sleep(3000)
click(1860,1015)
sleep(9000)
}
固定点击的部分自己改吧,以后活动也能用,kong.jpg就是助战头像,apple.jpg就是金苹果图片。自己可以在while下一行加滑动以找到合适助战。