forked from GrafNikola/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 17
/
9044.js
336 lines (330 loc) · 19 KB
/
9044.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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
// Bahaar's Sanctum
//
// made by michengs / Emilia-s2 / HSDN / Vampic
module.exports = (dispatch, handlers, guide, lang) => {
guide.type = SP;
const { player } = dispatch.require.library;
let print_loading = true;
let print_lasers = true;
function waves_event() {
handlers.event([
{ type: "spawn", func: "vector", args: [553, 90, 50, 0, 500, 0, 6000] },
{ type: "spawn", func: "vector", args: [553, 270, 50, 0, 500, 0, 6000] },
{ type: "spawn", func: "vector", args: [553, 90, 50, 180, 500, 0, 6000] },
{ type: "spawn", func: "vector", args: [553, 270, 50, 180, 500, 0, 6000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 6, 400, 0, 6000] },
{ type: "text", sub_type: "alert", delay: 60000, message: "Waves soon...", message_RU: "Скоро волны..." }
]);
}
dispatch.hook("S_ABNORMALITY_BEGIN", dispatch._mod.majorPatchVersion >= 107 ? 5 : 4, event => {
if (event.id === 90442502) {
if (dispatch._mod.game.me.is(event.target)) {
handlers.text({ sub_type: "notification", message: "Laser on you", message_RU: "Лазер на тебе" });
} else {
const member = player.playersInParty.get(event.target);
if (member) {
handlers.text({
sub_type: "message",
message: `Laser on ${member.name}`,
message_RU: `Лазер на ${member.name}`
});
}
}
}
});
return {
// PHASE 1
"nd-444-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
// Not enraged
"s-444-1000-1103-0": [
{ type: "text", sub_type: "message", message: "Front (Dodge)", message_RU: "Удар вперед (эвейд)" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 400, 8, 350, 100, 3000] }
],
"s-444-1000-1108-0": [
{ type: "text", sub_type: "message", message: "Back Throw", message_RU: "Стан назад" },
{ type: "spawn", func: "circle", args: [false, 553, 180, 250, 12, 300, 100, 3000] }
],
"s-444-1000-1111-0": [
{ type: "text", sub_type: "message", message: "Back", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 185, 500, 8, 490, 1500, 2000] }
],
"s-444-1000-1113-0": [{ type: "text", sub_type: "message", message: "Throw (Bait)", message_RU: "Молот (байт)" }],
"s-444-1000-1114-0": [
{ type: "text", sub_type: "message", message: "Front Slam", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 260, 10, 320, 100, 3000] }
],
"s-444-1000-1115-0": [{ type: "text", sub_type: "message", delay: 1100, message: "Dodge", message_RU: "Эвейд" }], // Knockup
"s-444-1000-1116-0": [
{ type: "text", sub_type: "message", message: "Donuts (In)", message_RU: "Бублики (к нему)" },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 12, 290, 0, 2000] }
],
"s-444-1000-1116-1": [
{ type: "text", sub_type: "message", message: "Out > In", message_RU: "От него > К нему" },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 12, 290, 0, 4000] }
],
"s-444-1000-1117-0": [{ type: "text", sub_type: "message", message: "Jump (Bait)", message_RU: "Прыжок (байт)" }],
"s-444-1000-1118-0": [{ type: "text", sub_type: "message", message: "Jump (Tank)", message_RU: "Прыжок (танк)" }],
"s-444-1000-1118-1": [{ type: "spawn", func: "circle", args: [false, 553, 0, 400, 12, 300, 100, 2000] }],
"s-444-1000-1121-0": [
{ type: "text", sub_type: "message", message: "Waves (Left)", message_RU: "Волны (левая)" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 37, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 143, 125, 0, 2533, false, ["safe", "safe"]] }
],
"s-444-1000-1131-0": [
{ type: "text", sub_type: "message", message: "Front | Left Scratch", message_RU: "Удар вперед | Левый черкаш" },
{ type: "text", sub_type: "message", delay: 1200, message: "Dodge", message_RU: "Эвейд" },
{ type: "spawn", func: "circle", args: [false, 553, 358, 340, 6, 630, 100, 2000] },
{ type: "spawn", func: "vector", args: [553, 90, 115, 186, 800, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 90, 115, 6, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 270, 250, 6, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 270, 250, 186, 800, 0, 3500] }
],
"s-444-1000-1137-0": [
{ type: "text", sub_type: "message", message: "Hammer Back", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 185, 500, 8, 490, 100, 2000] }
],
"s-444-1000-1138-0": [{ type: "text", sub_type: "message", delay: 1100, message: "Dodge", message_RU: "Эвейд" }], // Knockup (Bait)
"s-444-1000-1139-0": [
{ type: "text", sub_type: "message", delay: 550, message: "Dodge!", message_RU: "Эвейд!" },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 20, 160, 0, 2000] },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 12, 220, 0, 2000] },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 10, 300, 0, 2000] },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 8, 360, 0, 2000] }
],
"s-444-1000-1140-0": [
{ type: "text", sub_type: "message", message: "Waves (Right)", message_RU: "Волны (правая)" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 323, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 217, 125, 0, 2533, false, ["safe", "safe"]] }
],
// Enraged
"s-444-1000-2103-0": "s-444-1000-1103-0",
"s-444-1000-2108-0": "s-444-1000-1108-0",
"s-444-1000-2111-0": "s-444-1000-1111-0",
"s-444-1000-2113-0": "s-444-1000-1113-0",
"s-444-1000-2114-0": "s-444-1000-1114-0",
"s-444-1000-2115-0": [{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд" }], // Knockup
"s-444-1000-2116-0": "s-444-1000-1116-0",
"s-444-1000-2116-1": "s-444-1000-1116-1",
"s-444-1000-2117-0": "s-444-1000-1117-0",
"s-444-1000-2118-0": "s-444-1000-1118-0",
"s-444-1000-2118-1": "s-444-1000-1118-1",
"s-444-1000-2121-0": "s-444-1000-1121-0",
"s-444-1000-2131-0": "s-444-1000-1131-0",
"s-444-1000-2137-0": "s-444-1000-1137-0",
"s-444-1000-2138-0": [{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд" }], // Knockup (Bait)
"s-444-1000-2139-0": "s-444-1000-1139-0",
"s-444-1000-2140-0": "s-444-1000-1140-0",
// PHASE 2
"nd-444-2000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"ns-444-2000": [
{ type: "spawn", func: "marker", args: [false, 0, -700, 100, 60000000, false, ["Throne", "Throne Direction"]] },
{ type: "spawn", func: "point", args: [513, 0, 800, 100, 60000000] },
{ type: "func", func: () => print_loading = true },
{ type: "func", func: () => print_lasers = true }
],
// Not enraged
"s-444-2000-1101-0": [
{ type: "text", sub_type: "message", message: "4 Hit Combo", message_RU: "270 (сейф-зона)" },
{ type: "spawn", func: "vector", args: [553, 0, 0, 195, 500, 0, 3000] },
{ type: "spawn", func: "vector", args: [553, 0, 0, 270, 500, 0, 3000] }
],
"s-444-2000-1103-0": [
{ type: "text", sub_type: "message", message: "Front (Dodge)", message_RU: "Удар вперед (эвейд)" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 400, 8, 350, 100, 3000] }
],
"s-444-2000-1107-0": [{ type: "text", sub_type: "message", message: "4 Hit (3)", message_RU: "4" }],
"s-444-2000-1108-0": [
{ type: "text", sub_type: "message", message: "Back Throw", message_RU: "Стан назад" },
{ type: "spawn", func: "circle", args: [false, 553, 180, 250, 12, 300, 100, 3000] }
],
"s-444-2000-1111-0": [
{ type: "text", sub_type: "message", message: "Back", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 185, 500, 8, 490, 1500, 2000] }
],
"s-444-2000-1112-0": [
{ type: "text", sub_type: "message", message: "Perfect Defense (Fast)", message_RU: "Идеальный блок (быстро)" },
{ type: "text", sub_type: "message", delay: 1200, message: "Block", message_RU: "Блок" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 220, 12, 210, 100, 3000] }
],
"s-444-2000-1113-0": [{ type: "text", sub_type: "message", message: "Throw (Bait)", message_RU: "Молот (байт)" }],
"s-444-2000-1114-0": [
{ type: "text", sub_type: "message", message: "Front Slam", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 260, 10, 320, 100, 3000] }
],
"s-444-2000-1115-0": [{ type: "text", sub_type: "message", delay: 1100, message: "Dodge", message_RU: "Эвейд" }], // Knockup
"s-444-2000-1116-0": [
{ type: "text", sub_type: "message", message: "Donuts (In)", message_RU: "Бублики (к нему)" },
{ type: "spawn", func: "circle", args: [false, 912, 0, 0, 12, 290, 100, 2000] }
],
"s-444-2000-1116-1": [
{ type: "text", sub_type: "message", message: "Out > In", message_RU: "От него > К нему" },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 12, 290, 100, 4000] }
],
"s-444-2000-1117-0": [{ type: "text", sub_type: "message", message: "Jump (Bait)", message_RU: "Прыжок (байт)" }],
"s-444-2000-1118-0": [{ type: "text", sub_type: "message", message: "Jump (Tank)", message_RU: "Прыжок (танк)" }],
"s-444-2000-1118-1": [{ type: "spawn", func: "circle", args: [false, 553, 0, 400, 12, 300, 100, 2000] }],
"s-444-2000-1119-0": [
{ type: "text", sub_type: "message", message: "Left Swipe", message_RU: "Слева" },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 20, 160, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 12, 220, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 10, 300, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 8, 360, 0, 2000] },
{ type: "spawn", func: "marker", args: [false, 270, 300, 100, 2000, true, null] }
],
"s-444-2000-1120-0": [
{ type: "text", sub_type: "message", message: "Right Swipe", message_RU: "Справа" },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 20, 160, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 12, 220, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 10, 300, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 8, 360, 0, 2000] },
{ type: "spawn", func: "marker", args: [false, 90, 300, 100, 2000, true, null] }
],
"s-444-2000-1121-0": [
{ type: "text", sub_type: "message", message: "Waves (Left)", message_RU: "Волны (левая)" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 37, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 143, 125, 0, 2533, false, ["safe", "safe"]] }
],
"s-444-2000-1122-0": [
{ type: "text", sub_type: "message", message: "Waves (Left) 3nd fast", message_RU: "Волны (левая) 3-я быстрая" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 37, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 143, 125, 0, 2533, false, ["safe", "safe"]] }
],
"s-444-2000-1123-0": [
{ type: "text", sub_type: "message", message: "Waves (Left) 2nd fast", message_RU: "Волны (левая) 2-я быстрая" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 37, 125, 0, 2500, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 143, 125, 0, 2500, false, ["safe", "safe"]] }
],
"s-444-2000-1125-0": [
{ type: "text", sub_type: "message", message: "Front | Right Scratch", message_RU: "Удар вперед | Правый черкаш" },
{ type: "text", sub_type: "message", delay: 1750, message: "Dodge", message_RU: "Эвейд" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 400, 8, 350, 100, 2000] },
{ type: "spawn", func: "vector", args: [553, 60, 290, 175, 800, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 60, 290, -5, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 290, 95, -5, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 290, 95, 175, 800, 0, 3500] }
],
"s-444-2000-1131-0": [
{ type: "text", sub_type: "message", message: "Front | Left Scratch", message_RU: "Удар вперед | Левый черкаш" },
{ type: "text", sub_type: "message", delay: 1200, message: "Dodge", message_RU: "Эвейд" },
{ type: "spawn", func: "circle", args: [false, 553, 358, 340, 6, 630, 100, 2000] },
{ type: "spawn", func: "vector", args: [553, 90, 115, 186, 800, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 90, 115, 6, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 270, 250, 6, 300, 0, 3500] },
{ type: "spawn", func: "vector", args: [553, 270, 250, 186, 800, 0, 3500] }
],
"s-444-2000-1135-0": [
{ type: "text", sub_type: "message", message: "Perfect Defense", message_RU: "Идеальный блок" },
{ type: "text", sub_type: "message", delay: 800, message: "Block", message_RU: "Блок" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 220, 12, 210, 100, 3000] }
],
"s-444-2000-1137-0": [
{ type: "text", sub_type: "message", message: "Hammer back", message_RU: "Удар назад" },
{ type: "spawn", func: "circle", args: [false, 553, 185, 500, 8, 490, 100, 2000] }
],
"s-444-2000-1138-0": [{ type: "text", sub_type: "message", delay: 900, message: "Dodge", message_RU: "Эвейд" }], // Knockup (Bait)
"s-444-2000-1139-0": [{ type: "text", sub_type: "message", delay: 200, message: "Dodge!", message_RU: "Эвейд!" }],
"s-444-2000-1140-0": [
{ type: "text", sub_type: "message", message: "Waves (Right)", message_RU: "Волны (правая)" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 323, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 217, 125, 0, 2533, false, ["safe", "safe"]] }
],
"s-444-2000-1141-0": [
{ type: "text", sub_type: "message", message: "Waves (Right) 3nd fast", message_RU: "Волны (правая) 3-я быстрая" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 323, 125, 0, 2533, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 217, 125, 0, 2533, false, ["safe", "safe"]] }
],
"s-444-2000-1142-0": [
{ type: "text", sub_type: "message", message: "Waves (Right) 2nd fast", message_RU: "Волны (правая) 2-я быстрая" },
{ type: "func", func: waves_event },
{ type: "spawn", func: "marker", args: [false, 323, 125, 0, 2500, false, ["safe", "safe"]] },
{ type: "spawn", func: "marker", args: [false, 217, 125, 0, 2500, false, ["safe", "safe"]] }
],
"s-444-2000-1307-0": [
{ type: "text", sub_type: "message", message: "!", message_RU: "!" },
{ type: "text", sub_type: "message", delay: 20000, message: "Last aerolite", message_RU: "Последний метеор" }
],
"s-444-2000-1308-0": [{ type: "text", sub_type: "message", message: "Stun (1)", message_RU: "Стан (1)" }],
"s-444-2000-1309-0": [{ type: "text", sub_type: "message", message: "Stun (2)", message_RU: "Стан (2)" }],
"s-444-2000-1310-0": [{ type: "text", sub_type: "message", message: "Stun (3)", message_RU: "Стан (3)" }],
"s-444-2000-1311-0": [
{ type: "text", sub_type: "message", message: "Wrath (Kaia)", message_RU: "Облепиха (кайа)" },
{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 500, 0, 6000] },
{ type: "spawn", func: "vector", args: [553, 0, 0, 180, 500, 0, 6000] }
],
"s-444-2000-1312-0": [
{ type: "text", sub_type: "message", message: "Wrath (Kaia)", message_RU: "Облепиха (кайа)" },
{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 500, 0, 6000] },
{ type: "spawn", func: "vector", args: [553, 0, 0, 180, 500, 0, 6000] }
],
// Enraged
"s-444-2000-2101-0": "s-444-2000-1101-0",
"s-444-2000-2103-0": "s-444-2000-1103-0",
"s-444-2000-2107-0": "s-444-2000-1107-0",
"s-444-2000-2108-0": "s-444-2000-1108-0",
"s-444-2000-2111-0": "s-444-2000-1111-0",
"s-444-2000-2112-0": [
{ type: "text", sub_type: "message", delay: 1000, message: "Perfect Defense x2 (Slow)", message_RU: "Идеальный блок x2 (медленно)" },
{ type: "text", sub_type: "message", delay: 2400, message: "Block", message_RU: "Блок" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 220, 12, 210, 100, 4000] }
],
"s-444-2000-2113-0": "s-444-2000-1113-0",
"s-444-2000-2114-0": "s-444-2000-1114-0",
"s-444-2000-2115-0": [{ type: "text", sub_type: "message", delay: 100, message: "Dodge", message_RU: "Эвейд" }], // Knockup
"s-444-2000-2116-0": "s-444-2000-1116-0",
"s-444-2000-2116-1": "s-444-2000-1116-1",
"s-444-2000-2117-0": "s-444-2000-1117-0",
"s-444-2000-2118-0": "s-444-2000-1118-0",
"s-444-2000-2118-1": "s-444-2000-1118-1",
"s-444-2000-2119-0": "s-444-2000-1119-0",
"s-444-2000-2120-0": "s-444-2000-1120-0",
"s-444-2000-2121-0": "s-444-2000-1121-0",
"s-444-2000-2122-0": "s-444-2000-1122-0",
"s-444-2000-2123-0": "s-444-2000-1123-0",
"s-444-2000-2125-0": "s-444-2000-1125-0",
"s-444-2000-2131-0": "s-444-2000-1131-0",
"s-444-2000-2135-0": [
{ type: "text", sub_type: "message", message: "Perfect Defense x2", message_RU: "Идеальный блок x2" },
{ type: "text", sub_type: "message", delay: 800, message: "Block", message_RU: "Блок" },
{ type: "spawn", func: "circle", args: [false, 553, 356, 220, 12, 210, 100, 4000] }
],
"s-444-2000-2137-0": "s-444-2000-1137-0",
"s-444-2000-2138-0": [{ type: "text", sub_type: "message", message: "Dodge", message_RU: "Эвейд" }], // Knockup (Bait)
"s-444-2000-2139-0": "s-444-2000-1139-0",
"s-444-2000-2140-0": "s-444-2000-1140-0",
"s-444-2000-2141-0": "s-444-2000-1141-0",
"s-444-2000-2142-0": "s-444-2000-1142-0",
//
"s-444-2500-1201-0": [
{ type: "event", check_func: () => print_loading, args: [
{ type: "text", sub_type: "alert", message: "Loading lasers...", message_RU: "Зарядка лазеров..." },
{ type: "func", func: () => print_loading = false }
] }
],
"s-444-2500-1305-0": [
{ type: "event", check_func: () => print_lasers, args: [
{ type: "text", sub_type: "message", message: "Laser", message_RU: "Лазер" },
{ type: "func", func: () => print_lasers = false },
{ type: "func", func: () => print_lasers = true, delay: 4000 }
] },
{ type: "spawn", func: "vector", args: [912, 0, 0, 0, 3000, 0, 4000] }
],
"ab-444-2000-90442303": [{ type: "text", sub_type: "message", message: "Plague/Regress", message_RU: "Регресс" }],
"ab-444-2000-90442304": [
{ type: "text", sub_type: "notification", message: "Stun", message_RU: "Стан!", speech: false },
{ type: "text", sub_type: "message", message: "Stun", message_RU: "Стан!" }
]
};
};