删除旧版

This commit is contained in:
Traveler07
2024-11-08 11:37:22 +08:00
parent a38eb7cde6
commit f326262429
27 changed files with 0 additions and 1391 deletions

View File

@@ -1,68 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,28 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,36 +0,0 @@
{
"info": {
"name": "悬铃木18个",
"type": "collect",
"author": "愚溪",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": 4689.59619140625,
"y": 2429.371826171875
},
{
"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": ""
}
]
}

View File

@@ -1,61 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,37 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,44 +0,0 @@
{
"info": {
"name": "枫木9个",
"type": "collect",
"author": "愚溪",
"version": "1.0",
"description": "",
"bgiVersion": "0.35.1"
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -3812.6591796875,
"y": -2546.5625
},
{
"id": 2,
"x": -3795.1669921875,
"y": -2617.5458984375,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 3,
"x": -3766.388671875,
"y": -2601.5546875,
"type": "path",
"move_mode": "walk",
"action": ""
},
{
"id": 4,
"x": -3759.7255859375,
"y": -2593.5146484375,
"type": "target",
"move_mode": "walk",
"action": ""
}
]
}

View File

@@ -1,68 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,29 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,84 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,44 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,44 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,44 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,52 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,44 +0,0 @@
{
"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"
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,60 +0,0 @@
{
"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": ""
}
]
}

View File

@@ -1,36 +0,0 @@
{
"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": ""
}
]
}

File diff suppressed because one or more lines are too long

View File

@@ -1,97 +0,0 @@
{
"macroEvents": [
{
"type": 0,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 1141.9203
},
{
"type": 1,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 3491.783
},
{
"type": 0,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 3862.0596
},
{
"type": 1,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 5331.7447
},
{
"type": 0,
"keyCode": 87,
"mouseX": 0,
"mouseY": 0,
"time": 5721.742
},
{
"type": 1,
"keyCode": 87,
"mouseX": 0,
"mouseY": 0,
"time": 8641.7323
},
{
"type": 0,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 9091.7258
},
{
"type": 1,
"keyCode": 65,
"mouseX": 0,
"mouseY": 0,
"time": 10231.7097
},
{
"type": 0,
"keyCode": 87,
"mouseX": 0,
"mouseY": 0,
"time": 10592.0295
},
{
"type": 1,
"keyCode": 87,
"mouseX": 0,
"mouseY": 0,
"time": 11262.0103
},
{
"type": 0,
"keyCode": 83,
"mouseX": 0,
"mouseY": 0,
"time": 12081.8062
},
{
"type": 1 ,
"keyCode": 83,
"mouseX": 0,
"mouseY": 0,
"time": 12181.8062
}
],
"info": {
"name": "",
"description": "",
"x": 191,
"y": 261,
"width": 1920,
"height": 1080,
"recordDpi": 1.5
}
}

View File

@@ -1,132 +0,0 @@
(async function () {
setGameMetrics(1920, 1080, 1.5);
const defaultExitDelay = 10000;
const defaultLoadingDelay = 13000;
// 将字符串转换为数字
let exitdelay = Number(settings.exitdelay);
let loadingdelay = Number(settings.loadingdelay);
// 检查参数是否有效,并设置缺省值
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 };
}
// 调用验证和设置缺省值函数
const { exitdelay: validatedExitDelay, loadingdelay: validatedLoadingDelay } = validateAndSetDefaults(exitdelay, loadingdelay);
// 继续执行程序逻辑
log.info(`退出延迟: ${validatedExitDelay}, 加载延迟: ${validatedLoadingDelay}`);
log.info("垂香木,悬铃木,桃椰子木,炬木,白栗栎木,燃爆木因路线问题无法获取");
log.info("开始运行脚本");
async function performGameActions() {
// 负责砍树的退出重进按Z
await sleep(1000);//等待一秒
keyPress("ESCAPE");//按下esc
await sleep(1000);
click(50, 1030);//点击退出
await sleep(1000);
click(1000, 750);//点击确认
await sleep(validatedExitDelay); //退出延迟
click(1000, 550);//进入游戏
await sleep(validatedLoadingDelay);//加载延迟
keyPress("z");
// await sleep(300);
// keyUp("z");
}
async function runGameActionsMultipleTimes(times,locationName) {
// 负责循环调用performGameActions实现循环砍树
for (let i = 0; i < times; i++) {
await performGameActions();
log.info(`${locationName}循环次数:${i + 1}/${times}`)
}
}
async function AutoPath(locationName, time) {
//传入路径以及循环次数
let filePath = `assets/AutoPath/${locationName}.json`;
await pathingScript.runFile(filePath);
await sleep(3000)
await runGameActionsMultipleTimes(time,locationName)
}
async function KeyMouse(locationName, sec, x, y,time) {
//传入路径,秒数,坐标
if (x !== undefined && y !== undefined) {
await genshin.tp(x, y);
await sleep(1000);
}
let filePath = `assets/KeyMouse/${locationName}.json`;
await keyMouseScript.runFile(filePath);
await sleep(sec * 1000); // 将秒转换为毫秒
await sleep(3000)
await runGameActionsMultipleTimes(time)
}
await AutoPath('香柏木27个', 75)
await AutoPath('御伽木9个(孔雀木6个)', 334)
await AutoPath('萃华木6个(垂香木3个)', 334)
await AutoPath('松木24个', 84)
await AutoPath('业果木15个(辉木15个)', 134)
await AutoPath('刺葵木6个', 334)
await AutoPath('却砂木12个', 167)
await AutoPath('杉木12个', 167)
await AutoPath('枫木9个', 223)
await AutoPath('柽木15个', 134)
await AutoPath('桦木15个', 134)
await AutoPath('梦见木12个', 167)
await AutoPath('椴木9个(悬铃木9个)', 223)
await AutoPath('灰灰楼木6个', 334)
await AutoPath('白梣木15个', 134)
await AutoPath('竹节30个', 67)
await AutoPath('证悟木15个(业果木6个)', 134)
// await AutoPath('燃爆木15个', 134)//>>
// await AutoPath('燃爆木6个(白栗栎木6个)', 1)//路线异常
// await AutoPath('垂香木15个', 1)//路线异常
// await AutoPath('悬铃木18个', 1)//路线异常
// await KeyMouse('炬木15个',3, 8359.7548828125, -2868.03515625,1)//?
// await KeyMouse('桃椰子木12个',5,8353.4921875,-2853.8505859375,1)//?
let endTime = settings.selectValue
theEnd(endTime)
async function theEnd(endTime){
if (endTime === '退出账号'){
await sleep(1000);//等待一秒
keyPress("ESCAPE");//按下esc
await sleep(1000);
click(50, 1030);//点击退出
await sleep(1000);
click(1000, 750);//点击确认
log.info('退出账号')
}else if (endTime === '关闭游戏'){
log.info('关闭游戏')
keyDown("MENU");
keyDown("F4");
await sleep(50);
keyUp("MENU");
keyUp("F4");
await sleep(1500);
}else if (endTime === '无操作'){
// 对,这里什么也没有
} else {
log.info('未选择结束后操作,默认无操作')
}
}
})();

