forked from hsdn/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
9716.js
229 lines (218 loc) · 14.3 KB
/
9716.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
// Sky Cruiser Endeavor
//
// 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 is_hp_49 = false;
let counter = 0;
let enrage = 0;
let timer2 = null;
function boss_backcombo_event() {
dispatch.clearTimeout(timer2);
counter++;
if (counter >= 2) {
handlers.text({
sub_type: "message",
message_ES: "Atrás Combo 2x360",
message: "Back Combo 2x360"
});
}
timer2 = dispatch.setTimeout(() => counter = 0, enrage == 1 ? 2000 : 3000);
}
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;
handlers.text({
sub_type: "message",
message_ES: is_one_back ? "Atrás 360" : "!!!",
message: is_one_back ? "Back 360" : "!!!"
});
}
dispatch.setTimeout(() => back_print = false, 3500);
}
return {
// Mini BOSS 1
"s-716-91650-1102-0": [{ type: "text", sub_type: "message", message_ES: "Stun AoE", message: "AoE Stun" }],
"s-716-91650-1104-0": [{ type: "text", sub_type: "message", message_ES: "Objetivo Aleatorio (Stun)", 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-716-91650-1105-0": [{ type: "text", sub_type: "message", message_ES: "Salto + Cabezazo Objetivo", message: "Jump + Headbutt on Target" }],
"s-716-91650-1106-0": [{ type: "text", sub_type: "message", message_ES: "Cabezazo (Objetivo)", message: "Headbutt (Target)" }],
"s-716-91650-2102-0": "s-716-91650-1102-0",
"s-716-91650-2104-0": "s-716-91650-1104-0",
"s-716-91650-2105-0": "s-716-91650-1105-0",
"s-716-91650-2106-0": "s-716-91650-1106-0",
// Mini BOSS 2
"ns-716-91606": [
{ type: "spawn", sub_type: "build_object", id: 1, sub_delay: 99999999, pos: { x: 57046, y: 129715, z: 2370, w: -1.08}, ownerName: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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: "DIRECIONAR LASER", message: "LASER ALEATORIO" },//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-716-91606-1304-0": [{ type: "text", sub_type: "message", message_ES: "Láser Aleatorio", message: "Random Laser" },
],
"s-716-91606-1102-0": [{ type: "text", sub_type: "message", message_ES: "Giro", message: "Spin" },
{ type: "spawn", func: "circle", args: [false, 553, 0, -15, 15, 280, 0, 2500] }
],
"s-716-91606-1106-0": [{ type: "text", sub_type: "message", message_ES: "Combo Frontal (Objetivo)", 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, 3000] },
{ type: "spawn", func: "circle", args: [false, 413, 50, 50, 15, 160, 2000, 2000] }
],
"s-716-91606-1105-0": [{ type: "text", sub_type: "message", message_ES: "Salto (Iframe)", message: "Jump (Dodge)" }],
"s-716-91606-1107-0": [{ type: "text", sub_type: "message", message_ES: "Muchos Golpes (Objetivo)", message: "Many Hits (Target)" }],
"s-716-91606-1302-0": [{ type: "text", sub_type: "message", message_ES: "Láser (PROTEGER)", message: "Laser (PROTECT)" },
{ type: "spawn", func: "vector", args: [912, 360, 50, 0, 900, 0, 4000] }
],
"s-716-91606-1304-1": [{ type: "text", sub_type: "message", message_ES: "Iframe", message: "Dodge", delay: 600 }],
"s-716-91606-1305-0": [{ type: "text", sub_type: "message", message_ES: "AoEs", 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, 4000] },//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, 4000] },//3 front right big
{ type: "spawn", func: "circle", args: [false, 553, 225, 360, 14, 220, 1000, 3000] }//4 back left big
],
"s-716-91606-2102-0": "s-716-91606-1102-0",
"s-716-91606-2106-0": "s-716-91606-1106-0",
"s-716-91606-2107-0": "s-716-91606-1107-0",
"s-716-91606-2105-0": "s-716-91606-1105-0",
"qb-716-91606-916027": [{ type: "text", sub_type: "message", message_ES: "Objetivo (Empujar)", message: "Target (Push)" }],
"s-716-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, 18, 550, 0, 2000] },
{ type: "spawn", func: "vector", args: [553, 251, 55, -19, 550, 0, 2000] },
],
"qb-716-91606-916007": [{ type: "text", sub_type: "message", message_ES: "JUNTARSE", message: "GATHER" }],
// Boss 3
// Modo 1
"nd-716-1001": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"s-716-1001-1112-0": [{ type: "text", sub_type: "message", message_ES: "Salto Atrás", message: "Back Jump" }],
"s-716-1001-1303-0": [{ type: "text", sub_type: "message", message_ES: "Ataque Giratorio", message: "Spin Attack" }],
"s-716-1001-1101-0": [{ type: "func", func: boss_backattack_event }],
"s-716-1001-1102-0": [{ type: "func", func: () => back_time = new Date() }],
"s-716-1001-1103-0": [{ type: "func", func: boss_backcombo_event }],
"s-716-1001-1108-0": [{ type: "func", func: boss_backcombo_event }],
"s-716-1001-1401-0": [{ type: "text", sub_type: "message", message_ES: "Derecha", 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-716-1001-1402-0": [{ type: "text", sub_type: "message", message_ES: "Izquierda", 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-716-1001-2101-0": "s-716-1001-1101-0",
"s-716-1001-2102-0": "s-716-1001-1102-0",
"s-716-1001-2103-0": "s-716-1001-1103-0",
"s-716-1001-2108-0": "s-716-1001-1108-0",
"s-716-1001-2112-0": "s-716-1001-1112-0",
// Modo 2
"nd-716-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"h-716-1000-100": [{ type: "func", func: () => is_hp_49 = false }],
"h-716-1000-94": [{ type: "text", sub_type: "message", message: "94%" }],
"h-716-1000-49": [{ type: "text", sub_type: "message", message: "49%" }, { type: "func", func: () => is_hp_49 = true }],
"s-716-1000-1101-0": [{ type: "func", func: boss_backattack_event }],
"s-716-1000-1102-0": [{ type: "func", func: () => back_time = new Date() }],
"s-716-1000-1112-0": [{ type: "text", sub_type: "message", message_ES: "Movimiento Atrás", message: "Back Move" }],
"s-716-1000-1103-0": [{ type: "func", func: boss_backcombo_event }],
"s-716-1000-1108-0": [{ type: "func", func: boss_backcombo_event }],
"s-716-1000-1114-0": [
{ type: "text", sub_type: "message", message_ES: "Ataque Objetivo", 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-716-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: 4200, message_ES: "Iframe", message: "Dodge" }
],
"s-716-1000-1117-0": [{ type: "text", sub_type: "message", message_ES: "Frente", message: "Front" }],
"s-716-1000-1118-0": [
{ type: "text", sub_type: "message", message_ES: "Corte Frontal | Iframe", message: "Front 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-716-1000-1302-0": [
{ type: "text", sub_type: "message", message_ES: "AOE", message: "AOE" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, 8, 500, 100, 6000] }
],
"s-716-1000-2101-0": "s-716-1000-1101-0",
"s-716-1000-2102-0": "s-716-1000-1102-0",
"s-716-1000-2103-0": "s-716-1000-1103-0",
"s-716-1000-2108-0": "s-716-1000-1108-0",
"s-716-1000-2112-0": "s-716-1000-1112-0",
"s-716-1000-1303-0": [{ type: "text", sub_type: "message", message_ES: "Ataque Giratorio", message: "Spin Attack" }],
"s-716-1000-1801-0": [{ type: "text", sub_type: "message", message_ES: "Stun (Iframe)", message: "Incoming Stun" }],
"s-716-1000-1401-0": [{ type: "text", sub_type: "message", message_ES: "Derecha", 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-716-1000-1402-0": [{ type: "text", sub_type: "message", message_ES: "Izquierda", 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-716-1000-2114-0": "s-716-1000-1114-0",
"s-716-1000-2115-0": "s-716-1000-1115-0",
"s-716-1000-2117-0": "s-716-1000-1117-0",
"s-716-1000-2118-0": "s-716-1000-1118-0",
"s-716-1000-2401-0": "s-716-1000-1401-0",
"s-716-1000-2402-0": "s-716-1000-1402-0"
};
};