求一个王者荣耀刷金币的脚本,小米6
//改过了
coin = 56; //稷下战场金币
var msg, num = 0;
if (!requestScreenCapture(true)) {
toast("请求截图失败");
exit();
}
toast("手动一把冒险");
var w = floaty.window(
<frame>
<text id="text" textColor="#000000"></text>
</frame>
);
var msg = "次数:" + num + " " + " 金币:" + coin * num;
num++;
toast(msg);
ui.run(function () {
w.text.setText(msg);
});
w.setPosition(1550, 100);
w.setSize(280, 220);
findauto();
function findauto() {
while (true) {
sleep(300);
if (images.detectsColor(captureScreen(), "#158db8", 1792, 56)) {//找到自动
press(1792, 56, 500);
}
else if (images.detectsColor(captureScreen(), "#f1f7f9", 1780, 60, threshold = 16, algorithm = "diff")) {//相似找色,找到跳过
press(1850, 95, 200);
}
else if (images.detectsColor(captureScreen(), "#06161f", 1700, 1000)) {//点击屏幕继续
click(1700, 1000); //点击屏幕继续
sleep(1000);
}
else if (images.detectsColor(captureScreen(), "#d6821e", 1700, 1000)) {//找到再次挑战
sleep(1500);
images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff")
if (!images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff")) { //查看金币
toast("金币已满");
exit();
}
else {
var msg = "次数:" + num + " " + " 金币:" + coin * num;
num++;
toast(msg);
ui.run(function () {
w.text.setText(msg);
});
click(1700, 1000);
}
}
else if (images.detectsColor(captureScreen(), "#e7a025", 1460, 920)) {//找到闯关
click(1460, 920); //闯关
}
}
}
@o了吗 在 求一个王者荣耀刷金币的脚本,小米6 中说:
//改过了 coin = 56; //稷下战场金币 var msg, num = 0; if (!requestScreenCapture(true)) { toast("请求截图失败"); exit(); } toast("手动一把冒险"); var w = floaty.window( <frame> <text id="text" textColor="#000000"></text> </frame> ); var msg = "次数:" + num + " " + " 金币:" + coin * num; num++; toast(msg); ui.run(function () { w.text.setText(msg); }); w.setPosition(1550, 100); w.setSize(280, 220); findauto(); function findauto() { while (true) { sleep(300); if (images.detectsColor(captureScreen(), "#158db8", 1792, 56)) {//找到自动 press(1792, 56, 500); } else if (images.detectsColor(captureScreen(), "#f1f7f9", 1780, 60, threshold = 16, algorithm = "diff")) {//相似找色,找到跳过 press(1850, 95, 200); } else if (images.detectsColor(captureScreen(), "#06161f", 1700, 1000)) {//点击屏幕继续 click(1700, 1000); //点击屏幕继续 sleep(1000); } else if (images.detectsColor(captureScreen(), "#d6821e", 1700, 1000)) {//找到再次挑战 sleep(1500); images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff") if (!images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff")) { //查看金币 toast("金币已满"); exit(); } else { var msg = "次数:" + num + " " + " 金币:" + coin * num; num++; toast(msg); ui.run(function () { w.text.setText(msg); }); click(1700, 1000); } } else if (images.detectsColor(captureScreen(), "#e7a025", 1460, 920)) {//找到闯关 click(1460, 920); //闯关 } } }
[0_1520642564342_脚本](正在上传 0%)
@o了吗 在 求一个王者荣耀刷金币的脚本,小米6 中说:
//改过了 coin = 56; //稷下战场金币 var msg, num = 0; if (!requestScreenCapture(true)) { toast("请求截图失败"); exit(); } toast("手动一把冒险"); var w = floaty.window( <frame> <text id="text" textColor="#000000"></text> </frame> ); var msg = "次数:" + num + " " + " 金币:" + coin * num; num++; toast(msg); ui.run(function () { w.text.setText(msg); }); w.setPosition(1550, 100); w.setSize(280, 220); findauto(); function findauto() { while (true) { sleep(300); if (images.detectsColor(captureScreen(), "#158db8", 1792, 56)) {//找到自动 press(1792, 56, 500); } else if (images.detectsColor(captureScreen(), "#f1f7f9", 1780, 60, threshold = 16, algorithm = "diff")) {//相似找色,找到跳过 press(1850, 95, 200); } else if (images.detectsColor(captureScreen(), "#06161f", 1700, 1000)) {//点击屏幕继续 click(1700, 1000); //点击屏幕继续 sleep(1000); } else if (images.detectsColor(captureScreen(), "#d6821e", 1700, 1000)) {//找到再次挑战 sleep(1500); images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff") if (!images.detectsColor(captureScreen(), "#eeecce", 1490, 605, threshold = 16, algorithm = "diff")) { //查看金币 toast("金币已满"); exit(); } else { var msg = "次数:" + num + " " + " 金币:" + coin * num; num++; toast(msg); ui.run(function () { w.text.setText(msg); }); click(1700, 1000); } } else if (images.detectsColor(captureScreen(), "#e7a025", 1460, 920)) {//找到闯关 click(1460, 920); //闯关 } } }