自动采集

wjdr
wangbing 12 months ago
parent f888d22f11
commit 4cb8a08854

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 986 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -217,7 +217,7 @@ public class PickLegend extends JFrame {
String legendName = name.split("#")[0];
String prefix = legendName + "#";
List<File> files = FileUtil.loopFiles(Legend.getDefaultBase(), pathname -> pathname.getName().startsWith(legendName));
List<File> files = FileUtil.loopFiles(Legend.getDefaultBase(), pathname -> pathname.getName().startsWith(prefix));
if (files.size() > 0) {
DialogUtil.confirm("提示", "存在相同图例,是否旧的删除?", result -> {
if (result) {

@ -83,11 +83,11 @@ public class MacroForWJDR extends JMacro {
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
new Task_(this, focusRect).run();
// new Task_自动采矿(this, focusRect).run();
// new Task_英雄招募领取(this, focusRect).run();
// new Task_任务奖励领取(this, focusRect).run();
// new Task_探险奖励领取(this, focusRect).run();
// new Task_邮件奖励领取(this, focusRect).run();
new Task_(this, focusRect).run();
}
} else {

@ -64,7 +64,7 @@ public class Task_仓库奖励领取 extends BaseTask {
macro.delay(1000);
Logger.info("检测下个包裹提示");
ViewRect _ = macro.matchLegend("仓库_距离下个包裹", 0.5);
ViewRect _ = macro.matchLegend("仓库_距离下个包裹", 0.3);
if (_ != null) {
Logger.info("关闭下个包裹提示");
macro.mouseLeftClick(_);

@ -43,7 +43,7 @@ public class Task_定位城镇 extends BaseTask {
}
}
{// 野外返回
ViewRect rect = macro.matchLegend("城镇", 0.9);
ViewRect rect = macro.matchLegend("城镇", 0.8);
if (rect != null) {
macro.mouseLeftClick(rect);
Logger.info("返回城镇");

@ -89,7 +89,7 @@ public class Task_自动野怪 extends BaseTask {
macro.mouseLeftClick(_);
Logger.info("定位【野外】");
ViewRect = macro.matchLegend("野外", 0.99);
ViewRect = macro.matchLegend("野外", 0.8);
if ( == null) {
Logger.error("定位【野外】失败,刷怪终止");
return;
@ -178,7 +178,7 @@ public class Task_自动野怪 extends BaseTask {
macro.mouseLeftClick(_);
Logger.info("等待搜索面板");
ViewRect __ = macro.waitAndMatchLegend("野外_搜索面板_搜索按钮", 0.9);
ViewRect __ = macro.waitAndMatchLegend("野外_搜索面板_搜索按钮", 0.6);
if (__ == null) {
Logger.error("未检测到【待搜索面板】,采矿终止");
return false;
@ -283,7 +283,7 @@ public class Task_自动野怪 extends BaseTask {
break;
}
ViewRect _ = macro.matchLegend("野外_资源搜索", 0.9);
ViewRect _ = macro.matchLegend("野外_资源搜索", 0.6);
if (_ == null) {
Logger.error("定位【野外_资源搜索】失败挑战终止");
return false;
@ -293,22 +293,22 @@ public class Task_自动野怪 extends BaseTask {
macro.mouseLeftClick(_);
macro.delay(1500);
ViewRect _ = macro.waitAndMatchLegend("野外_攻击", 0.9);
ViewRect _ = macro.waitAndMatchLegend("野外_攻击", 0.6);
if (_ != null) {
macro.mouseLeftClick(_);
macro.delay(1000);
macro.matchLegendAndClick("野外_攻击平均配置", 0.9);
macro.matchLegendAndClick("野外_攻击平均配置", 0.6);
macro.delay(1000);
boolean = macro.hasColor(macro.of(405, 899, 427, 915), "#f43b3b");
if () {
Logger.info("体力不足,取消");
macro.matchLegendAndClick("自动野怪_返回", 0.9);
macro.matchLegendAndClick("自动野怪_返回", 0.6);
return false;
}
ViewRect[] viewRects = macro.waitAndMatchLegends(macro.of("野外_攻击出征", "野外_资源无对队列"), 0.9);
ViewRect[] viewRects = macro.waitAndMatchLegends(macro.of("野外_攻击出征", "野外_资源无对队列"), 0.6);
if (viewRects[0] != null) {
Logger.info("出征");
macro.mouseLeftClick(viewRects[0]);

Loading…
Cancel
Save

Powered by TurnKey Linux.