forked from hzqst/CGAssistantJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path矿山钥匙.js
66 lines (65 loc) · 1.71 KB
/
矿山钥匙.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
var cga = require(process.env.CGA_DIR_PATH_UTF8+'/cgaapi')(function(){
var task = cga.task.Task('矿山钥匙', [
{
intro: '1.到法兰城里谢里雅堡(47.85)进入召唤之间,从召唤之间右上角进入回廊。由回廊(23.19)进入灵堂,再从灵堂(7.52)的楼梯进入地下牢房。在地下牢房的(31.20)跟 乔尔凯夫 交谈取得"给朋友的信"',
workFunc: function(cb2){
cga.travel.falan.toStone('C', ()=>{
cga.walkList([
[47, 85, '召唤之间'],
[27, 8, '回廊'],
[23, 23],
[23, 19, '灵堂', null, null, true],
[7, 52, '地下牢房'],
[31, 20],
], ()=>{
cga.TurnTo(33, 20);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
setTimeout(()=>{
cb2(true);
}, 1000);
});
});
});
});
}
},
{
intro: '2.到法兰城(61.63)进入仓库,把信交给 德米多夫 换取[矿山钥匙]',
workFunc: function(cb2){
cga.travel.falan.toStone('W1', ()=>{
cga.walkList([
[61, 63, '仓库内部'],
[11, 10, null],
], ()=>{
cga.TurnTo(12, 9);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(()=>{
cb2(true);
}, 1000);
});
});
});
});
});
}
}
],
[//任务阶段是否完成
function(){//gei peng you de xin
return (cga.getItemCount('#18422') > 0) ? true : false;
},
function(){//矿山钥匙
return (cga.getItemCount('矿山钥匙') > 0) ? true : false;
},
]
);
task.doTask();
});