王者荣耀速刷闯关,1920*1080

//写的不好见谅,望各位大神多多指教
//王者荣耀找色闯关
auto();
var zuo1=500,diYiZhang=300,diErZhang=600,diSanSiZhang=850,guanQia=250,nanDu=290;
var maoXianColor="#472d13",mx=1600,my=750;//冒险
var tiaoZhanColor="#c0ffff",tx=960,ty=530;//挑战
var panDuanTGColor="#00c1ff",pdx=500,pdy=151;//挑战界面上下标志
var diErZhangColor="#f3b16f",zjx=500,zjy=600;//第二章
var guanQiaSiColor1="#ff651d21",guanQiaSiColor="#ff2f3748",gqx=1050,gqy=250+300;//第四关卡加“1”为选中
var naDuColor="#fff6d5d5",ndx=1600,ndy=290+400;//难度大师
var xiYiBuColor="ff71bce2",xyx=1630,xyy=970;//下一步
var chuangGuanColor="#f3f3f3",cgx=1500,xgy=900;//闯关
//var jinDuTiaoColor="#ff435ea7",jdx=353,jdy=1032;//读条
var ziDongColor="#b6e0ee",zdx=1800,zdy=40;//自动
var tiaoGuoColor="#339fdb",tgx=1805,tgy=69;//跳过
var xinXinColor="#d48a16",xxx=960,xxy=314;//闯关结算星星
var ziCiColor="#e9a21f",zcx=1587,zcy=1018;//再次挑战,转至闯关*/
//alert(maoXianColor+tiaoZhanColor+diErZhangColor+guanQiaSiColor1+guanQiaSiColor+naDuColor+xiYiBuColor+chuangGuanColor+jinDuTiaoColor+ziDongColor+tiaoGuoColor+xinXinColor+ziCiColor);//测试是否声明成功
threads.start(function () {
//在子线程中调用observeKey()从而使按键事件处理在子线程执行
events.observeKey();
events.on("key_down", function (keyCode, events) {
//音量键关闭脚本24行到44行
if (keyCode == keys.volume_up) {
exit();
}
});
//关闭脚本提示框29行到40行
var w = floaty.window(
<frame gravity="center">
<text id="text" color="#00E1E1">|··········音量键关闭脚本··········|</text>
</frame>
);
w.setSize(800, 300);
w.setPosition(650, 60);
});

events.on("exit", function () {
toast("脚本已结束");
});

requestScreenCapture();

sleep(2000);
while(true){
while(true){
//var img = captureScreen();
//判断在该坐标的颜色是否为橙红色
if(images.detectsColor(captureScreen(), maoXianColor, 1600, 750)){
toast("点击冒险");
sleep(1500);
click(1600,750);
sleep(2000);
maoXianColor="ffffff";

	}else if(images.detectsColor(captureScreen(), tiaoZhanColor, 960, 533)){
		toast("点击挑战");
		//sleep(1500);
		click(960, 533);
		sleep(1500);
		tiaoZhanColor="ffffff";
		//panDuanTGColor="#00a9d7";
	}else if(images.detectsColor(captureScreen(), panDuanTGColor, 500, 151)){
		toast("选择第二章,第四关,大师难度,下一步");
		sleep(1500);
		swipe(500,300,500,850,2000);//上滑到顶,相当于初始化
		sleep(1500);
		click(500, diErZhang);//选择章节
		sleep(1500);
		click(1050, 300+guanQia);//关卡
		sleep(1500);
		click(1600, nanDu+400);//难度
		sleep(1500);
		click(xyx, xyy);//下一步
		sleep(2000);
		//panDuanTGColor="ffffff";
		//chuangGuanColor="#f3f3f3";
	}else if(images.detectsColor(captureScreen(), chuangGuanColor, 1500, 900)){
		toast("点击闯关");
		sleep(1500);
		click(cgx, xgy);
		sleep(1500);
		//chuangGuanColor="ffffff";
		
	}else if(images.detectsColor(captureScreen(), ziDongColor, 1800, 40)){
		toast("点击自动");
		sleep(2000);
		click(zdx, zdy);
		sleep(1500);
		ziDongColor="ffffff"
		//tiaoGuoColor="#339fdb";
	}else if(images.detectsColor(captureScreen(), tiaoGuoColor, 1805, 69)){
		toast("点击跳过");
		sleep(1000);
		click(tgx, tgy);
		sleep(1500);
		//tiaoGuoColor="ffffff";
		xinXinColor="#d48a16";
	}else if(images.detectsColor(captureScreen(), xinXinColor, 960, 314)){
		toast("点击任意位置");
		sleep(1500);
		click(cgx, xgy);
		sleep(1500);
		//xinXinColor="ffffff";
		//ziCiColor="#e9a21f";
	}else if(images.detectsColor(captureScreen(), ziCiColor, 1587, 1018)){
		toast("点击再次挑战");
		sleep(1500);
		click(zcx, zcy);
		sleep(1500);
		//ziCiColor="ffffff";
		maoXianColor="#472d13";
        tiaoZhanColor="#c0ffff";
        ziDongColor="#b6e0ee";
	}
}

}

  • 3
    帖子
  • 1352
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待