forked from hsdn/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3027.js
160 lines (139 loc) · 7.78 KB
/
3027.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
// Forbidden Arena [Hagufna]
//
// made by michengs / HSDN
/* eslint-disable no-multi-spaces */
module.exports = (dispatch, handlers, guide, lang) => {
const { HIGHLIGHT_ITEM } = module.parent.exports.spawn;
let shield_timer1 = null;
let shield_timer2 = null;
let print_shield = true;
let print_hp = true;
let is_hp_74_39 = false;
function shield_event() {
dispatch.clearTimeout(shield_timer1);
dispatch.clearTimeout(shield_timer2);
shield_timer1 = dispatch.setTimeout(() => {
if (!is_hp_74_39) {
handlers.text({
sub_type: "message",
message: "Shield in 5 seconds!",
message_ES: "Escudo en 5 segundos!"
});
}
}, 85000);
shield_timer2 = dispatch.setTimeout(() => {
if (!is_hp_74_39) {
handlers.text({
sub_type: "message",
message: "Shield in 15 seconds!",
message_ES: "Escudo en 15 segundos!"
});
}
}, 75000);
}
function boss_hp_event(hp) {
if ([74, 39].includes(hp)) {
if (print_hp) {
dispatch.clearTimeout(shield_timer1);
dispatch.clearTimeout(shield_timer2);
print_hp = false;
is_hp_74_39 = true;
dispatch.setTimeout(() => print_hp = true, 15000);
}
}
if ([89, 59, 29].includes(hp)) { // до щита
if (print_shield) {
print_shield = false;
is_hp_74_39 = false;
dispatch.setTimeout(() => print_shield = true, 15000);
handlers.text({
sub_type: "alert",
message: "Ready for Shield",
message_ES: "Listo para el Escudo"
});
}
}
}
return {
"nd-3027-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" }
],
"h-3027-1000-89": [{ type: "func", func: boss_hp_event, args: [89] }],
"h-3027-1000-59": [{ type: "func", func: boss_hp_event, args: [59] }],
"h-3027-1000-29": [{ type: "func", func: boss_hp_event, args: [29] }],
"h-3027-1000-74": [{ type: "func", func: boss_hp_event, args: [74] }],
"h-3027-1000-39": [{ type: "func", func: boss_hp_event, args: [39] }],
//"s-3027-1001-255-0": [{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 3000, 0, 5000] }], //0
//"s-3027-1002-256-0": [{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 3000, 0, 5000] }], //60
//"s-3027-1003-257-0": [{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 3000, 0, 5000] }], //0
//"s-3027-1004-258-0": [{ type: "spawn", func: "vector", args: [553, 0, 0, 0, 3000, 0, 5000] }], //60
"s-3027-1000-108-0": [{ type: "text", class_position: "tank", sub_type: "message", message: "Strike (Slow)", message_ES: "Espadazo Frontal (Cuidado)" }], // 101 121 122 -> 108
"s-3027-1000-135-0": [{ type: "text", sub_type: "message", message: "Strike (Slow)", message_ES: "Espadazo Frontal (Lento)" }], // 104 -> 135 -> 130
"s-3027-1000-111-0": [{ type: "text", sub_type: "message", message: "Stun | Strike", message_ES: "Stun | Espadazo" }], // 104 -> 111 -> 130
"s-3027-1000-112-0": [{ type: "text", sub_type: "message", message: "Back Jump | Strike", message_ES: "Salto Atrás | Espadazo" }], // 121 102 -> 112 -> 130
// Salto
"s-3027-1000-116-0": [
{ type: "text", sub_type: "message", message: "Jump", message_ES: "Salto" }
],
"s-3027-1000-116-1": [
{ type: "text", sub_type: "message", message: "Dodge", message_ES: "¡Iframe!" },
{ type: "spawn", func: "circle", args: [true, 912, 0, 110, 8, 480, 0, 3000] }
],
// 3x360 -> Salto (145 -> 139 -> 140)
"s-3027-1000-145-0": [{ type: "text", sub_type: "message", message: "3x360 | Jump", message_ES: "3x360 | Salto" }],
"s-3027-1000-139-0": [{ type: "text", sub_type: "message", delay: 1000, message: "Jump", message_ES: "Salto" }],
"s-3027-1000-140-0": [
{ type: "text", sub_type: "message", message: "Dodge", message_ES: "¡Iframe!" },
{ type: "spawn", func: "circle", args: [false, 912, 0, 110, 8, 480, 0, 3000] }
],
// 109 -> 402 -> 130
"s-3027-1000-109-0": [{ type: "text", sub_type: "message", message: "Forward Jump", message_ES: "Salto Adelante" }],
"s-3027-1000-402-0": [{ type: "text", sub_type: "message", message: "Jump", message_ES: "Salto" }],
// 136 -> 144 -> 130
"s-3027-1000-136-0": [{ type: "text", sub_type: "message", message: "2x360 | Strike", message_ES: "2x360 | Espadazo" }],
"s-3027-1000-144-0": [{ type: "text", sub_type: "message", message: "Strike", message_ES: "Espadazo" }],
// 134 -> 147
"s-3027-1000-134-0": [{ type: "text", sub_type: "message", message: "Turn around | Back", message_ES: "Cuidado | Espadazo Atrás" }],
"s-3027-1000-134-1": [{ type: "text", sub_type: "message", message: "Back", message_ES: "Espadazo Atrás" }],
"s-3027-1000-147-0": [{ type: "text", sub_type: "message", message: "Strike", message_ES: "Espadazo" }],
// 142 -> 143 114 130
"s-3027-1000-142-0": [{ type: "text", sub_type: "message", message: "2x360 | Strike", message_ES: "2x360 | Espadazo" }],
"s-3027-1000-143-0": [{ type: "text", sub_type: "message", message: "Strike", message_ES: "Espadazo" }],
"s-3027-1000-141-0": [{ type: "text", sub_type: "message", message: "2x360 | Eviscerate", message_ES: "2x360 | Destripar" }], // 141 -> 146 114 130
"s-3027-1000-146-0": [{ type: "text", sub_type: "message", message: "Eviscerate | Strike", message_ES: "Destripar | Espadazo" }], // 146 -> 114 -> 130
// стяжка -> бублики (350 -> 302)
"s-3027-1000-350-0": [
{ type: "text", sub_type: "message", message: "Red: Donuts (Out > In)", message_ES: "Rojo: Donas (Salir > Entrar)" },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 12, 240, 0, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 8, 480, 0, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 3, 950, 0, 5000] },
{ type: "spawn", func: "item", args: [HIGHLIGHT_ITEM, 0, 0, 3800, 1000] },
{ type: "text", sub_type: "message", delay: 3800, message: "In", message_ES: "¡ENTRA!" },
{ type: "spawn", func: "marker", args: [false, 180, 100, 3800, 1000, false, ["CENTER", "IN"]] },
{ type: "spawn", func: "marker", args: [false, 0, 100, 3800, 1000, false, ["CENTER", "IN"]] },
{ type: "spawn", func: "marker", args: [false, 90, 100, 3800, 1000, false, ["CENTER", "IN"]] },
{ type: "spawn", func: "marker", args: [false, 270, 100, 3800, 1000, false, ["CENTER", "IN"]] },
{ type: "text", sub_type: "alert", delay: 58000, message: "Mechanics soon...", message_ES: "Mecánica pronto..." }
],
// стяжка -> волна (357 -> 110)
"s-3027-1000-357-0": [
{ type: "text", sub_type: "message", message: "Purple: Get Out", message_ES: "Morado: Explosión (SALIR)" },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, 20, 500, 2000, 5000] },
{ type: "text", sub_type: "alert", delay: 58000, message: "Mechanics soon...", message_ES: "Mecánica pronto..." }
],
"s-3027-1000-151-0": [{ type: "text", sub_type: "message", message: "Back teleport | Strike", message_ES: "Volver Teleport | Espadazo" }], // 151 149 148 -> 130
"s-3027-1000-149-1": [{ type: "text", sub_type: "message", message: "Back teleport (Target)", message_ES: "Volver Teleport (Objetivo)" }],
"s-3027-1000-117-0": [{ type: "text", sub_type: "message", message: "Teleport (Target)", message_ES: "Flash (Objetivo)" }], // 117 -> 130
"s-3027-1000-356-0": [{ type: "text", sub_type: "message", message: "Teleport (Target)", message_ES: "Flash (Objetivo)" }], // 356 -> 147
"s-3027-1000-148-1": [{ type: "text", sub_type: "message", message: "Teleport (Target)", message_ES: "Flash (Objetivo)" }],
"s-3027-1000-351-0": [
{ type: "text", sub_type: "message", message: "Shield!", message_ES: "¡ESCUDO!" },
{ type: "func", func: shield_event }
],
"s-3027-1000-401-0": [
{ type: "text", sub_type: "message", message: "30% AOE!", message_ES: "30% AOE!" },
{ type: "text", sub_type: "message", delay: 1600, message: "Dodge!", message_ES: "¡Iframe!" }
]
};
};