diff --git a/repo.json b/repo.json index 65d0a0a9..72950181 100644 --- a/repo.json +++ b/repo.json @@ -1,5 +1,5 @@ { - "time": "20241107010207", + "time": "20241108104625", "url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip", "file": "repo.json", "indexes": [ @@ -4194,144 +4194,6 @@ } ] }, - { - "name": "石珀", - "type": "directory", - "children": [ - { - "name": "石珀1-虎牢山1-4个.json", - "type": "file", - "hash": "4c8c2afb1e6c5dff955298f241591f20022bb130", - "version": "4c8c2af", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀10-无妄坡1-2个.json", - "type": "file", - "hash": "d51d69711678485f0d9b0423c37cfae5fd7d80ec", - "version": "d51d697", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀11-孤云阁1-1个.json", - "type": "file", - "hash": "e69e3096ed0436c38578e660977744ac1ecd4cc7", - "version": "e69e309", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀2-虎牢山2-2个.json", - "type": "file", - "hash": "a79aba3c897c2136adc90a47b2dc33cf092d4d24", - "version": "a79aba3", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀3-虎牢山2-4个.json", - "type": "file", - "hash": "91051b6f6128ceed034988d65585f0a28a983992", - "version": "91051b6", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀4-层岩巨渊1-2个.json", - "type": "file", - "hash": "574c1e6d8bc5de5b8fe814177c00906790072f65", - "version": "574c1e6", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀5-清策庄1-2个.json", - "type": "file", - "hash": "2803cf49862a21ef7a69e1bb7c00cafd2bd0480b", - "version": "2803cf4", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀6-清策庄2-2个.json", - "type": "file", - "hash": "2b5837de8417a7c1d3922d098651c682a8e2d412", - "version": "2b5837d", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀7-清策庄3-1个.json", - "type": "file", - "hash": "4daf3a234efe977af0f484de832f6053da6d02ef", - "version": "4daf3a2", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀8-清策庄4-2个.json", - "type": "file", - "hash": "a612fcc39dba4bc984fb71f714ddf0193361dfbe", - "version": "a612fcc", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - }, - { - "name": "石珀9-奥藏山1-2个.json", - "type": "file", - "hash": "465ae5bf8049c393221d1d828c8bb7e4c047961e", - "version": "465ae5b", - "author": "yulalaa", - "description": "", - "tags": [ - "石珀", - "纳西妲" - ] - } - ] - }, { "name": "竹笋", "type": "directory", @@ -6730,6 +6592,15 @@ "description": "传送并自动秘境~|~BetterGI自带脚本,用于传送后并执行自动秘境", "tags": [] }, + { + "name": "AutoWoodcutting", + "type": "directory", + "hash": "a9e0ac5fa840a3c27857e04735a2070b92919206", + "version": "1.0", + "author": "愚溪 & ½ ", + "description": "自动伐木~|~前往并自动伐木", + "tags": [] + }, { "name": "AutoWoodmen", "type": "directory", @@ -6919,6 +6790,15 @@ "description": "尘歌壶~|~自动领诚哥壶奖励", "tags": [] }, + { + "name": "SetTime", + "type": "directory", + "hash": "6689fc3d1c34e32f4e965488d9ac7f3c21b4bd8a", + "version": "1.0", + "author": "愚溪", + "description": "调整游戏时间~|~用于调整游戏时间,请在调度器中使用", + "tags": [] + }, { "name": "Shutdown", "type": "directory", @@ -7454,6 +7334,34 @@ "久岐忍" ] }, + { + "name": "莱芭芙枫(1命万叶).txt", + "type": "file", + "hash": "dbd16dcf24d03432811d8f971f1c9eadb60b90fc", + "version": "dbd16dc", + "author": "烧冻鸡翅", + "description": "莱依拉、芭芭拉、芙宁娜三方保生存,芙宁娜和万叶聚怪输出,芭芭拉配置海染套", + "tags": [ + "莱依拉", + "芙宁娜", + "枫原万叶", + "芭芭拉" + ] + }, + { + "name": "莱芭芙枫(0命万叶).txt", + "type": "file", + "hash": "05716f0c9dd00a190868efb0d42444864bfb3df8", + "version": "05716f0", + "author": "烧冻鸡翅", + "description": "莱依拉、芭芭拉、芙宁娜三方保生存,芙宁娜和万叶聚怪输出,芭芭拉配置海染套", + "tags": [ + "莱依拉", + "芙宁娜", + "枫原万叶", + "芭芭拉" + ] + }, { "name": "莱芭芙纳.txt", "type": "file", diff --git a/repo/combat/莱芭芙枫(1命万叶).txt b/repo/combat/莱芭芙枫(1命万叶).txt new file mode 100644 index 00000000..e37f3f4b --- /dev/null +++ b/repo/combat/莱芭芙枫(1命万叶).txt @@ -0,0 +1,8 @@ +// 作者:烧冻鸡翅 +// 描述:莱依拉、芭芭拉、芙宁娜三方保生存,芙宁娜和万叶聚怪输出,芭芭拉配置海染套 + +莱依拉 e,q,e +芙宁娜 e,wait(0.3),q,wait(0.3),charge(1) +枫原万叶 e(hold),wait(0.3),attack,q,wait(1.5),e(hold),wait(0.3),attack +莱依拉 e,q,e +芭芭拉 e,q,e,attack(2),e,attack(2) diff --git a/repo/combat/莱芭芙枫(0命万叶).txt b/repo/combat/莱芭芙枫(0命万叶).txt new file mode 100644 index 00000000..2ea634c1 --- /dev/null +++ b/repo/combat/莱芭芙枫(0命万叶).txt @@ -0,0 +1,8 @@ +// 作者:烧冻鸡翅 +// 描述:莱依拉、芭芭拉、芙宁娜三方保生存,芙宁娜和万叶聚怪输出,芭芭拉配置海染套 + +莱依拉 e,q,e +芙宁娜 e,wait(0.3),q,wait(0.3),charge(1) +枫原万叶 e(hold),wait(0.3),attack,q, +莱依拉 e,q,e +芭芭拉 e,q,e,attack(2),e,attack(2) diff --git a/repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json b/repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json index 2bb710f9..a8c12f9e 100644 --- a/repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json +++ b/repo/js/AutoArtifacts/assets/AutoPath/欧庇克莱歌剧院东南.json @@ -12,7 +12,7 @@ "id": 1, "x": 3595.5517578125, "y": 3254.333251953125, - "type": "path", + "type": "teleport", "move_mode": "walk", "action": "" }, @@ -49,4 +49,4 @@ "action": "" } ] -} \ No newline at end of file +} diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/tp/桃椰子木12个tp.json b/repo/js/AutoWoodcutting/assets/AutoPath/tp/桃椰子木12个tp.json new file mode 100644 index 00000000..b76e1b8d --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/tp/桃椰子木12个tp.json @@ -0,0 +1,20 @@ +{ + "info": { + "name": "桃椰子木12个tp", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 8350.8408203125, + "y": -2844.587890625, + "action": "force_tp", + "move_mode": "walk", + "type": "teleport" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/tp/炬木15个tp.json b/repo/js/AutoWoodcutting/assets/AutoPath/tp/炬木15个tp.json new file mode 100644 index 00000000..296df5a9 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/tp/炬木15个tp.json @@ -0,0 +1,20 @@ +{ + "info": { + "name": "炬木15个tp", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 4716.53271484375, + "y": 2382.36767578125, + "action": "force_tp", + "move_mode": "walk", + "type": "teleport" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/业果木15个(辉木15个).json b/repo/js/AutoWoodcutting/assets/AutoPath/业果木15个(辉木15个).json new file mode 100644 index 00000000..cae15190 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/业果木15个(辉木15个).json @@ -0,0 +1,68 @@ +{ + "info": { + "name": "业果木15个(辉木15个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": 3135.693359375, + "y": -1079.69189453125 + }, + { + "id": 2, + "x": 3168.45068359375, + "y": -1080.99462890625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 3171.7421875, + "y": -1064.4404296875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 3185.36083984375, + "y": -1064.46875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 5, + "x": 3194.23291015625, + "y": -1082.80029296875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": 3210.9462890625, + "y": -1085.4306640625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 7, + "x": 3212.19482421875, + "y": -1077.3984375, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/刺葵木6个.json b/repo/js/AutoWoodcutting/assets/AutoPath/刺葵木6个.json new file mode 100644 index 00000000..2a3d86eb --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/刺葵木6个.json @@ -0,0 +1,28 @@ +{ + "info": { + "name": "刺葵木6个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 4209.8037109375, + "y": -2711.9990234375, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 4204.03271484375, + "y": -2726.19140625, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/却砂木12个.json b/repo/js/AutoWoodcutting/assets/AutoPath/却砂木12个.json new file mode 100644 index 00000000..3a3d533e --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/却砂木12个.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "却砂木12个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 341.3154296875, + "y": 548.126953125, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 404.1220703125, + "y": 515.765625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 3, + "x": 418.2958984375, + "y": 485.41650390625, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/垂香木15个.json b/repo/js/AutoWoodcutting/assets/AutoPath/垂香木15个.json new file mode 100644 index 00000000..fa52ea83 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/垂香木15个.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "垂香木15个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -521.603515625, + "y": 2181.3447265625, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": -545.5341796875, + "y": 2167.464599609375, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 3, + "x": -541.90625, + "y": 2160.69091796875, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/御伽木9个(孔雀木6个).json b/repo/js/AutoWoodcutting/assets/AutoPath/御伽木9个(孔雀木6个).json new file mode 100644 index 00000000..598bc4ee --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/御伽木9个(孔雀木6个).json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "御伽木9个(孔雀木6个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "有怪,快速退出重进能够刷新仇恨", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": -4217.919921875, + "y": -2397.8359375 + }, + { + "id": 2, + "x": -4188.4814453125, + "y": -2418.57421875, + "type": "path", + "move_mode": "fly", + "action": "stop_flying" + }, + { + "id": 5, + "x": -4186.791015625, + "y": -2429.5341796875, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/悬铃木18个.json b/repo/js/AutoWoodcutting/assets/AutoPath/悬铃木18个.json new file mode 100644 index 00000000..8265a08d --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/悬铃木18个.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "悬铃木18个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "force_tp", + "move_mode": "walk", + "type": "teleport", + "x": 4663.3974609375, + "y": 2446.1669921875 + }, + { + "id": 2, + "x": 4580.466796875, + "y": 2339.714111328125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 4570.798828125, + "y": 2339.628173828125, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/杉木12个.json b/repo/js/AutoWoodcutting/assets/AutoPath/杉木12个.json new file mode 100644 index 00000000..60b215e4 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/杉木12个.json @@ -0,0 +1,61 @@ +{ + "info": { + "name": "木材", + "type": "collect", + "country": "蒙德", + "author": "½", + "version": "", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -252.22467041015625, + "y": 2256.0646362304688, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": -218.61431884765625, + "y": 2284.0081787109375, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 3, + "x": -164.74041748046875, + "y": 2277.0416870117188, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 4, + "x": -122.7860107421875, + "y": 2247.2214965820312, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 5, + "x": -113.906005859375, + "y": 2256.1220703125, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 6, + "x": -32.19244384765625, + "y": 2237.5419921875, + "action": "stop_flying", + "move_mode": "fly", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/松木24个.json b/repo/js/AutoWoodcutting/assets/AutoPath/松木24个.json new file mode 100644 index 00000000..cda38b46 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/松木24个.json @@ -0,0 +1,37 @@ +{ + "info": { + "name": "木材", + "type": "collect", + "country": "蒙德", + "author": "½", + "version": "", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -749.86376953125, + "y": 2262.6113891601562, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": -788.388427734375, + "y": 2304.58642578125, + "action": "stop_flying", + "move_mode": "fly", + "type": "path" + }, + { + "id": 3, + "x": -788.2122802734375, + "y": 2303.1715698242188, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀6-清策庄2-2个.json b/repo/js/AutoWoodcutting/assets/AutoPath/枫木9个.json similarity index 52% rename from repo/pathing/石珀/石珀6-清策庄2-2个.json rename to repo/js/AutoWoodcutting/assets/AutoPath/枫木9个.json index b9591376..086ba31c 100644 --- a/repo/pathing/石珀/石珀6-清策庄2-2个.json +++ b/repo/js/AutoWoodcutting/assets/AutoPath/枫木9个.json @@ -1,40 +1,44 @@ { "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "清册装2", - "description": "", + "name": "枫木9个", "type": "collect", - "author": "yulalaa" + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" }, "positions": [ { - "x": 839.8701171875, - "y": 1532.546875, + "id": 1, + "action": "", + "move_mode": "walk", "type": "teleport", - "move_mode": "walk", - "action": "" + "x": -3812.6591796875, + "y": -2546.5625 }, { - "x": 845.435546875, - "y": 1567.111328125, + "id": 2, + "x": -3795.1669921875, + "y": -2617.5458984375, "type": "path", "move_mode": "walk", "action": "" }, { - "x": 837.392578125, - "y": 1593.37744140625, + "id": 3, + "x": -3766.388671875, + "y": -2601.5546875, "type": "path", "move_mode": "walk", "action": "" }, { - "x": 836.771484375, - "y": 1596.21337890625, + "id": 4, + "x": -3759.7255859375, + "y": -2593.5146484375, "type": "target", "move_mode": "walk", - "action": "nahida_collect" + "action": "" } ] } \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/柽木15个.json b/repo/js/AutoWoodcutting/assets/AutoPath/柽木15个.json new file mode 100644 index 00000000..645e3954 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/柽木15个.json @@ -0,0 +1,68 @@ +{ + "info": { + "name": "柽木15个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": 4096.009765625, + "y": -2025.96435546875 + }, + { + "id": 2, + "x": 4110.787109375, + "y": -2041.79638671875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 4126.13525390625, + "y": -2046.67822265625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 4148.607421875, + "y": -2041.6953125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 5, + "x": 4204.21337890625, + "y": -2080.595703125, + "type": "path", + "move_mode": "fly", + "action": "" + }, + { + "id": 6, + "x": 4216.78125, + "y": -2076.8701171875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 8, + "x": 4215.2216796875, + "y": -2063.080078125, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/桦木15个.json b/repo/js/AutoWoodcutting/assets/AutoPath/桦木15个.json new file mode 100644 index 00000000..6d99c328 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/桦木15个.json @@ -0,0 +1,29 @@ +{ + "info": { + "name": "木材", + "type": "collect", + "country": "蒙德", + "author": "½", + "version": "", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -1330.6689453125, + "y": 2563.420654296875, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": -1344.431884765625, + "y": 2520.51025390625, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/梦见木12个.json b/repo/js/AutoWoodcutting/assets/AutoPath/梦见木12个.json new file mode 100644 index 00000000..0f368278 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/梦见木12个.json @@ -0,0 +1,84 @@ +{ + "info": { + "name": "梦见木12个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": -4232.123046875, + "y": -3001.9501953125, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": -4208.490234375, + "y": -2948.349609375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": -4187.43359375, + "y": -2906.2412109375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": -4131.2900390625, + "y": -2905.8564453125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 5, + "x": -4043.876953125, + "y": -2950.7861328125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": -3986.6220703125, + "y": -2952.34375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 7, + "x": -3986.4638671875, + "y": -2967.8447265625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 8, + "x": -3980.66796875, + "y": -2978.8486328125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 9, + "x": -3999.20703125, + "y": -2977.005859375, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个(悬铃木9个).json b/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个(悬铃木9个).json new file mode 100644 index 00000000..240cb372 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个(悬铃木9个).json @@ -0,0 +1,44 @@ +{ + "info": { + "name": "椴木9个(悬铃木9个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 3383.2158203125, + "y": 2692.23779296875, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 3370.44482421875, + "y": 2702.470703125, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 3239.8525390625, + "y": 2762.513916015625, + "type": "path", + "move_mode": "fly", + "action": "stop_flying" + }, + { + "id": 5, + "x": 3251.6640625, + "y": 2763.403076171875, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个.json b/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个.json new file mode 100644 index 00000000..492056a1 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/椴木9个.json @@ -0,0 +1,44 @@ +{ + "info": { + "name": "椴木9个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 4984.4248046875, + "y": 1699.8203125, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 4991.94873046875, + "y": 1734.0322265625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 3, + "x": 4970.080078125, + "y": 1799.18310546875, + "action": "stop_flying", + "move_mode": "fly", + "type": "path" + }, + { + "id": 4, + "x": 4975.736328125, + "y": 1809.29638671875, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/灰灰楼木6个.json b/repo/js/AutoWoodcutting/assets/AutoPath/灰灰楼木6个.json new file mode 100644 index 00000000..37af5160 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/灰灰楼木6个.json @@ -0,0 +1,44 @@ +{ + "info": { + "name": "灰灰楼木6个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 3, + "x": 8978.330078125, + "y": -1872.3369140625, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 8996.033203125, + "y": -1838.43505859375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 9008.49609375, + "y": -1791.96484375, + "type": "path", + "move_mode": "fly", + "action": "stop_flying" + }, + { + "id": 4, + "x": 9009.5966796875, + "y": -1781.61328125, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木15个.json b/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木15个.json new file mode 100644 index 00000000..19163a8e --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木15个.json @@ -0,0 +1,52 @@ +{ + "info": { + "name": "燃爆木15个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 9038.814453125, + "y": -2429.361328125, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 9037.24609375, + "y": -2454.447265625, + "type": "path", + "move_mode": "climb", + "action": "" + }, + { + "id": 3, + "x": 9066.744140625, + "y": -2498.119140625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": 9043.6044921875, + "y": -2501.2275390625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": 9049.6533203125, + "y": -2514.849609375, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木6个(白栗栎木6个).json b/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木6个(白栗栎木6个).json new file mode 100644 index 00000000..42661423 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/燃爆木6个(白栗栎木6个).json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "燃爆木6个(白栗栎木6个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 7234.2099609375, + "y": -1433.29736328125, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 2, + "x": 7208.298828125, + "y": -1426.84521484375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 7201.96875, + "y": -1436.07080078125, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/白梣木15个.json b/repo/js/AutoWoodcutting/assets/AutoPath/白梣木15个.json new file mode 100644 index 00000000..e770f29a --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/白梣木15个.json @@ -0,0 +1,44 @@ +{ + "info": { + "name": "白梣木15个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 4689.3056640625, + "y": 2429.53515625, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 4715.36328125, + "y": 2458.4765625, + "action": "stop_flying", + "move_mode": "fly", + "type": "path" + }, + { + "id": 3, + "x": 4726.62255859375, + "y": 2483.402587890625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 4, + "x": 4729.75634765625, + "y": 2478.175537109375, + "action": "", + "move_mode": "walk", + "type": "target" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/竹节30个.json b/repo/js/AutoWoodcutting/assets/AutoPath/竹节30个.json new file mode 100644 index 00000000..91c6c3b1 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/竹节30个.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "竹节", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": 840.02734375, + "y": 1532.52197265625 + }, + { + "id": 2, + "x": 814.2734375, + "y": 1515.693359375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 809.29296875, + "y": 1514.77685546875, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/萃华木6个(垂香木3个).json b/repo/js/AutoWoodcutting/assets/AutoPath/萃华木6个(垂香木3个).json new file mode 100644 index 00000000..f78619fe --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/萃华木6个(垂香木3个).json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "萃华木6个(垂香木3个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 2, + "x": -1120.9453125, + "y": 2190.656494140625, + "type": "teleport", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": -1153.9638671875, + "y": 2190.605712890625, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 4, + "x": -1156.3017578125, + "y": 2177.168212890625, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/证悟木15个(业果木6个).json b/repo/js/AutoWoodcutting/assets/AutoPath/证悟木15个(业果木6个).json new file mode 100644 index 00000000..2790f8c5 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/证悟木15个(业果木6个).json @@ -0,0 +1,60 @@ +{ + "info": { + "name": "证悟木15个(业果木6个)", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "x": 3135.5771484375, + "y": -1079.73974609375, + "action": "", + "move_mode": "walk", + "type": "teleport" + }, + { + "id": 2, + "x": 3153.193359375, + "y": -1082.57275390625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 3, + "x": 3151.31201171875, + "y": -1104.5791015625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 4, + "x": 3164.52392578125, + "y": -1125.92822265625, + "action": "", + "move_mode": "walk", + "type": "path" + }, + { + "id": 5, + "x": 3150.6611328125, + "y": -1130.53662109375, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 6, + "x": 3158.96923828125, + "y": -1139.24755859375, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/AutoPath/香柏木27个.json b/repo/js/AutoWoodcutting/assets/AutoPath/香柏木27个.json new file mode 100644 index 00000000..06a0e9fb --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/AutoPath/香柏木27个.json @@ -0,0 +1,36 @@ +{ + "info": { + "name": "香柏木27个", + "type": "collect", + "author": "愚溪", + "version": "1.0", + "description": "", + "bgiVersion": "0.35.1" + }, + "positions": [ + { + "id": 1, + "action": "", + "move_mode": "walk", + "type": "teleport", + "x": 3923.1171875, + "y": 4233.8603515625 + }, + { + "id": 2, + "x": 3911.77099609375, + "y": 4212.8466796875, + "type": "path", + "move_mode": "walk", + "action": "" + }, + { + "id": 3, + "x": 3921.013671875, + "y": 4196.92578125, + "type": "target", + "move_mode": "walk", + "action": "" + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/KeyMouse/桃椰子木12个.json b/repo/js/AutoWoodcutting/assets/KeyMouse/桃椰子木12个.json new file mode 100644 index 00000000..e56ff333 --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/KeyMouse/桃椰子木12个.json @@ -0,0 +1,279 @@ +{ + "macroEvents": [ + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 0.0000 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 11127.9408 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 13119.9760 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 17400.0108 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 18504.0088 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 27312.0632 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 28128.0973 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 29240.0663 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 29912.0759 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 31736.1294 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 31904.0885 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 32144.0983 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 32864.1012 + }, + { + "type": 0, + "keyCode": 32, + "mouseX": 0, + "mouseY": 0, + "time": 33288.1407 + }, + { + "type": 1, + "keyCode": 32, + "mouseX": 0, + "mouseY": 0, + "time": 33432.1196 + }, + { + "type": 0, + "keyCode": 32, + "mouseX": 0, + "mouseY": 0, + "time": 33616.1026 + }, + { + "type": 1, + "keyCode": 32, + "mouseX": 0, + "mouseY": 0, + "time": 33736.1158 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 40600.1535 + }, + { + "type": 0, + "keyCode": 84, + "mouseX": 0, + "mouseY": 0, + "time": 43000.0000 + }, + { + "type": 1, + "keyCode": 84, + "mouseX": 0, + "mouseY": 0, + "time": 43071.8735 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 46591.9060 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 47047.9336 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 47615.9255 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 50271.9249 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 51143.9303 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 51839.9301 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 52239.9472 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 53279.9313 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 64328.0135 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 67096.0170 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 67448.0209 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 75544.7151 + }, + { + "type": 0, + "keyCode": 81, + "mouseX": 0, + "mouseY": 0, + "time": 77153.2237 + }, + { + "type": 1, + "keyCode": 81, + "mouseX": 0, + "mouseY": 0, + "time": 78120.1226 + }, + { + "type": 0, + "keyCode": 68, + "mouseX": 0, + "mouseY": 0, + "time": 80768.1293 + }, + { + "type": 1, + "keyCode": 68, + "mouseX": 0, + "mouseY": 0, + "time": 81536.1748 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 82560.1130 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 85536.1748 + } + ], + "info": { + "name": "", + "description": "", + "x": 0, + "y": 0, + "width": 1920, + "height": 1080, + "recordDpi": 1 + } +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/assets/KeyMouse/炬木15个.json b/repo/js/AutoWoodcutting/assets/KeyMouse/炬木15个.json new file mode 100644 index 00000000..b1dcdf8c --- /dev/null +++ b/repo/js/AutoWoodcutting/assets/KeyMouse/炬木15个.json @@ -0,0 +1,69 @@ +{ + "macroEvents": [ + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 1619.1371 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 4843.0322 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 5555.1643 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 8195.0398 + }, + { + "type": 0, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 8939.0689 + }, + { + "type": 1, + "keyCode": 65, + "mouseX": 0, + "mouseY": 0, + "time": 10259.1104 + }, + { + "type": 0, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 11155.0806 + }, + { + "type": 1, + "keyCode": 87, + "mouseX": 0, + "mouseY": 0, + "time": 11655.0806 + } + ], + "info": { + "name": "", + "description": "", + "x": 0, + "y": 0, + "width": 1920, + "height": 1080, + "recordDpi": 1 + } +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/main.js b/repo/js/AutoWoodcutting/main.js new file mode 100644 index 00000000..7b1c9f1e --- /dev/null +++ b/repo/js/AutoWoodcutting/main.js @@ -0,0 +1,172 @@ +(async function () { + const defaultExitDelay = 10000; + const defaultLoadingDelay = 13000; + const seen = new Set(); + + function validateAndSetDefaults(exitDelay, loadingDelay) { + if (isNaN(exitDelay) || exitDelay <= 0) { + log.warn("你没有设置退出延迟,将使用默认值"); + exitDelay = defaultExitDelay; + } + if (isNaN(loadingDelay) || loadingDelay <= 0) { + log.warn("你没有设置加载延迟,将使用默认值"); + loadingDelay = defaultLoadingDelay; + } + return { exitDelay, loadingDelay }; + } + + async function runGameActionsMultipleTimes(times, locationName) { + for (let i = 0; i < times; i++) { + await sleep(1000); + keyPress("ESCAPE"); + await sleep(1000); + click(50, 1030); + await sleep(1000); + click(1000, 750); + await sleep(validatedExitDelay); + click(1000, 550); + await sleep(validatedLoadingDelay); + keyPress("z"); + log.info(`${locationName} 循环次数:${i + 1}/${times}`); + } + } + + async function resetMap() { + log.info("重置地图大小..."); + await sleep(1000); + keyPress("M"); + await sleep(1000); + click(1840, 1010); + await sleep(1000); + click(1450, 460); + await sleep(1000); + click(1840, 1010); + await sleep(1000); + click(1450, 140); + await sleep(1000); + keyPress("M"); + log.info("重置地图大小完成"); + } + + async function KeyMouse(locationNameEx) { + log.info(`前往 ${locationNameEx}`); + let tpPath = `assets/AutoPath/tp/${locationNameEx}tp.json`; + let filePath = `assets/KeyMouse/${locationNameEx}.json`; + + try { + await pathingScript.runFile(tpPath); + await sleep(1000); + await keyMouseScript.runFile(filePath); + } catch (error) { + log.error(`执行 ${locationNameEx} 脚本时发生错误: ${error}`); + } + await sleep(1000); + } + + async function woodcutting(locationName) { + log.info(`砍伐 ${locationName}`); + if (!map[locationName]) { + log.info(`未找到 ${locationName} 对应的木材`); + return; + } + + const { description, available, times } = map[locationName]; + if (description === 'NULL' || !description) { + log.info(`${locationName} 暂不支持`); + return; + } + + if (Array.from(seen).some(item => item.includes(locationName))) { + log.info(`${locationName} 已经砍伐过,将执行下一个`); + return; + } + + log.info(`前往 ${description}`); + await sleep(1000); + + try { + if (locationName === "炬木" || locationName === "桃椰子木") { + await KeyMouse(description); + } else { + const filePath = `assets/AutoPath/${description}.json`; + await pathingScript.runFile(filePath); + } + + await sleep(1000); + + if (!available) { + await runGameActionsMultipleTimes(times, description); + } else { + await dispatcher.runTask(new SoloTask("AutoWood")); + } + + seen.add(map[locationName].description); + log.info(`${locationName} 伐木完成,将执行下一个`); + log.info(`已运行木材: ${[...seen].join(", ")}`); + } catch (error) { + log.error(`在砍伐 ${locationName} 时发生错误: ${error}`); + } + } + + // Set game environment settings + setGameMetrics(1920, 1080, 1); + + const map = { + '桦木': { description: '桦木15个', available: true, times: 134 }, + '萃华木': { description: '萃华木6个(垂香木3个)', available: true, times: 334 }, + '松木': { description: '松木24个', available: true, times: 84 }, + '却砂木': { description: '却砂木12个', available: true, times: 167 }, + '竹节': { description: '竹节30个', available: true, times: 67 }, + '垂香木': { description: '垂香木15个', available: true, times: 134 }, + '杉木': { description: '杉木12个', available: true, times: 167 }, + '梦见木': { description: '梦见木12个', available: true, times: 167 }, + '枫木': { description: '枫木9个', available: true, times: 223 }, + '孔雀木': { description: '御伽木9个(孔雀木6个)', available: false, times: 334 },//利用手动重置仇恨 + '御伽木': { description: '御伽木9个(孔雀木6个)', available: false, times: 334 },//利用手动重置仇恨 + '辉木': { description: '业果木15个(辉木15个)', available: true, times: 134 }, + '业果木': { description: '业果木15个(辉木15个)', available: true, times: 134 }, + '证悟木': { description: '证悟木15个(业果木6个)', available: true, times: 334 }, + '刺葵木': { description: '刺葵木6个', available: true, times: 334 }, + '柽木': { description: '柽木15个', available: false, times: 134 }, + '悬铃木': { description: '悬铃木18个', available: true, times: 112 }, + '椴木': { description: '椴木9个', available: true, times: 223 }, + '白梣木': { description: '白梣木15个', available: true, times: 134 }, + '香柏木': { description: '香柏木27个', available: true, times: 75 }, + '炬木': { description: '炬木15个', available: true, times: 134 }, + '白栗栎木': { description: '燃爆木6个(白栗栎木6个)', available: false, times: 334 }, + '灰灰楼林木': { description: '灰灰楼木6个', available: false, times: 334 }, + '燃爆木': { description: '燃爆木15个', available: false, times: 134 }, + '桃椰子木': { description: '桃椰子木12个', available: false, times: 167 } + }; + + let exitdelay = Number(settings.exitdelay); + let loadingdelay = Number(settings.loadingdelay); + const { exitDelay: validatedExitDelay, loadingDelay: validatedLoadingDelay } = validateAndSetDefaults(exitdelay, loadingdelay); + + const messages = [ + '确保装备有[王树瑞佑]', + '确保使用小道具快捷键为Z键', + '确保开启了BGI独立任务中自动伐木的“启用OCR伐木数量限制”', + '若要运行炬木或桃椰子木:', + '运行时是琳妮特前台且拥有双风共鸣', + '元素共鸣需要四个角色组队触发,仅两个风系角色无效', + '不要带其他有移速加成的角色' + ]; + for (let message of messages) { + log.info(message); + await sleep(1000); + } + + log.info('自动伐木开始...'); + log.info(`退出延迟: ${validatedExitDelay}毫秒, 加载延迟: ${validatedLoadingDelay}毫秒`); + + let woodsArray = settings.woods.split(" "); + await resetMap(); + for (const wood of woodsArray) { + if (wood.trim()) { + await woodcutting(wood); + } else { + log.info('请在自定义选项输入木材名,用空格隔开'); + } + } +})(); diff --git a/repo/js/AutoWoodcutting/manifest.json b/repo/js/AutoWoodcutting/manifest.json new file mode 100644 index 00000000..8e8cf5e3 --- /dev/null +++ b/repo/js/AutoWoodcutting/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "自动伐木", + "version": "1.0", + "description": "前往并自动伐木", + "authors": [ + { + "name": "愚溪 & ½ ", + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/settings.json b/repo/js/AutoWoodcutting/settings.json new file mode 100644 index 00000000..3652103d --- /dev/null +++ b/repo/js/AutoWoodcutting/settings.json @@ -0,0 +1,138 @@ +[ + { + "name": "woods", + "type": "input-text", + "label": "木材种类:使用空格分隔" + }, + { + "name": "exitdelay", + "type": "input-text", + "label": "退出延迟(毫秒)(选填)" + }, + { + "name": "loadingdelay", + "type": "input-text", + "label": "加载延迟(毫秒)(选填)" + } + // { + // "name": "桦木", + // "type": "checkbox", + // "label": "桦木" + // }, + // { + // "name": "萃华木", + // "type": "checkbox", + // "label": "萃华木" + // }, + // { + // "name": "松木", + // "type": "checkbox", + // "label": "松木" + // }, + // { + // "name": "却砂木", + // "type": "checkbox", + // "label": "却砂木" + // }, + // { + // "name": "竹节", + // "type": "checkbox", + // "label": "竹节" + // }, + // { + // "name": "垂香木", + // "type": "checkbox", + // "label": "垂香木" + // }, + // { + // "name": "杉木", + // "type": "checkbox", + // "label": "杉木" + // }, + // { + // "name": "梦见木", + // "type": "checkbox", + // "label": "梦见木" + // }, + // { + // "name": "枫木", + // "type": "checkbox", + // "label": "枫木" + // }, + // { + // "name": "孔雀木", + // "type": "checkbox", + // "label": "孔雀木" + // }, + // { + // "name": "御伽木", + // "type": "checkbox", + // "label": "御伽木" + // }, + // { + // "name": "辉木", + // "type": "checkbox", + // "label": "辉木" + // }, + // { + // "name": "业果木", + // "type": "checkbox", + // "label": "业果木" + // }, + // { + // "name": "证悟木", + // "type": "checkbox", + // "label": "证悟木" + // }, + // { + // "name": "刺葵木", + // "type": "checkbox", + // "label": "刺葵木" + // }, + // { + // "name": "柽木", + // "type": "checkbox", + // "label": "柽木" + // }, + // { + // "name": "悬铃木", + // "type": "checkbox", + // "label": "悬铃木" + // }, + // { + // "name": "椴木", + // "type": "checkbox", + // "label": "椴木" + // }, + // { + // "name": "白梣木", + // "type": "checkbox", + // "label": "白梣木" + // }, + // { + // "name": "香柏木", + // "type": "checkbox", + // "label": "香柏木" + // }, + // { + // "name": "炬木", + // "type": "checkbox", + // "label": "炬木" + // }, + // { + // "name": "白栗栎木", + // "type": "checkbox", + // "label": "白栗栎木" + // }, + // { + // "name": "灰灰楼林木", + // "type": "checkbox", + // "label": "灰灰楼林木" + // }, + // { + // "name": "燃爆木", + // "type": "checkbox", + // "label": "燃爆木" + // } + +] \ No newline at end of file diff --git a/repo/js/AutoWoodcutting/全部木材.txt b/repo/js/AutoWoodcutting/全部木材.txt new file mode 100644 index 00000000..c858d6cd --- /dev/null +++ b/repo/js/AutoWoodcutting/全部木材.txt @@ -0,0 +1,4 @@ +全部木材: +桦木 萃华木 松木 却砂木 竹节 垂香木 杉木 梦见木 枫木 孔雀木 御伽木 辉木 业果木 证悟木 刺葵木 柽木 悬铃木 椴木 白梣木 香柏木 炬木 白栗栎木 灰灰楼林木 燃爆木 桃椰子木 + +涉及炬木、桃椰子木的队伍要求:双风共鸣且琳妮特前台 \ No newline at end of file diff --git a/repo/js/SetTime/main.js b/repo/js/SetTime/main.js new file mode 100644 index 00000000..b4d0af0f --- /dev/null +++ b/repo/js/SetTime/main.js @@ -0,0 +1,70 @@ +(async function () { + setGameMetrics(1920, 1080, 2); // 设置游戏窗口大小和DPI + //拖动鼠标 + async function moveMouseSmoothly(x1, y1, x2, y2) { + const deltaX = x2 - x1; + const deltaY = y2 - y1; + const steps = Math.max(Math.abs(deltaX), Math.abs(deltaY)); + const stepX = deltaX / steps; + const stepY = deltaY / steps; + await moveMouseTo(x1, y1); + await leftButtonDown(); + for (let i = 1; i <= steps; i++) { + const newX = x1 + stepX * i; + const newY = y1 + stepY * i; + const validX = Math.round(newX); + const validY = Math.round(newY); + await moveMouseTo(validX, validY); + await sleep(10); + } + await leftButtonUp(); + } + //设定时间 + async function settime(time) { + const centerX = 1441; + const centerY = 501; + const radius = 100; + let angle; + angle = (90 + time * 15) % 360; + angle = angle >= 0 ? angle : 360 + angle; + const angle1 = (angle + 90) % 360; + const angle2 = (angle + 180) % 360; + const angle3 = (angle + 270) % 360; + const radians = angle * (Math.PI / 180); + const radians1 = angle1 * (Math.PI / 180); + const radians2 = angle2 * (Math.PI / 180); + const radians3 = angle3 * (Math.PI / 180); + const x = centerX + radius * Math.cos(radians); + const y = centerY + radius * Math.sin(radians); + const x1 = centerX + radius * Math.cos(radians1); + const y1 = centerY + radius * Math.sin(radians1); + const x2 = centerX + radius * Math.cos(radians2); + const y2 = centerY + radius * Math.sin(radians2); + const x3 = centerX + radius * Math.cos(radians3); + const y3 = centerY + radius * Math.sin(radians3); + + // 输出最终的坐标 + await sleep(2000); + await moveMouseSmoothly(centerX,centerY, x1,y1); + await sleep(2000); + await moveMouseSmoothly(centerX,centerY, x2,y2); + await sleep(2000); + await moveMouseSmoothly(centerX,centerY, x3,y3); + await sleep(2000); + await moveMouseSmoothly(centerX,centerY, x,y); + } + //设置时间 + log.info('设置时间到{xy}点',settings.time); + await keyPress("Escape"); + await sleep(1000); + await click(50,700); + await sleep(2000); + await settime(settings.time) + await sleep(3000); + await click(1500,1000);//确认 + await sleep(20000); + await keyPress("Escape"); + await sleep(2000); + await keyPress("Escape"); + await sleep(2000); +})(); \ No newline at end of file diff --git a/repo/js/SetTime/manifest.json b/repo/js/SetTime/manifest.json new file mode 100644 index 00000000..95a47bdb --- /dev/null +++ b/repo/js/SetTime/manifest.json @@ -0,0 +1,13 @@ +{ + "manifest_version": 1, + "name": "调整游戏时间", + "version": "1.0", + "description": "用于调整游戏时间,请在调度器中使用", + "authors": [ + { + "name": "愚溪", + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/SetTime/settings.json b/repo/js/SetTime/settings.json new file mode 100644 index 00000000..554d13cd --- /dev/null +++ b/repo/js/SetTime/settings.json @@ -0,0 +1,7 @@ +[ + { + "name": "time", + "type": "input-text", + "label": "输入时间 [0-24] " + } +] \ No newline at end of file diff --git a/repo/pathing/石珀/石珀1-虎牢山1-4个.json b/repo/pathing/石珀/石珀1-虎牢山1-4个.json deleted file mode 100644 index 916c2633..00000000 --- a/repo/pathing/石珀/石珀1-虎牢山1-4个.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "虎牢山1", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 1806.029296875, - "y": 699.9052734375, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 1819.9977299555067, - "y": 680.75, - "type": "path", - "move_mode": "fly", - "action": "stop_flying" - }, - { - "x": 1829.0029296875, - "y": 666.88720703125, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 1829.15234375, - "y": 667.8740234375, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1825.28125, - "y": 670.03759765625, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1826.4404296875, - "y": 665.189453125, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀10-无妄坡1-2个.json b/repo/pathing/石珀/石珀10-无妄坡1-2个.json deleted file mode 100644 index 5bb09fb0..00000000 --- a/repo/pathing/石珀/石珀10-无妄坡1-2个.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "巫王珀1-2", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 289.466796875, - "y": 1667.30517578125, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 286.6298828125, - "y": 1666.24609375, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 283.0439453125, - "y": 1664.419921875, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 282.3515625, - "y": 1661.42578125, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 281.755859375, - "y": 1658.455078125, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 280.33203125, - "y": 1654.89306640625, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 278.1640625, - "y": 1652.96240234375, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 276.59765625, - "y": 1651.6884765625, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 273.7265625, - "y": 1646.73681640625, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 273.0556640625, - "y": 1645.92724609375, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 278.109375, - "y": 1643.64990234375, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 268.560546875, - "y": 1649.67822265625, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀11-孤云阁1-1个.json b/repo/pathing/石珀/石珀11-孤云阁1-1个.json deleted file mode 100644 index 83b5417e..00000000 --- a/repo/pathing/石珀/石珀11-孤云阁1-1个.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "info":{ - "bgi_version":"0.34.5", - "version":"1.0", - "name":"孤云阁1-1", - "description":"", - "type":"collect", - "author":"yulalaa" - }, - "positions":[ - { - "x":-963.419921875, - "y":-288.93212890625, - "type":"teleport", - "move_mode":"walk", - "action":"" - }, - { - "x":-964.1103515625, - "y":-254.16943359375, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":-962.9423828125, - "y":-250.37744140625, - "type":"target", - "move_mode":"walk", - "action":"nahida_collect" - }, - { - "x":-962.8544921875, - "y":-249.765625, - "type":"target", - "move_mode":"walk", - "action":"" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀2-虎牢山2-2个.json b/repo/pathing/石珀/石珀2-虎牢山2-2个.json deleted file mode 100644 index 229d6cf0..00000000 --- a/repo/pathing/石珀/石珀2-虎牢山2-2个.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "虎牢山2", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 1794.19140625, - "y": 717.47314453125, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 1799.2568359375, - "y": 738.9970703125, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1796.544921875, - "y": 750.96044921875, - "type": "path", - "move_mode": "fly", - "action": "stop_flying" - }, - { - "x": 1800.0947265625, - "y": 748.8349609375, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 1795.55078125, - "y": 749.1826171875, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1804.2109375, - "y": 750.05322265625, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀3-虎牢山2-4个.json b/repo/pathing/石珀/石珀3-虎牢山2-4个.json deleted file mode 100644 index 3598c6d0..00000000 --- a/repo/pathing/石珀/石珀3-虎牢山2-4个.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "虎牢山2-4", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 1813.3720703125, - "y": 712.63818359375, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 1828.9697265625, - "y": 711.7939453125, - "type": "path", - "move_mode": "fly", - "action": "stop_flying" - }, - { - "x": 1854.9052734375, - "y": 710.45654296875, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1859.2705078125, - "y": 710.43701171875, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 1858.2978515625, - "y": 711.3203125, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1855.3671875, - "y": 712.6943359375, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1857.8056640625, - "y": 714.37939453125, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1856.2548828125, - "y": 715.322265625, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1858.19921875, - "y": 712.96826171875, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1860.3681640625, - "y": 709.51025390625, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1864.3818359375, - "y": 705.3603515625, - "type": "target", - "move_mode": "walk", - "action": "" - }, - { - "x": 1860.369140625, - "y": 704.39111328125, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 1855.73828125, - "y": 703.3154296875, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀4-层岩巨渊1-2个.json b/repo/pathing/石珀/石珀4-层岩巨渊1-2个.json deleted file mode 100644 index 60976a5d..00000000 --- a/repo/pathing/石珀/石珀4-层岩巨渊1-2个.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "曾言剧院1", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 1998.1064453125, - "y": -678.54541015625, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 1998.115234375, - "y": -644.91259765625, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 1999.69140625, - "y": -648.62841796875, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀5-清策庄1-2个.json b/repo/pathing/石珀/石珀5-清策庄1-2个.json deleted file mode 100644 index 15735ecf..00000000 --- a/repo/pathing/石珀/石珀5-清策庄1-2个.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "info":{ - "bgi_version":"0.34.5", - "version":"1.0", - "name":"清册装1", - "description":"", - "type":"collect", - "author":"yulalaa" - }, - "positions":[ - { - "x":801.57421875, - "y":1796.1171875, - "type":"teleport", - "move_mode":"walk", - "action":"" - }, - { - "x":792.5625, - "y":1787.0478515625, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":781.201171875, - "y":1785.21826171875, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":772.90234375, - "y":1785.7490234375, - "type":"target", - "move_mode":"walk", - "action":"nahida_collect" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀7-清策庄3-1个.json b/repo/pathing/石珀/石珀7-清策庄3-1个.json deleted file mode 100644 index ed996c5e..00000000 --- a/repo/pathing/石珀/石珀7-清策庄3-1个.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "清册装3完成1个", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 547.7353515625, - "y": 1766.80908203125, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 509.052734375, - "y": 1826.19677734375, - "type": "path", - "move_mode": "fly", - "action": "" - }, - { - "x": 508.8544921875, - "y": 1826.0107421875, - "type": "path", - "move_mode": "walk", - "action": "nahida_collect" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀8-清策庄4-2个.json b/repo/pathing/石珀/石珀8-清策庄4-2个.json deleted file mode 100644 index df96fe99..00000000 --- a/repo/pathing/石珀/石珀8-清策庄4-2个.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "info": { - "bgi_version": "0.34.5", - "version": "1.0", - "name": "清册装32个", - "description": "", - "type": "collect", - "author": "yulalaa" - }, - "positions": [ - { - "x": 547.689453125, - "y": 1766.78662109375, - "type": "teleport", - "move_mode": "walk", - "action": "" - }, - { - "x": 540.6123046875, - "y": 1770.8388671875, - "type": "path", - "move_mode": "walk", - "action": "" - }, - { - "x": 520.9853515625, - "y": 1810.00244140625, - "type": "path", - "move_mode": "fly", - "action": "stop_flying" - }, - { - "x": 517.25390625, - "y": 1823.44970703125, - "type": "target", - "move_mode": "walk", - "action": "nahida_collect" - }, - { - "x": 516.3916015625, - "y": 1821.6552734375, - "type": "target", - "move_mode": "walk", - "action": "" - } - ] -} \ No newline at end of file diff --git a/repo/pathing/石珀/石珀9-奥藏山1-2个.json b/repo/pathing/石珀/石珀9-奥藏山1-2个.json deleted file mode 100644 index 23cf39c7..00000000 --- a/repo/pathing/石珀/石珀9-奥藏山1-2个.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "info":{ - "bgi_version":"0.34.5", - "version":"1.0", - "name":"奥苍山1-2", - "description":"", - "type":"collect", - "author":"yulalaa" - }, - "positions":[ - { - "x":1120.880859375, - "y":1190.388671875, - "type":"teleport", - "move_mode":"walk", - "action":"" - }, - { - "x":1107.1474609375, - "y":1211.63330078125, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":1085.310546875, - "y":1232.84716796875, - "type":"path", - "move_mode":"fly", - "action":"stop_flying" - }, - { - "x":1065.5068359375, - "y":1254.197265625, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":1066.8251953125, - "y":1274.81689453125, - "type":"path", - "move_mode":"walk", - "action":"" - }, - { - "x":1065.06640625, - "y":1277.7880859375, - "type":"target", - "move_mode":"walk", - "action":"nahida_collect" - }, - { - "x":1065.0927734375, - "y":1277.78125, - "type":"target", - "move_mode":"walk", - "action":"" - }, - { - "x":1064.216796875, - "y":1277.57861328125, - "type":"target", - "move_mode":"walk", - "action":"" - } - ] -} \ No newline at end of file