forked from GrafNikola/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 17
/
9982.js
294 lines (284 loc) · 17.2 KB
/
9982.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
// Grotto of Lost Souls (Hard)
//
// made by michengs / HSDN / Calvary
module.exports = (dispatch, handlers, guide, lang) => {
let color = 0;
let debuff = 0;
let print_wave = true;
let awakening_one = false;
let awakening_two = false;
let stack_level = 0;
let enrage = false;
const is_mt = dispatch._mod.connection.metadata.serverList[dispatch._mod.serverId].name.includes("MT");
function stacks_level_event() {
if (!awakening_one) return;
stack_level++;
if ((!awakening_two && stack_level > 0) || (awakening_two && stack_level > 2)) {
handlers.text({
sub_type: "notification",
message: `Stack ${stack_level}`,
message_RU: `Стак ${stack_level}`,
speech: false
});
}
if (stack_level === 4) {
handlers.text({
sub_type: "alert",
message: "Explosion soon",
message_RU: "Скоро взрыв"
});
}
}
return {
// 1 BOSS
"nd-982-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"s-982-1000-106-0": [{ type: "text", class_position: "tank", sub_type: "message", message: "Heavy", message_RU: "Тяжелый удар" }],
"s-982-1000-107-0": [
{ type: "text", class_position: "dps", sub_type: "message", message: "Pushback", message_RU: "Откид назад" },
{ type: "text", class_position: "heal", sub_type: "message", message: "Pushback (Kaia)", message_RU: "Откид назад (кайа)" },
{ type: "spawn", func: "vector", args: [553, 90, 30, 140, 600, 1000, 2000] },
{ type: "spawn", func: "vector", args: [553, 270, 30, -140, 600, 1000, 2000] }
],
"s-982-1000-108-0": [
{ type: "text", sub_type: "message", message: "Bait Front (Flying)", message_RU: "Байт вперед (подлет)" }
],
"s-982-1000-108-1": [
{ type: "spawn", func: "vector", args: [553, 90, 140, 5, 620, 0, 1500] },
{ type: "spawn", func: "vector", args: [553, 270, 140, 355, 620, 0, 1500] }
],
"s-982-1000-109-0": [{ type: "text", sub_type: "message", message: "Rocks (Small)", message_RU: "Камни (малые)" }],
"s-982-1000-110-0": [{ type: "text", sub_type: "message", message: "Rocks (Large)", message_RU: "Камни (большие)" }],
"s-982-1000-111-0": [
{ type: "text", sub_type: "message", message: "Stun (Dodge)", message_RU: "Стан (эвейд)", delay: 1500 },
{ type: "spawn", func: "circle", args: [true, 553, 180, 50, null, 350, 1500, 2000] }
],
"s-982-1000-113-0": [{ type: "text", sub_type: "message", message: "Thorns (Bleed)", message_RU: "Колючки (кровоток)" }],
"s-982-1000-116-0": [
{ type: "text", sub_type: "message", message: "AoE", message_RU: "АоЕ" },
{ type: "text", sub_type: "message", message: "3" },
{ type: "text", sub_type: "message", delay: 500, message: "2" },
{ type: "text", sub_type: "message", delay: 1000, message: "1" },
{ type: "text", sub_type: "message", delay: 1500, message: "Dodge", message_RU: "Эвейд" }
],
"s-982-1000-301-0": [
{ type: "text", sub_type: "message", message: "Flower Stuns", message_RU: "Оглушающие цветы" },
{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд", delay: 2000 }
],
"s-982-1000-307-0": [{ type: "text", sub_type: "message", message: "Cage (Don't move)", message_RU: "Клетка (не двигаться)" }],
"s-982-1032-349-0": [{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд"}],
// Flowers mech
"ab-982-1003-98200161": [
{ type: "text", sub_type: "message", message: "Green", message_RU: "Зеленый" },
{ type: "func", func: () => color = 1 }
],
"ab-982-1003-98200162": [
{ type: "text", sub_type: "message", message: "Violet", message_RU: "Фиолетовый" },
{ type: "func", func: () => color = 2 }
],
"ae-0-0-98200148": [{ type: "func", func: () => debuff = 1 }], // green
"ae-0-0-98200149": [{ type: "func", func: () => debuff = 2 }], // violet
"s-982-1000-201-0": [{ type: "text", sub_type: "alert", message: "Change Debuff", message_RU: "Сменить дебаф", check_func: () => debuff !== 0 && color !== debuff, delay: 5000 }],
"s-982-1000-309-0": [
{ type: "text", sub_type: "message", message: "One Flower", message_RU: "Один цветок" },
{ type: "text", sub_type: "alert", message: "Dodge the flower!", message_RU: "Заэвейдить цветок!", check_func: () => color === debuff, delay: 1500 }
],
"s-982-1000-310-0": [
{ type: "text", sub_type: "message", message: "Two Flowers", message_RU: "Два цветка" },
{ type: "text", sub_type: "alert", message: "Dodge ONE flower!", message_RU: "Заэвейдить один цветок!", check_func: () => color !== debuff, delay: 1500 }
],
"s-982-1000-312-0": [
{ type: "text", sub_type: "message", message: "Break Golden Flower", message_RU: "Разбить золотой цветок" },
{ type: "text", sub_type: "alert", message: "Dodge the Flower!", message_RU: "Заэвейдить цветок!", check_func: () => color === debuff, delay: 1500 }
],
"s-982-1000-308-0": [
{ type: "func", func: () => color = 0 },
{ type: "func", func: () => debuff = 0 }
],
// 2 BOSS
"nd-982-2000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"s-982-2000-105-0": [{ type: "text", sub_type: "message", message: "Spin", message_RU: "Кувырок" }],
"s-982-2000-108-0": [{ type: "text", sub_type: "message", message: "Dodge. Shot Forward", message_RU: "Эвейд. Выстрел вперед", delay: 500 }],
"s-982-2000-109-0": [{ type: "text", sub_type: "message", message: "Wave Forward", message_RU: "Волна вперед" }],
"s-982-2000-112-0": [{ type: "text", sub_type: "message", message: "Kick Forward", message_RU: "Удар вперед" }],
"s-982-2000-113-0": [
{ type: "text", sub_type: "message", message: "Stun (AoE)", message_RU: "Стан (АоЕ)" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 310, 0, 3000] }
],
"s-982-2000-114-0": [
{ type: "text", sub_type: "message", message: "Get In", message_RU: "К нему" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 260, 0, 5000] },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 600, 0, 5000] }
],
"s-982-2000-116-0": [
{ type: "text", sub_type: "message", message: "Front | Back", message_RU: "Передняя | Задняя" },
{ type: "spawn", func: "vector", args: [553, 0, 0, 270, 500, 0, 5000] },
{ type: "spawn", func: "vector", args: [553, 180, 0, 90, 500, 0, 5000] }
],
"s-982-2000-117-0": "s-982-2000-116-0",
"s-982-2000-301-0": [
{ type: "text", sub_type: "message", message: "Get Out | Dodge", message_RU: "От него | Эвейд" },
{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд", delay: 3700 },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 260, 0, 3000] },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 650, 0, 3000] }
],
"s-982-2000-302-0": [
{ type: "text", sub_type: "message", message: "Get In | Dodge", message_RU: "К нему | Эвейд" },
{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд", delay: 3700 },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 260, 0, 3000] },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, null, 650, 0, 3000] }
],
"s-982-2000-303-0": [{ type: "text", sub_type: "message", message: "Waves", message_RU: "Волны" }],
"s-982-2000-307-0": [{ type: "text", sub_type: "message", message: "Target", message_RU: "Таргет" }],
"s-982-2000-307-2": [{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд" }],
// 3 BOSS
"nd-982-3000": [
{ type: "stop_timers" },
{ type: "despawn_all" },
{ type: "func", func: () => enrage = false }
],
"ns-982-3000": [{ type: "func", func: () => enrage = false }],
"rb-982-3000": [{ type: "func", func: () => enrage = true }],
"re-982-3000": [{ type: "func", func: () => enrage = false }],
"h-982-3000-99": [
{ type: "func", func: () => print_wave = true },
{ type: "func", func: () => awakening_one = false },
{ type: "func", func: () => awakening_two = false },
{ type: "func", func: () => stack_level = 0 }
],
"h-982-3000-90": [{ type: "text", sub_type: "message", message: "90%", message_RU: "90%", check_func: () => is_mt }],
"h-982-3000-80": [{ type: "text", sub_type: "message", message: "80%", message_RU: "80%", check_func: () => !is_mt }],
"h-982-3000-45": [{ type: "text", sub_type: "message", message: "45%", message_RU: "45%", check_func: () => is_mt }],
"h-982-3000-30": [{ type: "text", sub_type: "message", message: "30%", message_RU: "30%", check_func: () => !is_mt }],
"s-982-3000-109-0": [{ type: "text", sub_type: "message", message: "Front Throw (Target)", message_RU: "Удар вперед (таргет)" }],
"s-982-3000-134-0": [{ type: "text", sub_type: "message", message: "Front Throw (Target)", message_RU: "Удар вперед (таргет)" }],
"s-982-3000-118-0": [{ type: "text", sub_type: "message", message: "Front Triple", message_RU: "Передняя комба" }],
"s-982-3000-143-0": [
{ type: "text", sub_type: "message", message: "Left Rear", message_RU: "Слева сзади" },
{ type: "spawn", func: "circle", args: [true, 553, 200, 330, null, 280, 0, 3000] }
],
"s-982-3000-145-0": "s-982-3000-143-0",
"s-982-3000-144-0": [
{ type: "text", sub_type: "message", message: "Right Rear", message_RU: "Справа сзади" },
{ type: "spawn", func: "circle", args: [true, 553, 160, 330, null, 280, 0, 3000] }
],
"s-982-3000-147-0": "s-982-3000-144-0",
"s-982-3000-146-0": [
{ type: "text", sub_type: "message", message: "Pulses Left", message_RU: "Бублики слева" },
{ type: "spawn", func: "circle", args: [true, 553, 200, 350, null, 280, 500, 2000] },
{ type: "spawn", func: "marker", args: [false, 215, 370, is_mt ? 4200 : 5300, 3000, true, null] }, // 1
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 15, 160, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 12, 320, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 10, 480, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 8, 640, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 6, 800, 2000, 6000] }
],
"s-982-3000-154-0": [
{ type: "text", sub_type: "message", message: "Pulses Left", message_RU: "Бублики слева" },
{ type: "spawn", func: "circle", args: [true, 553, 200, 350, null, 280, 500, 2000] },
{ type: "spawn", func: "marker", args: [false, 215, 370, 4200, 4000, true, null] }, // 2
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 15, 160, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 12, 320, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 10, 480, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 8, 640, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 215, 370, 6, 800, 2000, 6000] }
],
"s-982-3000-148-0": [
{ type: "text", sub_type: "message", message: "Pulses Right", message_RU: "Бублики справа" },
{ type: "spawn", func: "circle", args: [true, 553, 160, 350, null, 280, 500, 2000] },
{ type: "spawn", func: "marker", args: [false, 155, 388, is_mt ? 4200 : 5300, 3000, true, null] }, // 1
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 15, 160, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 12, 320, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 10, 480, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 8, 640, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 6, 800, 2000, 6000] }
],
"s-982-3000-155-0": [
{ type: "text", sub_type: "message", message: "Pulses Right", message_RU: "Бублики справа" },
{ type: "spawn", func: "circle", args: [true, 553, 160, 350, null, 280, 500, 2000] },
{ type: "spawn", func: "marker", args: [false, 155, 388, 4200, 4000, true, null] }, // 2
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 15, 160, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 12, 320, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 10, 480, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 8, 640, 2000, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 155, 388, 6, 800, 2000, 6000] }
],
"s-982-3000-161-0": [
{ type: "text", sub_type: "message", message: "Front | Back", message_RU: "Вперед | Назад" },
{ type: "spawn", func: "circle", args: [true, 553, 180, 310, null, 290, 3000, 2500] }
],
"s-982-3000-162-0": [
{ type: "text", sub_type: "message", message: "Front | Back", message_RU: "Вперед | Назад" },
{ type: "spawn", func: "circle", args: [true, 553, 180, 310, null, 290, 3000, 2500] }
],
"s-982-3000-213-0": [{ type: "text", sub_type: "message", message: "Tail", message_RU: "Хвост" }],
"s-982-3000-215-0": [{ type: "text", sub_type: "message", message: "Tail (Combo)", message_RU: "Хвост (комба)" }],
"s-982-3000-139-0": [
{ type: "text", sub_type: "message", message: `Wave + Wing (Left Safe)`, message_RU: `Волна (лево сейф)`, check_func: () => print_wave && !enrage },
{ type: "text", sub_type: "message", message: `Wave Fast + Wing (Left Safe)`, message_RU: `Волна быстрая (лево сейф)`, check_func: () => print_wave && enrage },
{ type: "despawn_all", tag: "wave" },
{ type: "spawn", func: "vector", args: [912, 90, 0, 0, 600, 100, 3000], tag: "wave" },
{ type: "spawn", func: "vector", args: [912, 270, 0, 180, 600, 100, 3000], tag: "wave" },
{ type: "spawn", func: "marker", args: [false, 270, 200, 100, 4000, true, null], tag: "wave" },
{ type: "func", func: () => print_wave = false },
{ type: "func", func: () => print_wave = true, delay: 8000 }
],
"s-982-3000-139-1": "s-982-3000-139-0",
"s-982-3000-139-2": "s-982-3000-139-0",
"s-982-3000-150-0": "s-982-3000-139-0", //
"s-982-3000-150-1": "s-982-3000-139-0",
"s-982-3000-150-2": "s-982-3000-139-0",
"s-982-3000-141-0": [
{ type: "text", sub_type: "message", message: "Wave + Wing (Right Safe)", message_RU: "Волна (право сейф)", check_func: () => print_wave && !enrage },
{ type: "text", sub_type: "message", message: "Wave Fast + Wing (Right Safe)", message_RU: "Волна быстрая (право сейф)", check_func: () => print_wave && enrage },
{ type: "despawn_all", tag: "wave" },
{ type: "spawn", func: "vector", args: [912, 90, 0, 0, 600, 100, 3000], tag: "wave" },
{ type: "spawn", func: "vector", args: [912, 270, 0, 180, 600, 100, 3000], tag: "wave" },
{ type: "spawn", func: "marker", args: [false, 90, 200, 100, 4000, true, null], tag: "wave" },
{ type: "func", func: () => print_wave = false },
{ type: "func", func: () => print_wave = true, delay: 8000 }
],
"s-982-3000-141-1": "s-982-3000-141-0",
"s-982-3000-141-2": "s-982-3000-141-0",
"s-982-3000-152-0": "s-982-3000-141-0", //
"s-982-3000-152-1": "s-982-3000-141-0",
"s-982-3000-152-2": "s-982-3000-141-0",
"s-982-3000-300-0": [
{ type: "text", sub_type: "message", message: "3" },
{ type: "text", sub_type: "message", delay: 300, message: "2" },
{ type: "text", sub_type: "message", delay: 600, message: "1" },
{ type: "text", sub_type: "message", delay: 800, message: "Dodge! (Awakening 1)", message_RU: "Эвейд! (Пробуждение 1)" }, // <80%
{ type: "func", func: () => awakening_one = true },
{ type: "func", func: () => stack_level = 0 }
],
"s-982-3000-399-0": [
{ type: "text", sub_type: "message", message: "3" },
{ type: "text", sub_type: "message", delay: 400, message: "2" },
{ type: "text", sub_type: "message", delay: 800, message: "1" },
{ type: "text", sub_type: "message", delay: 1200,message: "Dodge! (Awakening 2)", message_RU: "Эвейд! (Пробуждение 2)"}, // <30%
{ type: "func", func: () => awakening_two = true },
{ type: "func", func: () => stack_level = 0 }
],
"s-982-3000-360-0": [
{ type: "text", sub_type: "message", message: "Dodge! (Explosion)", message_RU: "Эвейд! (взрыв)" },
{ type: "func", func: () => stack_level = 0 }
],
"ab-982-3000-98200399": [{ type: "func", func: stacks_level_event }],
"s-982-3000-351-0": [
{ type: "text", sub_type: "message", message: "Stones", message_RU: "Камни" },
{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд", delay: 2000 },
{ type: "text", sub_type: "message", message: "Line up to the plate", message_RU: "Выстроиться к плите", delay: 4000 },
{ type: "text", sub_type: "message", message: "Kaia!", message_RU: "Кайа!", delay: 9500 }
],
"s-982-3011-352-0": [
{ type: "text", sub_type: "message", message: "Break Sphere", message_RU: "Разбить сферу", check_func: () => !awakening_two },
{ type: "text", sub_type: "message", message: "Break Three Spheres", message_RU: "Разбить три сферы", check_func: () => awakening_two }
],
"s-982-3012-353-0": "s-982-3011-352-0"
};
};