Compare commits
2 Commits
0a999bc007
...
5b240ba7c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b240ba7c5 | ||
|
|
cbbf4dca19 |
14
repo.json
14
repo.json
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"time": "20250807094147",
|
||||
"time": "20250807110204",
|
||||
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
|
||||
"file": "repo.json",
|
||||
"indexes": [
|
||||
@@ -68549,7 +68549,7 @@
|
||||
{
|
||||
"name": "12-纳塔-悠悠度假村右侧-7只.json",
|
||||
"type": "file",
|
||||
"hash": "383a7ea1baffad59ae9279001df03790df4570b9",
|
||||
"hash": "97fd15510f4af8de2256176e334644df0ae6f8f2",
|
||||
"version": "1.0",
|
||||
"author": "芝士贝果",
|
||||
"authors": [
|
||||
@@ -68563,7 +68563,7 @@
|
||||
"食材与炼金",
|
||||
"螃蟹"
|
||||
],
|
||||
"lastUpdated": "2025-08-03 20:07:12"
|
||||
"lastUpdated": "2025-08-06 16:47:26"
|
||||
},
|
||||
{
|
||||
"name": "13-纳塔-悠悠度假村左侧-6只.json",
|
||||
@@ -74752,8 +74752,8 @@
|
||||
{
|
||||
"name": "OCR购买食材",
|
||||
"type": "directory",
|
||||
"hash": "b5b1fccadb09c005aef1858fc5633dbb297fd198",
|
||||
"version": "1.30513",
|
||||
"hash": "19914b97ece0db70e6a96e98c5b14e83c655c9b5",
|
||||
"version": "1.30514",
|
||||
"author": "吉吉喵",
|
||||
"authors": [
|
||||
{
|
||||
@@ -74761,13 +74761,13 @@
|
||||
"link": "https://github.com/JJMdzh"
|
||||
}
|
||||
],
|
||||
"description": "选择购买食材OCR~|~至少需要0.44版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
||||
"description": "选择购买食材OCR~|~至少需要0.48版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
||||
"tags": [
|
||||
"购买食材",
|
||||
"OCR",
|
||||
"图像识别"
|
||||
],
|
||||
"lastUpdated": "2025-07-28 12:15:15"
|
||||
"lastUpdated": "2025-08-07 11:01:25"
|
||||
},
|
||||
{
|
||||
"name": "OcrMonsterNum",
|
||||
|
||||
57
repo/js/OCR购买食材/assets/Pathing/纳塔杂货铺布纳马.json
Normal file
57
repo/js/OCR购买食材/assets/Pathing/纳塔杂货铺布纳马.json
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"info": {
|
||||
"name": "纳塔杂货铺布纳马",
|
||||
"type": "collect",
|
||||
"authors": [
|
||||
{
|
||||
"name": "芝士贝果"
|
||||
}
|
||||
],
|
||||
"version": "1.0",
|
||||
"description": "",
|
||||
"map_name": "Teyvat",
|
||||
"bgi_version": "0.47.3",
|
||||
"tags": [],
|
||||
"last_modified_time": 1754489424074,
|
||||
"enable_monster_loot_split": false,
|
||||
"map_match_method": ""
|
||||
},
|
||||
"positions": [
|
||||
{
|
||||
"id": 1,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "teleport",
|
||||
"x": 9060.5419921875,
|
||||
"y": -1847.5107421875,
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"x": 9089.0361328125,
|
||||
"y": -1852.42919921875,
|
||||
"type": "path",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"x": 9088.6552734375,
|
||||
"y": -1856.89306640625,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"x": 9089.8935546875,
|
||||
"y": -1857.2724609375,
|
||||
"type": "target",
|
||||
"move_mode": "walk",
|
||||
"action": "",
|
||||
"action_params": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -37,24 +37,25 @@ const sumiCityFishPath = `assets/Pathing/须弥城鱼贩珀姆.json`;
|
||||
const sumiGroceryFilePath = `assets/Pathing/须弥杂货铺哈马维.json`;
|
||||
const omosPortFishPath = `assets/Pathing/须弥奥摩斯港鱼贩布特罗斯.json`;
|
||||
const azaleVillMerPath = `assets/Pathing/须弥阿如村商人阿扎莱.json`;
|
||||
const natlanGroceryFilePath = `assets/Pathing/纳塔杂货铺布纳马.json`;
|
||||
|
||||
const ingredientPaths = {
|
||||
"枫达": [fengdanGroceryFilePath, cafeLuzheFilePath],
|
||||
"盐": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"洋葱": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"牛奶": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"番茄": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"卷心菜": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"土豆": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"小麦": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"胡椒": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath],
|
||||
"盐": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"洋葱": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"牛奶": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"番茄": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"卷心菜": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"土豆": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"小麦": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"胡椒": [mondstadtGroceryFilePath, liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, fengdanGroceryFilePath, natlanGroceryFilePath],
|
||||
"稻米": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],//
|
||||
"虾仁": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath, sumiCityFishPath, omosPortFishPath],
|
||||
"豆腐": [liyueGroceryFilePath, groceryFilePath, sumiGroceryFilePath],
|
||||
"杏仁": [liyueGroceryFilePath, fengdanGroceryFilePath],
|
||||
"鱼肉": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath, azaleVillMerPath],
|
||||
"螃蟹": [liyueWanminFilePath, charcoalFilePath, sumiCityFishPath, omosPortFishPath],
|
||||
"秃秃豆": [fengdanGroceryFilePath, azaleVillMerPath],
|
||||
"秃秃豆": [fengdanGroceryFilePath, azaleVillMerPath, natlanGroceryFilePath],
|
||||
"咖啡豆": [sumiCitycafeFilePath, cafeLuzheFilePath],
|
||||
"香辛料": [azaleVillMerPath],
|
||||
"发酵果实汁": [fengdanGroceryFilePath]
|
||||
@@ -103,6 +104,7 @@ const npcNames = {
|
||||
[omosPortFishPath]: ["布特罗斯"],
|
||||
[azaleVillMerPath]: ["阿扎莱"],
|
||||
[sumiGroceryFilePath]: ["哈马维"],
|
||||
[natlanGroceryFilePath]: ["布纳马"],
|
||||
};
|
||||
|
||||
// 筛选出用户选择的食材及其对应的路径文件和 NPC
|
||||
@@ -297,6 +299,12 @@ async function clickSelectedIngredients(selectedIngredients, filePath, npcNames)
|
||||
await click(1300, 660); await sleep(1000);
|
||||
await click(1300, 660); await sleep(1000);
|
||||
await click(1300, 660); await sleep(1000);
|
||||
} else if (filePath === natlanGroceryFilePath) {
|
||||
log.info("执行纳塔杂货商等的点击操作");
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
await click(1300, 580); await sleep(1000);
|
||||
} else {
|
||||
log.info("执行其他路径文件的点击操作");
|
||||
await click(1300, 580); await sleep(500);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"manifest_version": 1,
|
||||
"name": "选择购买食材OCR",
|
||||
"version": "1.30513",
|
||||
"description": "至少需要0.44版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
||||
"version": "1.30514",
|
||||
"description": "至少需要0.48版本bgi,对NPC和材料进行文字、图像识别。\n一般食材杂货在蒙德、璃月、稻妻、枫丹杂货商购买。\n10鱼肉、10螃蟹在卯师傅、珀姆、布特罗斯、阿扎莱和志村勘兵卫购买。\n咖啡豆在须弥、枫丹咖啡馆购买。\n增加对话F图像识别,增加个别字识别容错;增加香辛料,在阿扎莱处购买。\nv1.30513修复循环套叠,优化F未识别后的尝试方案。",
|
||||
"authors": [
|
||||
{
|
||||
"name": "吉吉喵",
|
||||
@@ -16,4 +16,4 @@
|
||||
],
|
||||
"settings_ui": "settings.json",
|
||||
"main": "main.js"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user