View File

@@ -1,13 +0,0 @@
{
"manifest_version": 1,
"name": "自动伐木-全树种收集计划",
"version": "1.0",
"description": "小道具自动伐木,单个树种满后,前往下一个树种,垂香木,悬铃木,桃椰子木,炬木,白栗栎木,燃爆木因路线问题无法获取.所有树种默认刷满2000",
"authors": [
{
"name": "½"
}
],
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -1,153 +0,0 @@
[
{
"name": "selectValue", // 变量名在js内使用 settings.变量名 获取对应的配置值
"type": "select", // 类型
"label": "运行结束后操作", // 显示标签
"options": [ //选项
"无操作",
"退出账号",
"关闭游戏"
]
},
{
"name": "exitdelay",
"type": "input-text",
"label": "退出延迟"
},
{
"name": "loadingdelay",
"type": "input-text",
"label": "加载延迟"
}
// { //等待作者更新多选框
//
// "name": "checkValue", // 变量名在js内使用 settings.变量名 获取对应的配置值
// "type": "checkbox", // 类型
// "label": "全选" // 显示标签
// }
// {
// "name": "whiteAsh",
// "type": "checkbox",
// "label": "白梣木"
// },
// {
// "name": "whiteChestnut",
// "type": "checkbox",
// "label": "白栗木"
// },
// {
// "name": "grayTowerWood",
// "type": "checkbox",
// "label": "灰灰楼林木"
// },
// {
// "name": "peachCoconut",
// "type": "checkbox",
// "label": "桃椰子木"
// },
// {
// "name": "explosiveWood",
// "type": "checkbox",
// "label": "燃爆木"
// },
// {
// "name": "linden",
// "type": "checkbox",
// "label": "椴木"
// },
// {
// "name": "torchwood",
// "type": "checkbox",
// "label": "炬木"
// },
// {
// "name": "sycamore",
// "type": "checkbox",
// "label": "悬铃木"
// },
// {
// "name": "incenseCedar",
// "type": "checkbox",
// "label": "香柏木"
// },
// {
// "name": "strangeWood",
// "type": "checkbox",
// "label": "怪木"
// },
// {
// "name": "palmThorn",
// "type": "checkbox",
// "label": "刺葵木"
// },
// {
// "name": "karmicFruitWood",
// "type": "checkbox",
// "label": "业果木"
// },
// {
// "name": "radiantWood",
// "type": "checkbox",
// "label": "辉木"
// },
// {
// "name": "enlightenmentWood",
// "type": "checkbox",
// "label": "证悟木"
// },
// {
// "name": "dreamingWood",
// "type": "checkbox",
// "label": "梦见木"
// },
// {
// "name": "peacockWood",
// "type": "checkbox",
// "label": "孔雀木"
// },
// {
// "name": "maple",
// "type": "checkbox",
// "label": "枫木"
// },
// {
// "name": "otogi",
// "type": "checkbox",
// "label": "御伽木"
// },
// {
// "name": "droopingIncense",
// "type": "checkbox",
// "label": "垂香木"
// },
// {
// "name": "luxuriantBlossom",
// "type": "checkbox",
// "label": "萃华木"
// },
// {
// "name": "birch",
// "type": "checkbox",
// "label": "桦木"
// },
// {
// "name": "quicksandWood",
// "type": "checkbox",
// "label": "却砂木"
// },
// {
// "name": "bambooJoint",
// "type": "checkbox",
// "label": "竹节"
// },
// {
// "name": "pine",
// "type": "checkbox",
// "label": "松木"
// },
// {
// "name": "cedar",
// "type": "checkbox",
// "label": "杉木"
// }
]