forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
o12n.js
322 lines (320 loc) · 11.6 KB
/
o12n.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
'use strict';
// O12N - Alphascape 4.0
[{
zoneRegex: /^(Alphascape \(V4.0\)|Alphascape V4.0)$/,
timelineFile: 'o12n.txt',
timelineTriggers: [
{
id: 'O12N Knockback',
regex: /Discharger/,
beforeSeconds: 5,
alertText: {
en: 'Knockback',
de: 'Rückstoß',
fr: 'Poussée',
},
},
],
triggers: [
{
id: 'O12N Solar Ray',
regex: / 14:(?:330F|3310):(?:Omega|Omega-M) starts using (?:Unknown_330F|Unknown_3310|Solar Ray) on (\y{Name})/,
regexDe: / 14:(?:330F|3310):(?:Omega|Omega-M) starts using (?:Unknown_330F|Unknown_3310|Sonnenstrahl) on (\y{Name})/,
regexFr: / 14:(?:330F|3310):(?:Oméga|Oméga-M) starts using (?:Unknown_330F|Unknown_3310|Rayon Solaire) on (\y{Name})/,
regexJa: / 14:(?:330F|3310):(?:オメガ|オメガM) starts using (?:Unknown_330F|Unknown_3310|ソーラレイ) on (\y{Name})/,
condition: function(data, matches) {
return data.me == matches[1] || data.role == 'healer';
},
suppressSeconds: 1,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
};
}
if (data.role == 'healer') {
return {
en: 'Tank Busters',
de: 'Tankbuster',
fr: 'Tankbuster',
};
}
},
tts: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'buster',
de: 'basta',
fr: 'tankbuster',
};
}
},
},
{
id: 'O12N Optimized Blade Dance',
regex: / 14:(?:3321|3322):(?:Omega|Omega-M) starts using (?:Unknown_3321|Unknown_3322|Optimized Blade Dance) on (\y{Name})/,
regexDe: / 14:(?:3321|3322):(?:Omega|Omega-M) starts using (?:Unknown_3321|Unknown_3322|Omega-Schwertertanz) on (\y{Name})/,
regexFr: / 14:(?:3321|3322):(?:Oméga|Oméga-M) starts using (?:Unknown_3321|Unknown_3322|Danse De La Lame Oméga) on (\y{Name})/,
regexJa: / 14:(?:3321|3322):(?:オメガ|オメガM) starts using (?:Unknown_3321|Unknown_3322|ブレードダンス・オメガ) on (\y{Name})/,
condition: function(data, matches) {
return data.me == matches[1] || data.role == 'healer';
},
suppressSeconds: 1,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
};
}
if (data.role == 'healer') {
return {
en: 'Tank Busters',
de: 'Tankbuster',
fr: 'Tankbuster',
};
}
},
tts: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'buster',
de: 'basta',
fr: 'tankbuster',
};
}
},
},
{
id: 'O12N Local Resonance',
regex: / 1A:Omega gains the effect of (?:Unknown_67E|Local Resonance) from/,
regexDe: / 1A:Omega gains the effect of (?:Unknown_67E|Resonanzprogramm: Nah) from/,
regexFr: / 1A:Oméga gains the effect of (?:Unknown_67E|Programme De Résonance : Proximité) from/,
regexJa: / 1A:オメガ gains the effect of (?:Unknown_67E|レゾナンスプログラム:ニアー) from/,
condition: function(data) {
return data.role == 'tank';
},
alertText: {
en: 'Move bosses apart',
de: 'Bosse auseinander ziehen',
fr: 'Ecartez les boss',
},
},
{
id: 'O12N Optimized Meteor',
regex: /1B:........:(\y{Name}):....:....:0057:0000:0000:0000:/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Meteor on YOU',
de: 'Meteor auf DIR',
fr: 'Météore sur VOUS',
},
},
{
id: 'O12N Stack Spread Markers',
regex: /1B:........:(\y{Name}):....:....:008B:0000:0000:0000:/,
alertText: function(data, matches) {
if (data.me != matches[1])
return;
return {
en: 'Get Out',
de: 'Raus da',
fr: 'Sortez',
};
},
infoText: function(data, matches) {
if (data.me == matches[1])
return;
return {
en: 'Stack',
de: 'Stacken',
fr: 'Packez vous',
};
},
},
{
id: 'O12N Packet Filter F',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Packet Filter F) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Sicherungssystem F) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Programme Protecteur F) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|ガードプログラムF) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Attack Omega-M',
de: 'Omega-M angreifen',
fr: 'Attaquez Oméga-M',
},
},
{
id: 'O12N Packet Filter M',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Packet Filter M) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Sicherungssystem M) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Programme Protecteur M) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|ガードプログラムM) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Attack Omega-F',
de: 'Omega-W angreifen',
fr: 'Attaquez Oméga-F',
},
},
],
timelineReplace: [
{
'locale': 'de',
'replaceSync': {
'Engage!': 'Start!',
'Omega': 'Omega',
'Omega-F': 'Omega-W',
'Omega-M': 'Omega-M',
'Optical Unit': 'Optikmodul',
'Progress to party combat': 'Initiiere Gruppenkampf',
},
'replaceText': {
'--targetable--': '--anvisierbar--',
'--untargetable--': '--nich anvisierbar--',
'Beyond Strength': 'Schildkombo G',
'Cosmo Memory': 'Kosmospeicher',
'Discharger': 'Entlader',
'Efficient Bladework': 'Effiziente Klingenführung',
'Electric Slide': 'Elektrosturz',
'Enrage': 'Finalangriff',
'Firewall': 'Sicherungssystem',
'Floodlight': 'Flutlicht',
'Ground Zero': 'Explosionszentrum',
'Laser Shower': 'Laserschauer',
'Optical Laser': 'Optischer Laser F',
'Optimized Blade Dance': 'Omega-Schwertertanz',
'Optimized Blizzard III': 'Omega-Eisga',
'Optimized Fire III': 'Omega-Feuga',
'Optimized Meteor': 'Omega-Meteor',
'Optimized Passage of Arms': 'Optimierter Waffengang',
'Optimized Sagittarius Arrow': 'Omega-Choral der Pfeile',
'Program Alpha': 'Alpha-Programm',
'Resonance': 'Resonanz',
'Solar Ray': 'Sonnenstrahl',
'Spotlight': 'Scheinwerfer',
'Subject Simulation F': 'Transformation F',
'Subject Simulation M': 'Transformation M',
'Superliminal Steel': 'Klingenkombo B',
'Suppression': 'Hilfsprogramm F',
'Synthetic Blades': 'Synthetische Klinge',
'Synthetic Shield': 'Synthetischer Schild',
},
'~effectNames': {
'Invincibility': 'Unverwundbar',
'Local Resonance': 'Resonanzprogramm: Nah',
'Omega': 'Omega',
'Packet Filter F': 'Sicherungssystem F',
'Packet Filter M': 'Sicherungssystem M',
},
},
{
'locale': 'fr',
'replaceSync': {
'Engage!': 'À l\'attaque',
'Omega': 'Oméga',
'Omega-F': 'Oméga-F',
'Omega-M': 'Oméga-M',
'Optical Unit': 'Unité optique',
'Progress to party combat': 'Limites du combat en solitaire atteintes',
},
'replaceText': {
'--Reset--': '--Réinitialisation--',
'--sync--': '--Synchronisation--',
'--targetable--': '--Ciblable--',
'--untargetable--': '--Impossible à cibler--',
'Beyond Strength': 'Combo bouclier G',
'Cosmo Memory': 'Cosmomémoire',
'Discharger': 'Déchargeur',
'Efficient Bladework': 'Lame active',
'Electric Slide': 'Glissement Oméga',
'Enrage': 'Enrage',
'Firewall': 'Programme protecteur',
'Floodlight': 'Projecteur',
'Ground Zero': 'Ruée féroce',
'Laser Shower': 'Pluie de lasers',
'Optical Laser': 'Laser optique F',
'Optimized Blade Dance': 'Danse de la lame Oméga',
'Optimized Blizzard III': 'Méga Glace Oméga',
'Optimized Fire III': 'Méga Feu Oméga',
'Optimized Meteor': 'Météore Oméga',
'Optimized Passage of Arms': 'Passe d\'armes Oméga',
'Optimized Sagittarius Arrow': 'Flèche du sagittaire Oméga',
'Program Alpha': 'Programme Alpha',
'Resonance': 'Résonance',
'Solar Ray': 'Rayon solaire',
'Spotlight': 'Phare',
'Subject Simulation F': 'Transformation F',
'Subject Simulation M': 'Simulation de sujet M',
'Superliminal Steel': 'Combo lame B',
'Suppression': 'Programme d\'assistance F',
'Synthetic Blades': 'Lame optionnelle',
'Synthetic Shield': 'Bouclier optionnel',
},
'~effectNames': {
'Invincibility': 'Invulnérable',
'Local Resonance': 'Programme de résonance: proximité',
'Omega': 'Oméga',
'Packet Filter F': 'Programme protecteur F',
'Packet Filter M': 'Programme protecteur M',
},
},
{
'locale': 'ja',
'replaceSync': {
'Engage!': '戦闘開始!',
'Omega': 'オメガ',
'Omega-F': 'オメガF',
'Omega-M': 'オメガM',
'Optical Unit': 'オプチカルユニット',
// FIXME
'Progress to party combat': 'Progress to party combat',
},
'replaceText': {
'Beyond Strength': 'シールドコンボG',
'Cosmo Memory': 'コスモメモリー',
'Discharger': 'ディスチャージャー',
'Efficient Bladework': 'ソードアクション',
'Electric Slide': 'オメガスライド',
'Firewall': 'ガードプログラム',
'Floodlight': 'フラッドライト',
'Ground Zero': '急襲',
'Laser Shower': 'レーザーシャワー',
'Optical Laser': 'オプチカルレーザーF',
'Optimized Blade Dance': 'ブレードダンス・オメガ',
'Optimized Blizzard III': 'ブリザガ・オメガ',
'Optimized Fire III': 'ファイラ・オメガ',
'Optimized Meteor': 'メテオ・オメガ',
'Optimized Passage of Arms': 'パッセージ・オブ・オメガ',
'Optimized Sagittarius Arrow': 'サジタリウスアロー・オメガ',
'Program Alpha': 'プログラム・アルファ',
'Resonance': 'レゾナンス',
'Solar Ray': 'ソーラレイ',
'Spotlight': 'スポットライト',
'Subject Simulation F': 'トランスフォームF',
'Subject Simulation M': 'トランスフォームM',
'Superliminal Steel': 'ブレードコンボB',
'Suppression': '援護プログラムF',
'Synthetic Blades': 'ブレードオプション',
'Synthetic Shield': 'シールドオプション',
},
'~effectNames': {
'Invincibility': '無敵',
'Local Resonance': 'レゾナンスプログラム:ニアー',
'Omega': 'オメガ',
'Packet Filter F': 'ガードプログラムF',
'Packet Filter M': 'ガードプログラムM',
},
},
],
}];