forked from GrafNikola/tera-guide
-
Notifications
You must be signed in to change notification settings - Fork 17
/
3106.js
154 lines (139 loc) · 8.27 KB
/
3106.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
// Killing Grounds
//
// made by HSDN / Kuroine / Minghan / Vampic
module.exports = (dispatch, handlers, guide, lang) => {
const { player } = dispatch.require.library;
let combo_start = false;
let stack = 0;
let stackTimer = null;
function stack_add_event() {
stack++;
dispatch.clearTimeout(stackTimer);
stackTimer = dispatch.setTimeout(() => stack = 0, 86000);
}
function stack_remove_event() {
dispatch.clearTimeout(stackTimer);
stack = 0;
}
dispatch.hook("S_USER_EFFECT", 1, event => {
if (event.circle == 3 && event.operation == 1) {
if (dispatch._mod.game.me.is(event.target)) {
handlers.text({ sub_type: "notification", message: "Snowball on you", message_RU: "Снежок на тебе" });
} else {
const member = player.playersInParty.get(event.target);
if (member) {
handlers.text({
sub_type: "message",
message: `Snowball on ${member.name}`,
message_RU: `Снежок на ${member.name}`
});
} else {
handlers.text({ sub_type: "message", message: "Snowball", message_RU: "Снежок" });
}
}
handlers.marker({ id: event.target, color: "yellow", sub_delay: 1000000 });
} else if (event.circle == 3 && event.operation == 2) {
handlers.marker_remove_all({ delay: 1000 });
}
});
dispatch.hook("S_ABNORMALITY_BEGIN", dispatch._mod.majorPatchVersion >= 107 ? 5 : 4, event => {
if (event.id === 32060024) {
if (dispatch._mod.game.me.is(event.target)) {
handlers.text({ sub_type: "notification", message: "Eye on you", message_RU: "Глазик на тебе" });
} else {
const member = player.playersInParty.get(event.target);
if (member) {
handlers.text({
sub_type: "message",
message: `Eye on ${member.name}`,
message_RU: `Глазик на ${member.name}`
});
} else {
handlers.text({ sub_type: "message", message: "Eye", message_RU: "Глазик" });
}
}
}
});
return {
"nd-3106-1000": [
{ type: "stop_timers" },
{ type: "despawn_all" },
{ type: "marker_remove_all" },
{ type: "func", func: stack_remove_event }
],
"ns-3106-1000": [
{ type: "spawn", func: "marker", args: [false, 3, -700, 100, 60000000, false, ["Giant", "Giant Direction"]] },
{ type: "func", func: stack_remove_event }
],
"die": [{ type: "func", func: stack_remove_event }],
"am-3106-1000-32060007": [{ type: "func", func: stack_add_event }],
"ar-3106-1000-32060007": [{ type: "func", func: stack_remove_event }],
"qb-3106-1000-32061001": [
{ type: "text", sub_type: "message", message: "Close - IN", message_RU: "Ближние - к нему", check_func: () => stack === 0 },
{ type: "text", sub_type: "message", message: "Close - OUT", message_RU: "Ближние - от него", check_func: () => stack !== 0 },
{ type: "text", sub_type: "alert", message: "Soon to give stun...", message_RU: "Скоро давать стан...", delay: 2000 }
],
"qb-3106-1000-32061002": [
{ type: "text", sub_type: "message", message: "Furthest - OUT", message_RU: "Дальние - от него", check_func: () => stack === 0 },
{ type: "text", sub_type: "message", message: "Furthest - IN", message_RU: "Дальние - к нему", check_func: () => stack !== 0 },
{ type: "text", sub_type: "alert", message: "Soon to give stun...", message_RU: "Скоро давать стан...", delay: 2000 }
],
"s-3106-1000-102-0": [
{ type: "func", func: () => combo_start = true },
{ type: "func", func: () => combo_start = false, delay: 1400 }
],
"s-3106-1000-105-0": [{ type: "text", sub_type: "message", message: "Knockback Spin (Kaia)", message_RU: "Оборот (Кайа)", check_func: () => combo_start === true }],
"s-3106-1000-106-0": [
{ type: "text", sub_type: "message", message: "Knockback", message_RU: "Откид" },
{ type: "spawn", func: "circle", args: [true, 553, 0, 50, 10, 350, 0, 3000] }
],
"s-3106-1000-109-0": [
{ type: "text", sub_type: "message", message: "Jump (Knockdown)", message_RU: "Прыжок (опрокид)" },
{ type: "spawn", func: "circle", args: [true, 553, 0, 150, 10, 300, 0, 2500] }
],
"s-3106-1000-111-0": [{ type: "text", sub_type: "message", message: "Knockdown (Dodge)", message_RU: "Опрокид (эвейд)", class_position: "tank" }],
"s-3106-1000-201-0": [{ type: "text", sub_type: "message", message: "Front (Dodge)", message_RU: "Удар вперед (эвейд)", class_position: "tank" }],
"s-3106-1000-202-0": [{ type: "text", sub_type: "message", message: "Front AoE", message_RU: "Переднее АоЕ" }],
"s-3106-1000-203-0": [{ type: "text", sub_type: "message", message: "Front AoE + Wave", message_RU: "Переднее АоЕ + волна" }],
"s-3106-1000-205-0": [{ type: "text", sub_type: "message", message: "Spin", message_RU: "Крутилка" }],
"s-3106-1000-206-0": [{ type: "text", sub_type: "message", message: "Spin (Bleed)", message_RU: "Крутилка (кровоток)" }],
"s-3106-1000-207-0": [{ type: "text", sub_type: "message", message: "Spin (Bleed)", message_RU: "Крутилка (кровоток)" }],
"s-3106-1000-209-0": [
{ type: "text", sub_type: "message", message: "Give Stun! (Knockdown)", message_RU: "Дать стан! (опрокид)" },
{ type: "spawn", func: "circle", args: [true, 553, 0, 50, 10, 400, 0, 1500] }
],
"s-3106-1000-210-0": [
{ type: "text", sub_type: "message", message: "Give Stun! (Knockdown)", message_RU: "Дать стан! (опрокид)" },
{ type: "spawn", func: "circle", args: [true, 553, 0, 50, 10, 400, 0, 1500] }
],
"s-3106-1000-211-0": [{ type: "text", sub_type: "message", message: "Push", message_RU: "Откид" }],
"s-3106-1000-212-0": [{ type: "text", sub_type: "message", message: "Somersault", message_RU: "Кувырок" }],
"s-3106-1000-215-0": [{ type: "text", sub_type: "message", message: "Somersault", message_RU: "Кувырок" }],
"s-3106-1000-507-0": [{ type: "text", sub_type: "message", message: "Leash | Jump (Knockdown)", message_RU: "Притяжка | Прыжок (опрокид)" }],
"s-3106-1000-508-0": [
{ type: "text", sub_type: "message", message: "Donuts (Out > In)", message_RU: "Бублики (от него > к нему)" },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 18, 180, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 12, 360, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 10, 550, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, 8, 860, 1500, 5000] }
],
"s-3106-1000-509-0": [
{ type: "text", sub_type: "message", message: "Donuts (In > Out)", message_RU: "Бублики (к нему > от него)" },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 18, 180, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 12, 360, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 445, 0, 0, 10, 550, 1500, 5000] },
{ type: "spawn", func: "circle", args: [false, 553, 0, 0, 8, 860, 1500, 5000] }
],
"s-3106-1000-512-0": [{ type: "text", sub_type: "message", message: "Turn | Spin", message_RU: "Разворот | Крутилка" }],
//"s-3106-1000-513-0": [{ type: "text", sub_type: "message", message: "Plague/Regress", message_RU: "Чума/регресс" }],
//"s-3106-1000-514-0": [{ type: "text", sub_type: "message", message: "Plague/Regress", message_RU: "Чума/регресс" }],
"s-3106-1000-502-0": [{ type: "text", sub_type: "message", message: "Unleash", message_RU: "Бешенство" }],
"s-3106-1000-518-0": [{ type: "text", sub_type: "message", message: "Unleash", message_RU: "Бешенство" }],
"s-3106-1000-519-0": [{ type: "text", sub_type: "message", message: "Unleash", message_RU: "Бешенство" }],
"s-3106-1000-306-0": [{ type: "text", sub_type: "message", message: "Spin", message_RU: "Крутилка" }],
"s-3106-1000-309-0": [{ type: "text", sub_type: "message", message: "Front", message_RU: "Удар вперед" }],
"s-3106-1000-311-0": [{ type: "text", sub_type: "message", message: "Evade!", message_RU: "Эвейд!", delay: 150 }],
"s-3106-1000-321-0": [{ type: "text", sub_type: "message", message: "AoE", message_RU: "АоЕ" }],
"s-3106-1000-324-0": [{ type: "text", sub_type: "message", message: "AoE", message_RU: "АоЕ" }]
};
};