forked from GrafNikola/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 17
/
9916.js
251 lines (236 loc) · 14.4 KB
/
9916.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
// Sky Cruiser Endeavor (Hard)
//
// made by michengs / HSDN / Emilia-s2
module.exports = (dispatch, handlers, guide, lang) => {
guide.type = SP;
let back_print = false;
let back_time = 0;
let end_back_time = 0;
let is_one_back = false;
let counter = 0;
let counter1_date = null;
let prev_back_attack = 0;
let prev_date = 0;
function boss_backattack_event() {
end_back_time = new Date() - back_time;
if (!back_print) {
back_print = true;
is_one_back = end_back_time > 0 && end_back_time < 1500;
if (is_one_back) {
handlers.text({
sub_type: "message",
message_RU: "360",
message: "360",
});
}
}
dispatch.setTimeout(() => back_print = false, 3500);
}
function boss_backattack_event_new(curr, ent) {
let start = new Date();
let tmp = prev_date;
prev_date = start;
let time_diff = start - tmp;
let prev = prev_back_attack;
prev_back_attack = curr;
let back_combo_time_diff = 5000;
if (counter1_date != null) {
back_combo_time_diff = start - counter1_date;
}
if (prev == 1106 && curr == 1103 && time_diff < 1000) {
handlers.text({
sub_type: "message",
message_RU: "360",
message: "360"
});
} else if (prev === 1103 && curr === 1105 && time_diff < 1000) {
counter = 1;
counter1_date = new Date();
} else if (prev === 1105 && curr === 1106 && counter === 1 && time_diff < 1500 && back_combo_time_diff < 1500) {
counter = 2;
} else if (prev === 1106 && curr === 1108 && counter == 2 && time_diff < 1000 && back_combo_time_diff < 2000) {
handlers.text({
sub_type: "message",
message_RU: "2x360",
message: "2x360"
});
} else {
counter = 0;
counter1_date = null;
}
}
function reset_backevent() {
back_print = false;
back_time = 0;
end_back_time = 0;
is_one_back = false;
counter = 0;
counter1_date = null;
prev_back_attack = 0;
prev_date = 0;
}
return {
// Mini BOSS 1
"qb-916-91660-916045": [{ type: "text", sub_type: "message", message_RU: "Случайный выстрел", message: "Random Shot" }],
"s-916-91660-1304-0": [
{ type: "spawn", func: "vector", args: [912, 370, 50, 8, 1900, 0, 3000] },
{ type: "spawn", func: "vector", args: [912, 360, 50, 0, 1900, 0, 3000] },
{ type: "spawn", func: "vector", args: [912, 350, 50, -8, 1900, 0, 3000] }
],
"s-916-91660-1304-1": [
{ type: "spawn", func: "vector", args: [912, 370, 50, 8, 1900, 0, 3000] },
{ type: "spawn", func: "vector", args: [912, 360, 50, 0, 1900, 0, 3000] },
{ type: "spawn", func: "vector", args: [912, 350, 50, -8, 1900, 0, 3000] }
],
"s-916-91650-1102-0": [{ type: "text", sub_type: "message", message_RU: "Стан АоЕ", message: "AoE Stun" }],
"s-916-91650-1104-0": [{ type: "text", sub_type: "message", message_RU: "Случайная цель (стан)", message: "Random Target (Stun)" },
{ type: "spawn", func: "semicircle", args: [-33, 38, 912, 0, 0, 8, 550, 0, 3500] }, //1
{ type: "spawn", func: "semicircle", args: [-30, 35, 912, 0, 0, 8, 500, 0, 3500] }, //1
{ type: "spawn", func: "semicircle", args: [59, 116, 912, -22, 210, 8, 480, 0, 3500] }, //2
{ type: "spawn", func: "semicircle", args: [65, 120, 912, -17, 210, 8, 410, 0, 3500] }, //2
{ type: "spawn", func: "semicircle", args: [-110, -55, 912, 30, 200, 8, 500, 0, 3500] }, //3
{ type: "spawn", func: "semicircle", args: [-110, -55, 912, 30, 200, 8, 450, 0, 3500] }//3
],
"s-916-91650-1105-0": [{ type: "text", sub_type: "message", message_RU: "Прыжок + Удар головой (таргет)", message: "Jump + Headbutt on Target" }],
"s-916-91650-1106-0": [{ type: "text", sub_type: "message", message_RU: "Удар головой (таргет)", message: "Headbutt (Target)" }],
"s-916-91650-2102-0": "s-916-91650-1102-0",
"s-916-91650-2104-0": "s-916-91650-1104-0",
"s-916-91650-2105-0": "s-916-91650-1105-0",
"s-916-91650-2106-0": "s-916-91650-1106-0",
// Mini BOSS 2
"ns-916-91606": [
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 57046, y: 129715, z: 2370, w: -1.08 }, ownerName: "AIM LASER", message: "LASER" }, //1
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 57046, y: 129715, z: 2370, w: -1.08 } }, //1
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 58360, y: 129712, z: 2370, w: -2.09 }, ownerName: "AIM LASER", message: "LASER" }, //2
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 58360, y: 129712, z: 2370, w: -2.09 } }, //2
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 58361, y: 126912, z: 2370, w: 2.00 }, ownerName: "AIM LASER", message: "LASER" }, //3
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 58361, y: 126912, z: 2370, w: 2.00 } }, //3
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 57048, y: 126914, z: 2370, w: 1.06 }, ownerName: "AIM LASER", message: "LASER" }, //4
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 57048, y: 126914, z: 2370, w: 1.06 } }, //4
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 59088, y: 127837, z: 2370, w: 2.76 }, ownerName: "AIM LASER", message: "LASER" }, //4 esquerda atras
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 59088, y: 127837, z: 2370, w: 2.76 } }, //4 esquerda atras
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 56343, y: 127836, z: 2370, w: 0.39 }, ownerName: "AIM LASER", message: "LASER" }, //4 direita atras
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 56343, y: 127836, z: 2370, w: 0.39 } }, //4 direita atras
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 56339, y: 128908, z: 2370, w: -0.38 }, ownerName: "AIM LASER", message: "LASER" }, //4 direita frente
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 56339, y: 128908, z: 2370, w: -0.38 } }, //4 direita frente
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 59087, y: 128907, z: 2370, w: -2.75 }, ownerName: "AIM LASER", message: "LASER" }, //4 esquerda frente
{ type: "spawn", sub_type: "item", id: 88704, sub_delay: 99999999, pos: { x: 59087, y: 128907, z: 2370, w: -2.75 } }//4 esquerda frente
],
"s-916-91606-1304-0": [{ type: "text", sub_type: "message", message_RU: "ЛАЗЕР", message: "Random Laser " },
{ type: "text", sub_type: "notification", message_RU: "Скоро лазер...", message: "Random Laser soon...", delay: 55000 }
],
"s-916-91606-1102-0": [{ type: "text", sub_type: "message", message_RU: "Крутилка", message: "Spin" },
{ type: "spawn", func: "circle", args: [false, 553, 0, -15, 15, 280, 0, 2500] }
],
"s-916-91606-1106-0": [{ type: "text", sub_type: "message", message_RU: "Передняя комба (таргет)", message: "Frontal Combo (Target)" },
{ type: "spawn", func: "circle", args: [false, 553, -30, 200, 18, 160, 0, 2000] },
{ type: "spawn", func: "circle", args: [false, 553, -10, 230, 15, 210, 2000, 2000] },
{ type: "spawn", func: "circle", args: [false, 413, 50, 50, 15, 160, 2000, 2000] }
],
"s-916-91606-1107-0": [{ type: "text", sub_type: "message", message_RU: "Несколько ударов (таргет)", message: "Many Hits (Target)" }],
"s-916-91606-1302-0": [{ type: "text", sub_type: "message", message_RU: "Лазер (ЗАЩИТА)", message: "Laser (PROTECT)" },
{ type: "spawn", func: "vector", args: [912, 360, 50, 0, 900, 0, 4000] }
],
"s-916-91606-1304-1": [{ type: "text", sub_type: "message", message_RU: "Эвейд", message: "Dodge", delay: 150 }],
"s-916-91606-1305-0": [{ type: "text", sub_type: "message", message_RU: "АоЕ", message: "AoEs" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 210, 22, 140, 0, 3000] }, //1 front
{ type: "spawn", func: "circle", args: [false, 553, 0, -230, 22, 140, 0, 3000] }, //2 back
{ type: "spawn", func: "circle", args: [false, 553, 90, -230, 22, 140, 0, 2000] }, //3 left
{ type: "spawn", func: "circle", args: [false, 553, 270, -230, 22, 140, 0, 2000] }, //4 right
{ type: "spawn", func: "circle", args: [false, 553, 315, 360, 14, 220, 1000, 3000] }, //1 front left big
{ type: "spawn", func: "circle", args: [false, 553, 135, 360, 14, 220, 1000, 3000] }, //2 back right big
{ type: "spawn", func: "circle", args: [false, 553, 45, 360, 14, 220, 1000, 2000] }, //3 front right big
{ type: "spawn", func: "circle", args: [false, 553, 225, 360, 14, 220, 1000, 3000] }//4 back left big
],
"s-916-91606-2102-0": "s-916-91606-1102-0",
"s-916-91606-2106-0": "s-916-91606-1106-0",
"s-916-91606-2107-0": "s-916-91606-1107-0",
"s-916-91606-2105-0": "s-916-91606-1105-0",
"qb-916-91606-916027": [{ type: "text", sub_type: "message", message_RU: "Таргет (откид)", message: "Target (Push)" }],
"s-916-91606-1301-0": [
{ type: "spawn", func: "semicircle", args: [338, 385, 553, 0, 0, 5, 600, 0, 2000] },
{ type: "spawn", func: "vector", args: [553, 459, 60, 20, 550, 0, 2000] },
{ type: "spawn", func: "vector", args: [553, 251, 55, -21, 550, 0, 2000] }
],
"qb-916-91606-916007": [{ type: "text", sub_type: "message", message_RU: "(ВМЕСТЕ)", message: "GATHER" }],
// Boss 3
"nd-916-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" },
{type: "func", func: reset_backevent}
],
"h-916-1000-94": [{ type: "text", sub_type: "message", message: "94%" }],
"h-916-1000-49": [{ type: "text", sub_type: "message", message: "49%" }],
"s-916-1000-1112-0": [{ type: "text", sub_type: "message", message_RU: "Рывок назад", message: "Back Move" }],
"s-916-1000-1102-0": [{ type: "func", func: () => back_time = new Date() }],
"s-916-1000-1101-0": [{ type: "func", func: boss_backattack_event }],
"s-916-1000-1106-0": [{ type: "func", func: boss_backattack_event_new, args: [1106] }],
"s-916-1000-1105-0": [{ type: "func", func: boss_backattack_event_new, args: [1105] }],
"s-916-1000-1103-0": [{ type: "func", func: boss_backattack_event_new, args: [1103] }],
"s-916-1000-1108-0": [{ type: "func", func: boss_backattack_event_new, args: [1108] }],
"s-916-1000-1114-0": [
{ type: "text", sub_type: "message", message_RU: "Таргет", message: "Target Attack" },
{ type: "spawn", func: "vector", args: [553, 90, 150, 0, 1300, 0, 2500] },
{ type: "spawn", func: "vector", args: [553, 90, 75, 0, 1300, 0, 2500] },
{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 1300, 0, 2500] },
{ type: "spawn", func: "vector", args: [553, 270, 75, 0, 1300, 0, 2500] },
{ type: "spawn", func: "vector", args: [553, 270, 150, 0, 1300, 0, 2500] }
],
"s-916-1000-1115-0": [
{ type: "text", sub_type: "message", message: "3" },
{ type: "text", sub_type: "message", delay: 1000, message: "2" },
{ type: "text", sub_type: "message", delay: 2000, message: "1" },
{ type: "text", sub_type: "message", delay: 3200, message_RU: "Эвейд", message: "Dodge" }
],
"s-916-1000-1117-0": [{ type: "text", sub_type: "message", message_RU: "Удар вперед", message: "Front" }],
"s-916-1000-1118-0": [
{ type: "text", sub_type: "message", message_RU: "Передний разрез | Эвейд", message: "Frontal Cut | Dodge" },
{ type: "spawn", func: "semicircle", args: [0, 60, 553, 0, 0, 15, 60, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 55, 553, 0, 0, 15, 160, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 45, 553, 0, 0, 10, 250, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [0, 45, 553, 0, 0, 10, 340, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [300, 360, 553, 0, 0, 15, 60, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [305, 360, 553, 0, 0, 15, 160, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [310, 360, 553, 0, 0, 10, 250, 0, 2000] },
{ type: "spawn", func: "semicircle", args: [315, 360, 553, 0, 0, 10, 340, 0, 2000] }
],
"s-916-1000-1302-0": [
{ type: "text", sub_type: "message", message_RU: "АоЕ", message: "AOE" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, 8, 500, 100, 6000] }
],
"s-916-1000-2101-0": "s-916-1000-1101-0",
"s-916-1000-2102-0": "s-916-1000-1102-0",
"s-916-1000-2103-0": "s-916-1000-1103-0",
"s-916-1000-2105-0": "s-916-1000-1105-0",
"s-916-1000-2106-0": "s-916-1000-1106-0",
"s-916-1000-2108-0": "s-916-1000-1108-0",
"s-916-1000-2112-0": "s-916-1000-1112-0",
"s-916-1000-1303-0": [{ type: "text", sub_type: "message", message_RU: "Крутилка", message: "Spin Attack" }],
"s-916-1000-1801-0": [{ type: "text", sub_type: "message", message_RU: "Стан", message: "Incoming Stun" }],
"s-916-1000-1401-0": [{ type: "text", sub_type: "message", message_RU: "Правый", message: "Right" },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 20, 160, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 12, 220, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 10, 300, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [0, 180, 912, 0, 0, 8, 360, 0, 1500] },
{ type: "spawn", func: "vector", args: [553, 358, 0, 180, 1100, 100, 1500] },
{ type: "spawn", func: "vector", args: [553, 358, 0, 0, 1100, 100, 1500] }
],
"s-916-1000-1402-0": [{ type: "text", sub_type: "message", message_RU: "Левый", message: "Left" },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 20, 160, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 12, 220, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 10, 300, 0, 1500] },
{ type: "spawn", func: "semicircle", args: [180, 360, 912, 0, 0, 8, 360, 0, 1500] },
{ type: "spawn", func: "vector", args: [553, 358, 0, 180, 1100, 100, 1500] },
{ type: "spawn", func: "vector", args: [553, 358, 0, 0, 1100, 100, 1500] }
],
"s-916-1000-1301-0": [{ type: "text", sub_type: "message", message_RU: "вопль", message: "Scream" }],
"s-916-1000-1311-0": [{ type: "text", sub_type: "message", message_RU: "Внутренний", message: "Inner" }],
"s-916-1000-1308-0": [{ type: "text", sub_type: "message", message_RU: "Внутренний", message: "Inner" }],
"s-916-1000-2114-0": "s-916-1000-1114-0",
"s-916-1000-2115-0": "s-916-1000-1115-0",
"s-916-1000-2117-0": "s-916-1000-1117-0",
"s-916-1000-2118-0": "s-916-1000-1118-0",
"s-916-1000-2401-0": "s-916-1000-1401-0",
"s-916-1000-2402-0": "s-916-1000-1402-0"
};
};