-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path定居哥拉尔.js
237 lines (234 loc) · 5.87 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
var cga = require(process.env.CGA_DIR_PATH_UTF8+'/cgaapi')(function(){
var settle = ()=>{
cga.walkList([
[118, 106]
], ()=>{
cga.TurnTo(118, 104);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
cga.AsyncWaitNPCDialog((err, dlg)=>{
if(dlg && dlg.message.indexOf('您没有达到能够设定登陆点的条件')){
task.doTask(settle);
return;
}
});
});
});
}
var task = cga.task.Task('艾尔巴尼亚市民权', [
{//0
intro: '1.前往哥拉尔镇民房(89.64)与金梅婆婆(7.5)对话,选“是”获得【老婆婆的黑轮】。',
workFunc: function(cb2){
cga.walkList([
[89, 64, '民家'],
[8, 6],
], ()=>{
cga.TurnTo(6, 4);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
setTimeout(()=>{
cga.walkList([
[9, 19, '哥拉尔镇']
], ()=>{
cb2(true);
});
}, 1000);
});
});
});
}
},
{//1
intro: '2.前往哥拉尔镇(170.114)处,持有【老婆婆的黑轮】与金多吉爷爷对话,选“是”交出【老婆婆的黑轮】获得【吉比雷的帽子】。',
workFunc: function(cb2){
cga.walkList([
[169, 114],
], ()=>{
cga.TurnTo(171, 114);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(cb2, 1000, true);
});
});
});
});
});
}
},
{//2
intro: '3.前往阿凯鲁法村与医师吉比雷(228.201)对话,交出【吉比雷的帽子】获得【吉比雷的胃肠药】。',
workFunc: function(cb2){
cga.travel.falan.toCity('阿凯鲁法', ()=>{
cga.walkList([
[227, 200],
], ()=>{
cga.TurnTo(229, 202);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(cb2, 1000, true);
});
});
});
});
});
});
}
},
{//3
intro: '4.返回哥拉尔镇与金多吉爷爷(170.114)对话,交出【吉比雷的胃肠药】获得【黑轮串】。',
workFunc: function(cb2){
cga.travel.falan.toCity('哥拉尔', ()=>{
cga.walkList([
[169, 114],
], ()=>{
cga.TurnTo(171, 114);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(cb2, 1000, true);
});
});
});
});
}
},
{//4
intro: '5.返回民房(89.64)与金梅婆婆(7.5)对话,交出【黑轮串】获得【吉比雷的桌子钥匙】。',
workFunc: function(cb2){
cga.walkList([
[89, 64, '民家'],
[8, 6],
], ()=>{
cga.TurnTo(6, 4);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(cb2, 1000, true);
});
});
});
});
}
},
{//5
intro: '6.调查书桌(15.3),选“是”交出【吉比雷的桌子钥匙】获得【哥拉尔市民权状】。',
workFunc: function(cb2){
cga.walkList([
[15, 4]
], ()=>{
cga.TurnTo(15, 3);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
setTimeout(()=>{
cga.walkList([
[9, 19, '哥拉尔镇']
], ()=>{
cb2(true);
});
}, 1000);
});
});
}
},
{//6
intro: '7.前往哥拉尔镇白之宫殿,通过楼梯(36.42)抵达谒见之间。',
workFunc: function(cb2){
cga.walkList([
[140, 214, 43200],
[47, 36, 43210],
[36, 42, '谒见之间'],
[57, 46],
], ()=>{
cga.TurnTo(59, 46);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(32, -1);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(1, -1);
setTimeout(()=>{
cga.walkList([
[15, 45, 43210],
[9, 46, 43200],
[22, 37, '哥拉尔镇'],
[118, 214],
], ()=>{
cga.travel.gelaer.toStone('N', ()=>{
cga.walkList([
[118, 106],
], ()=>{
cga.turnTo(118, 105);
cga.AsyncWaitNPCDialog(()=>{
cga.ClickNPCDialog(4, -1);
cb2(true);
});
});
});
});
}, 1000);
});
});
});
});
});
});
});
});
});
});
}
},
],
[
()=>{
return cga.getItemCount('老婆婆的黑轮') > 0;
},
()=>{
return cga.getItemCount('吉比雷的帽子') > 0;
},
()=>{
return cga.getItemCount('吉比雷的胃肠药') > 0;
},
()=>{
return cga.getItemCount('黑轮串') > 0;
},
()=>{
return cga.getItemCount('吉比雷的桌子钥匙') > 0;
},
()=>{
return cga.getItemCount('哥拉尔市民权状') > 0;
},
]
);
cga.travel.falan.toCity('哥拉尔', settle);
});