-
Notifications
You must be signed in to change notification settings - Fork 0
/
raidboss.js
3234 lines (3102 loc) · 118 KB
/
raidboss.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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'use strict';
// Rename this file to `raidboss.js` and edit it to change the raidboss ui.
// This file is Javascript. Anything after "//" on a line is a comment.
// If you edit this file, remember to reload ACT or click the "Reload overlay"
// button on the raidboss CactbotOverlay.
// If there are errors in this file, they will appear in the OverlayPlugin.dll
// log window in ACT.
// If false, no timeline of upcoming events will be displayed during fights.
Options.TimelineEnabled = true;
// If false, triggers and timelines will not show or speak text, nor play
// sounds.
Options.AlertsEnabled = true;
// If false, then visual text alerts are not shown for triggers.
Options.TextAlertsEnabled = true;
// If false, then sound alerts are not played.
Options.SoundAlertsEnabled = true;
// If true, then text-to-speech alerts are read aloud. Text-to-speech takes
// priority over custom sounds and text noises. If a trigger does not have
// a tts entry then it will fall back on text and sound (if turned on).
Options.SpokenAlertsEnabled = true;
// Will override the singular TTS alerts if a group alert is set for a specific trigger
// Change phrasing to make sense in a group setting
Options.GroupSpokenAlertsEnabled = false;
// Show timer bars for events that will happen in this many seconds or less.
Options.ShowTimerBarsAtSeconds = 30;
// Once a timer bar reaches 0, keep it around this long after.
Options.KeepExpiredTimerBarsForSeconds = 0.7;
// Change the bar color to highlight it is coming up when this many seconds
// are left on it.
Options.BarExpiresSoonSeconds = 8;
// Number of bars to show in the space given to the UI by css.
Options.MaxNumberOfTimerBars = 6;
// Path to sound played for info-priority text popups, or when "Info" is
// specified as the sound name.
Options.InfoSound = '../../resources/sounds/freesound/percussion_hit.ogg';
// Path to sound played for alert-priority text popups, or when "Alert" is
// specified as the sound name.
Options.AlertSound = '../../resources/sounds/BigWigs/Alert.ogg';
// Path to sound played for alarm-priority text popups, or when "Alarm" is
// specified as the sound name.
Options.AlarmSound = '../../resources/sounds/BigWigs/Alarm.ogg';
// Path to sound played when "Long" is specified as the sound name.
Options.LongSound = '../../resources/sounds/BigWigs/Long.ogg';
// Volume between 0 and 1 to play the InfoSound at.
Options.InfoSoundVolume = 1;
// Volume between 0 and 1 to play the AlertSound at.
Options.AlertSoundVolume = 1;
// Volume between 0 and 1 to play the AlarmSound at.
Options.AlarmSoundVolume = 1;
// Volume between 0 and 1 to play the LongSound at.
Options.LongSoundVolume = 1;
// A set of nicknames to use for players, when trying to shorten names.
Options.PlayerNicks = {
'Darkest Edgelord': 'Mary',
'Captain Jimmy': 'Jimmy',
'Pipira Pira': '🐟',
};
// A set of triggers to be ignored. The key is the 'id' of the trigger, and
// the value should be true if the trigger is to be ignored, whereas false
// will have no effect. The trigger ids can be found in the trigger files for
// each fight in the files inside of this directory:
// https://github.com/quisquous/cactbot/tree/master/ui/raidboss/data/triggers
Options.DisabledTriggers = {
// Disable the /psych trigger from `test.js` in Summerford Farms.
'Test Psych': true,
// Disable the "eye lasers" trigger from `drowned_city_of_skalla.js`.
'Hrodric Words': true,
// Useless!
'O12S Hello World Stack' : true,
'E1S Delta Attack 1' : true,
'E1S Delta Attack 2' : true,
'E2S Doomvoid Cleaver' : true,
'E2S Cycle of Retribution' : true,
'E2S Cycle of Chaos' : true,
'E3S Front Left Temporary Current' : true,
'E3S Front Right Temporary Current' : true,
'E3S Front Left Temporary Current 2' : true,
'E3S Front Right Temporary Current 2' : true,
'E3S Refreshed' : true,
'E4S Massive Landslide - Front' : true,
'E4S Massive Landslide - Sides' : true,
'E4S Bury Directions' : true,
'RubyEx Ruby Claw' : true,
'RubyEx Change of Heart' : true,
'RubyEx Pall of Rage' : true,
'RubyEx Pall of Grief' : true,
'E6S Strike Spark' : true,
'E5S Stepped Leader Spread' : true,
'E8S Hallowed Wings Knockback' : true,
'E8S Hallowed Wings Right' : true,
'E8S Hallowed Wings Left' : true,
'E8S Forgetful Tank Second Frost' : true,
'E8S Holy Divided' : true,
'WOLEx Summon Wyrm': true,
'WOLEx Spectral Black Mage / White Mage': true,
'WOLEx Summoner / Warrior': true,
'WOLEx Spectral Bard / Dark Knight': true,
'WOLEx Spectral Ninja': true,
'E9S Anti-Air Phaser Unlimited List': true,
'E9S Wide-Angle Phaser Unlimited List': true
};
// An array of user-defined triggers, in the format defined in the readme:
// https://github.com/quisquous/cactbot/tree/master/ui/raidboss/data/triggers
//Options.Triggers = [
Options.Triggers.push(
// (1) Simple example trigger: show text on screen when you die.
{
// Match every zone.
zoneRegex: /.*/,
triggers: [
{
regex: /:You are defeated by/,
alarmText: 'YOU DIED',
},
],
},
// You can add other triggers for other zones too. Here's more examples:
//
// (2) Maybe you want a silly kissy noise whenever you a blow a kiss in
// a housing zone!
{
zoneRegex: /^(Mist|The Goblet|The Lavender Beds|Shirogane)$/,
triggers: [
{
regex: /You blow a kiss/,
sound: '../../resources/sounds/PowerAuras/bigkiss.ogg',
volume: 0.5,
},
],
},
// (3) Maybe you want to modify some existing timeline and triggers:
//
// Add some extra triggers to the test timeline. To use it, see:
// https://github.com/quisquous/cactbot/blob/master/ui/raidboss/data/timelines/test.txt
{
// The zone this should apply to.
// This should match the zoneRegex in the triggers file.
zoneRegex: /^Middle La Noscea$/,
// Add some additional timeline events to the test timeline.
timeline: `
# Note: Hash marks are comments inside of a timeline file.
# This format is the same as ACT timeline.
# Add a new personal event to the test timeline.
5.2 "(Remember To Use Feint!)"
# Remind yourself to shield the tank 5 seconds before final sting.
infotext "Final Sting" before 5 "shield the tank"
# Events you don't like, you can hide. This gets rid of "Long Castbar".
hideall "Long Castbar"
`,
// Add some additional triggers that will go off in Summerford Farms.
triggers: [
// If you provoke the striking dummy (or anything), this will trigger.
{
id: 'User Example Provoke',
regex: /You use Provoke/,
infoText: 'Provoke!',
tts: 'provoke',
},
// A more complicated regen trigger.
{
id: 'User Example Regen',
// This will match log lines from ACT that look like this:
// "Nacho Queen gains the effect of Regen from Taco Cat for 21.00 Seconds."
regex: /gains the effect of Regen from \y{Name} for (\y{Float}) Seconds/,
delaySeconds: function(data, matches) {
// Wait the amount of seconds regen lasts before reminding you to
// reapply it. This is not smart enough to figure out if you
// cast it twice, and is left as an exercise for the reader to
// figure out how to do so via storing variables on `data`.
return data.ParseLocaleFloat(matches[1]);
},
alertText: 'Regen Reminder',
tts: 'regen',
},
],
},
{
zoneRegex: /.*/,
triggers: [
{
id: 'Test Laugh Everywhere',
regex: /:You burst out laughing at the striking dummy/,
regexDe: /:Du lachst herzlich mit der Trainingspuppe/,
regexFr: /:Vous vous esclaffez devant le mannequin d'entraînement/,
regexCn: /:.*看着木人高声大笑/,
suppressSeconds: 5,
alarmText: {
en: 'hahahahaha',
de: 'hahahahaha',
fr: 'Mouahahaha',
cn: '2333333333',
},
tts: {
en: 'hahahahaha',
de: 'hahahahaha',
fr: 'Haha mort de rire',
cn: '哈哈哈哈哈哈',
},
groupTTS: {
en: 'group laugh',
de: 'Gruppenlache',
fr: 'group motivation',
cn: '组哈哈',
},
},
{
id: 'General Reprisal',
netRegex: NetRegexes.ability({ id: '1D6F' }),
condition: function(data, matches) {
//if (matches.source !== data.me && !data.party.inAlliance(matches.source))
// return false;
return data.role == 'tank';
},
infoText: function(data, matches) {
let name = data.ShortName(matches.source);
return {
en: 'Reprisal: ' + name,
};
},
},
{
// Example Log:
// [22:53:41.135] 15:102D0725:Solyln Fay:8D2:Trick Attack:4000B1D9:Shiva:1E710203:6EE90000:5050E:27E0000:0:0:0:0:0:0:0:0:0:0:0:0:52259022:72360160:10000:10000:0:1000:99.99231:99.99231:0:3.095573:115384:115384:10000:10000:0:1000:102.6915:104.0818:-0.004453726:-2.428089:00006070
// [22:53:41.000] 00:102b:Solyln Fay uses Trick Attack.
id: 'General Trick Attack',
netRegex: NetRegexes.ability({ id: '8D2' }),
infoText: function(data, matches) {
let name = data.ShortName(matches.source);
return {
en: 'Trick Attack: ' + name,
};
},
},
]
},
{
zoneRegex: /^Alphascape V4.0 \(Savage\)$/,
triggers: [
{
id: 'O12S Archive All Blue Arrow',
regex: / 1B:........:Rear Power Unit:....:....:009D:0000:0000:0000:/,
alertText: {
en: 'Right',
de: 'Hinten Links',
fr: 'Arrière gauche',
},
},
{
id: 'O12S Archive All Red Arrow',
regex: / 1B:........:Rear Power Unit:....:....:009C:0000:0000:0000:/,
alertText: {
en: 'Left',
de: 'Hinten Rechts',
fr: 'Arrière droite',
},
},
{
id: 'O12S Latent Defect',
regex: / 1A:\y{ObjectId}:(\y{Name}) gains the effect of (?:Unknown_686|Latent Defect) from/,
regexDe: / 1A:\y{ObjectId}:(\y{Name}) gains the effect of (?:Unknown_686|Latenter Defekt) from/,
regexFr: / 1A:\y{ObjectId}:(\y{Name}) gains the effect of (?:Unknown_686|Bogue latent|Bogue Latent) from/,
regexJa: / 1A:\y{ObjectId}:(\y{Name}) gains the effect of (?:Unknown_686|レイテントバグ) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: {
en: 'Latent Defect',
de: 'Blauer Marker',
fr: 'Marqueur bleu',
ja: 'レイテントついた',
},
},
],
},
{
zoneRegex: /(^Eden's Gate: Resurrection \(Savage\)$|Unknown Zone \(355\))/,
triggers: [
{
id: 'E1S Delta Attack 1 v2',
regex: / 14:44F4:Eden Prime starts using (?:Delta Attack|)/,
regexDe: / 14:44F4:Eden Prime starts using (?:Delta-Attacke|)/,
regexFr: / 14:44F4:Eden Prime starts using (?:Attaque Delta|)/,
regexJa: / 14:44F4:Eden Prime starts using (?:デルタアタック|)/,
alertText: {
en: 'Intercardinal Spread',
},
},
{
id: 'E1S Delta Attack 2 v2',
regex: / 14:44F8:Eden Prime starts using (?:Delta Attack|)/,
regexDe: / 14:44F8:Eden Prime starts using (?:Delta-Attacke|)/,
regexFr: / 14:44F8:Eden Prime starts using (?:Attaque Delta|)/,
regexJa: / 14:44F8:Eden Prime starts using (?:デルタアタック|)/,
alertText: function(data) {
if (data.role == 'tank') {
return {
en: 'Get In, Cooldown, Spread',
};
}
return {
en: 'In, Stack Behind',
};
},
},
],
},
{
zoneRegex: /(^Eden's Gate: Descent \(Savage\)$|Unknown Zone \(356\))/,
timeline: `
136.0 "Phase 2: Hand"
205.0 "Phase 3: Single Flare, Puddle and Prey"
275.0 "Phase 4: Equilibrium and Clock"
344.0 "Phase 5: Double Flares"
378.0 "Spread for Flares"
385.0 "Stack"
424.0 "Flares + Eyes"
443.0 "Equilibrium"
447.0 "Punishing Ray"
453.0 "Clock Positions"
# InfoTexts
infotext "Phase 2: Hand"
infotext "Phase 3: Single Flare, Puddle and Prey"
infotext "Phase 4: Equilibrium and Clock"
infotext "Phase 5: Double Flares"
infotext "Spread for Flares"
infotext "Stack"
infotext "Flares + Eyes"
infotext "Equilibrium"
infotext "Punishing Ray"
infotext "Clock Positions"
`,
triggers: [
{
id: 'E2S Doomvoid Cleaver v2',
regex: / 14:3E63:Voidwalker starts using (?:Doomvoid Cleaver|)/,
regexDe: / 14:3E63:Nichtswandler starts using (?:Nichtsmarter-Schlachter|)/,
regexFr: / 14:3E63:Marcheuse Du Néant starts using (?:Couperet Du Néant Ravageur|)/,
regexJa: / 14:3E63:ヴォイドウォーカー starts using (?:ドゥームヴォイド・クリーバー|)/,
alertText: {
en: 'Clock Positions',
fr: 'Position',
ja: '散開',
},
},
{
id: 'E2S Cycle of Retribution v2',
regex: / 14:4659:Voidwalker starts using (?:Cycle Of Retribution|)/,
regexFr: / 14:4659:Marcheuse Du Néant starts using (?:Multi-taillade Vengeresse|)/,
regexJa: / 14:4659:ヴォイドウォーカー starts using (?:復讐の連続剣|)/,
alertText: {
en: 'In, Clock, Sides',
fr: 'Intérieur, Position, Côtés',
ja: '中 => 散開 => 横',
},
},
{
id: 'E2S Cycle of Chaos v2',
regex: / 14:40B9:Voidwalker starts using (?:Cycle Of Chaos|)/,
regexFr: / 14:40B9:Marcheuse Du Néant starts using (?:Multi-taillade Chaotique|)/,
regexJa: / 14:40B9:ヴォイドウォーカー starts using (?:混沌の連続剣|)/,
alertText: {
en: 'Sides, In, Clock',
fr: 'Côtés, Intérieur, Position',
ja: '横 => 中 => 散開',
},
},
],
},
{
zoneRegex: /^Eden's Gate: Inundation \(Savage\)$/,
timeline: `
hideall "Hidden - Disable Left Right Mode"
hideall "Hidden - Enable Left Right Mode"
2.0 "Hidden - Disable Left Right Mode"
14.0 "Hidden - Disable Left Right Mode"
25.0 "Hidden - Disable Left Right Mode"
133.0 "Hidden - Enable Left Right Mode"
142.0 "Hidden - Enable Left Right Mode"
147.0 "Hidden - Enable Left Right Mode"
188.0 "Hidden - Disable Left Right Mode"
198.0 "Hidden - Disable Left Right Mode"
212.0 "Hidden - Disable Left Right Mode"
317.0 "Buster Soon!"
537.0 "Hidden - Enable Left Right Mode"
542.0 "Hidden - Enable Left Right Mode"
545.0 "Hidden - Enable Left Right Mode"
567.0 "Hidden - Disable Left Right Mode"
578.0 "Hidden - Disable Left Right Mode"
588.0 "Hidden - Disable Left Right Mode"
`,
timelineTriggers: [
{
id: 'E3S Buster Soon',
regex: /Buster Soon!/,
alertText: {
en: 'Buster Soon',
}
},
{
id: 'E3S Hidden - Disable Left Right Mode',
regex: /Hidden - Disable Left Right Mode/,
run: function(data) {
data.temporaryCurrentLeftRightMode = false;
}
},
{
id: 'E3S Hidden - Enable Left Right Mode',
regex: /Hidden - Enable Left Right Mode/,
run: function(data) {
data.temporaryCurrentLeftRightMode = true;
}
},
],
triggers: [
{
id: 'E3S Refreshed v2',
regex: / 14:400F:Leviathan starts using Refreshing Shower/,
regexCn: / 14:400F:利维亚桑 starts using Refreshing Shower/,
regexDe: / 14:400F:Leviathan starts using Erwachen der Tiefen/,
regexFr: / 14:400F:Léviathan starts using Éveil De L'[eE]au/,
regexJa: / 14:400F:リヴァイアサン starts using 水の覚醒/,
run: function(data) {
data.refreshed = true;
// "E3S Hidden - Disable Left Right Mode" doesn't seem to work. Use refreshing shower as another way to hopefully activate it
data.temporaryCurrentLeftRightMode = false;
},
},
{
id: 'E3S Black Smokers',
regex: / 00:282B:Leviathan begins casting Black Smokers/,
run: function(data) {
// Just to really make sure "E3S Hidden - Enable Left Right Mode" activates
data.temporaryCurrentLeftRightMode = true;
},
},
{
id: 'E3S Front Left Temporary Current v2',
regex: / 14:3FEB:Leviathan starts using Temporary Current/,
regexCn: / 14:3FEB:利维亚桑 starts using Temporary Current/,
regexDe: / 14:3FEB:Leviathan starts using Unstete Gezeiten/,
regexFr: / 14:3FEB:Léviathan starts using Courant Évanescent/,
regexJa: / 14:3FEB:リヴァイアサン starts using テンポラリーカレント/,
alertText: function(data) {
if (data.temporaryCurrentLeftRightMode) {
return {
en: 'Left Front / Right Back',
};
}
return {
en: 'Front left / Back right',
de: 'Vorne Links / Hinten Rechts',
fr: 'Avant gauche / Arrière droite',
ja: '左前 / 右後ろ',
};
},
},
{
id: 'E3S Front Right Temporary Current v2',
regex: / 14:3FEA:Leviathan starts using Temporary Current/,
regexCn: / 14:3FEA:利维亚桑 starts using Temporary Current/,
regexDe: / 14:3FEA:Leviathan starts using Unstete Gezeiten/,
regexFr: / 14:3FEA:Léviathan starts using Courant Évanescent/,
regexJa: / 14:3FEA:リヴァイアサン starts using テンポラリーカレント/,
alertText: function(data) {
if (data.temporaryCurrentLeftRightMode) {
return {
en: 'Left Back / Right Front',
};
}
return {
en: 'Front right / Back left',
de: 'Vorne Rechts / Hinten Links',
fr: 'Avant droit / Arrière gauche',
ja: '右前 / 左後ろ',
};
},
},
{
// Note: there are different abilities for the followup
// temporary current, but there's only a 1 second cast time.
// The original has a 6 second cast time and 4 seconds before
// the next one.
id: 'E3S Front Left Temporary Current 2 v2',
regex: / 14:3FEA:Leviathan starts using Temporary Current/,
regexCn: / 14:3FEA:利维亚桑 starts using Temporary Current/,
regexDe: / 14:3FEA:Leviathan starts using Unstete Gezeiten/,
regexFr: / 14:3FEA:Léviathan starts using Courant Évanescent/,
regexJa: / 14:3FEA:リヴァイアサン starts using テンポラリーカレント/,
condition: function(data) {
return data.refreshed;
},
delaySeconds: 6.2,
alertText: function(data) {
if (data.temporaryCurrentLeftRightMode) {
return {
en: 'Left Front / Right Back',
};
}
return {
en: 'Front left / Back right',
de: 'Vorne Links / Hinten Rechts',
fr: 'Avant gauche / Arrière droite',
ja: '左前 / 右後ろ',
};
},
},
{
id: 'E3S Front Right Temporary Current 2 v2',
regex: / 14:3FEB:Leviathan starts using Temporary Current/,
regexCn: / 14:3FEB:利维亚桑 starts using Temporary Current/,
regexDe: / 14:3FEB:Leviathan starts using Unstete Gezeiten/,
regexFr: / 14:3FEB:Léviathan starts using Courant Évanescent/,
regexJa: / 14:3FEB:リヴァイアサン starts using テンポラリーカレント/,
condition: function(data) {
return data.refreshed;
},
delaySeconds: 6.2,
alertText: function(data) {
if (data.temporaryCurrentLeftRightMode) {
return {
en: 'Left Back / Right Front',
};
}
return {
en: 'Front right / Back left',
de: 'Vorne Rechts / Hinten Links',
fr: 'Avant droit / Arrière gauche',
ja: '右前 / 左後ろ',
};
},
},
]
},
{
zoneRegex: /^Eden's Gate: Sepulture \(Savage\)$/,
triggers: [
{
// Evil Earth Callouts - Part 1
id: 'E4S - Evil Earth Detection',
regex: /.*15:.*:Titan:410C:Evil Earth:E0000000.*44:44:0:0:0:1000:(\d*:\d*):0/,
// No idea why, but this function is always triggered 8 times all with the same timestamp and text...
// [1/12/2019 10:12:45 am] Info: Replay: BrowserConsole: [23:03:05.691] 15:4000F63A:Titan:410C:Evil Earth:E0000000::0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:::::::::::44:44:0:0:0:1000:115:115:0 (Source: , Line: 545)
alertText: function(data, matches) {
//console.log(matches[0]);
data.evilEarth = true;
switch(matches[1]) {
case "95:105": // Verified - 1 Dec 2019, 21:23, 21:45, 21:52
case "105:95": // Verified - 1 Dec 2019, 21:23, 21:45, 21:52
case "85:115": // Verified - 1 Dec 2019, 21:42
case "115:85": // Verified - 1 Dec 2019, 21:42
data.evilEarthSafeSpot = 'Alpha';
break;
case "95:95": // Verified - 1 Dec 2019, 21:56
case "105:105": // Verified - 1 Dec 2019, 21:56
case "85:85": // Verified - 1 Dec 2019, 21:14
case "115:115": // Verified - 1 Dec 2019, 21:14
data.evilEarthSafeSpot = 'Bravo';
break;
default:
data.evilEarthSafeSpot = 'UNKNOWN';
// console.log('E4S - Evil Earth Detection - Unknown location ' + matches[0])
break;
}
return {
en: 'Go to ' + data.evilEarthSafeSpot,
};
}
},
{
// Evil Earth Callouts - Part 2
id: 'E4S - Aftershock',
regex: /.* 15:.*:Titan:41B5:Aftershock:E0000000.*44:44:0:0:0:1000:(\d*:\d*):0/,
alertText: function(data, matches) {
//console.log(matches[0]);
if(data.evilEarth == true) {
if((data.evilEarthSafeSpot == 'Alpha' && matches[1] == '105:105') || (data.evilEarthSafeSpot == 'Bravo' && matches[1] == '95:105')) {
data.evilEarth == false
return {
en: 'MOVE!',
};
}
}
},
},
{
id: 'E4S Massive Landslide - Front v2',
regex: / 15:\y{ObjectId}:Titan:40E6:Earthen Gauntlets:/,
regexCn: / 15:\y{ObjectId}:泰坦:40E6:Earthen Gauntlets:/,
regexDe: / 15:\y{ObjectId}:Titan:40E6:Gaia-Armberge:/,
regexFr: / 15:\y{ObjectId}:Titan:40E6:Poing Tellurique:/,
regexJa: / 15:\y{ObjectId}:タイタン:40E6:大地の手甲:/,
alertText: {
en: 'Gauntlets: Front',
},
},
{
id: 'E4S Massive Landslide - Sides v2',
regex: / 15:\y{ObjectId}:Titan:4117:Massive Landslide:/,
regexCn: / 15:\y{ObjectId}:泰坦:4117:Massive Landslide:/,
regexDe: / 15:\y{ObjectId}:Titan:4117:Gigantischer Bergsturz:/,
regexFr: / 15:\y{ObjectId}:Titan:4117:Glissement Apocalyptique:/,
regexJa: / 15:\y{ObjectId}:タイタン:4117:メガ・ランドスライド:/,
infoText: {
en: 'Landslide: Sides',
},
},
{
id: 'E4S Tectonic Uplift',
regex: Regexes.ability({ id: '4122', source: 'Titan Maximum', capture: false }),
infoText: {
en: 'Orange Two, Yellow 3',
},
},
// Fixed in Cactbot 0.15.2
// // Unfortunately, "E4S Bury Directions" is sometimes not triggering.
// // Hoping that this is the issue - reverting cactbot changes for earthen armor detection to v0.14.1's
// {
// id: 'E4S Earthen Armor v2',
// regex: / 15:\y{ObjectId}:Titan:40E[79]:Earthen Armor:/,
// regexCn: / 15:\y{ObjectId}:泰坦:40E[79]:大地之铠:/,
// regexDe: / 15:\y{ObjectId}:Titan:40E[79]:Gaia-Panzer:/,
// regexFr: / 15:\y{ObjectId}:Titan:40E[79]:Armure Tellurique:/,
// regexJa: / 15:\y{ObjectId}:タイタン:40E[79]:大地の鎧:/,
// regexKo: / 15:\y{ObjectId}:타이탄:40E[79]:대지의 갑옷:/,
// run: function(data) {
// data.phase = 'armor';
// delete data.printedBury;
// },
// },
{
// Bomb positions are all x = (86 west, 100 mid, 114 east), y = (86, 100, 114).
// Note: as these may hit multiple people, there may be multiple lines for the same bomb.
id: 'E4S Bury Directions v2',
regex: Regexes.abilityFull({ id: '4142', source: 'Bomb Boulder' }),
regexDe: Regexes.abilityFull({ id: '4142', source: 'Bomber-Brocken' }),
regexFr: Regexes.abilityFull({ id: '4142', source: 'Bombo Rocher' }),
regexJa: Regexes.abilityFull({ id: '4142', source: 'ボムボルダー' }),
regexCn: Regexes.abilityFull({ id: '4142', source: '爆破岩石' }),
regexKo: Regexes.abilityFull({ id: '4142', source: '바위폭탄' }),
condition: function(data) {
return !data.printedBury;
},
durationSeconds: 7,
alertText: function(data, matches) {
let x = matches.x;
let y = matches.y;
if (data.phase == 'armor') {
// Three line bombs (middle, e/w, w/e), with seismic wave.
if (x < 95) {
data.printedBury = true;
return {
en: 'Bravo TWO Side',
de: 'Im Osten vestecken',
fr: 'Cachez-vous derrière à l\'est',
cn: '右边躲避',
ko: '동쪽으로',
};
} else if (x > 105) {
data.printedBury = true;
return {
en: 'Alpha One Side',
de: 'Im Westen vestecken',
fr: 'Cachez-vous derrière à l\'ouest',
cn: '左边躲避',
ko: '서쪽으로',
};
}
} else if (data.phase == 'landslide') {
// Landslide cardinals/corners + middle, followed by remaining 4.
let xMiddle = x < 105 && x > 95;
let yMiddle = y < 105 && y > 95;
// Ignore middle point, which may come first.
if (xMiddle && yMiddle)
return;
data.printedBury = true;
if (!xMiddle && !yMiddle) {
// Corners dropped first. Cardinals safe.
return {
en: 'Go Cardinals First',
de: 'Zuerst zu den Seiten gehen',
fr: 'Allez aux cardinaux en premier',
ja: '十字',
cn: '十字',
ko: '먼저 측면으로 이동',
};
}
// Cardinals dropped first. Corners safe.
return {
en: 'Go Corners First',
de: 'Zuerst in die Ecken gehen',
fr: 'Allez dans les coins en premier',
cn: '先去角落',
ko: '먼저 코너로 이동',
};
}
},
},
{
id: 'E4S - Crumbling Down Boulders - Part 1',
regex: /.*15:.*:Titan:4110:Seismic Wave/,
alertText: function(data, matches) {
//console.log(matches[0]);
data.seismicWave = true;
return {
en: 'MOVE!',
};
}
},
{
id: 'E4S - Crumbling Down Boulders - Part 2',
regex: /.*15:.*:Bomb Boulder:410A:Explosion:E0000000/,
alertText: function(data, matches) {
//console.log(matches[0]);
data.seismicWave = false;
return {
en: 'MOVE!',
};
}
},
],
},
{
// Ruby EX
zoneRegex: /^Cinder Drift \(Extreme\)$/,
triggers: [
{
id: 'RubyEx Check Chariot or Dynamo',
regex: /Raven's image (readies Iron Chariot|begins casting Lunar Dynamo)/,
suppressSeconds: 1,
alertText: {
en: 'Check Chariot or Dynamo',
},
},
{
id: 'RubyEx Change of Heart v2',
regex: Regexes.startsUsing({ source: 'The Ruby Weapon', id: '4AFC', capture: false }),
regexDe: Regexes.startsUsing({ source: 'Rubin-Waffe', id: '4AFC', capture: false }),
regexFr: Regexes.startsUsing({ source: 'Arme Rubis', id: '4AFC', capture: false }),
regexJa: Regexes.startsUsing({ source: 'ルビーウェポン', id: '4AFC', capture: false }),
alertText: {
en: 'Prepare for Tank Swap',
},
},
{
id: 'RubyEx Ruby Claw v2',
regex: Regexes.startsUsing({ source: 'Raven\'s Image', id: '4AFF' }),
regexDe: Regexes.startsUsing({ source: 'Naels Trugbild', id: '4AFF' }),
regexFr: Regexes.startsUsing({ source: 'Spectre De Nael', id: '4AFF' }),
regexJa: Regexes.startsUsing({ source: 'ネールの幻影', id: '4AFF' }),
suppressSeconds: 1,
response: Responses.tankBuster(),
},
{
id: 'RubyEx Pall of Rage v2',
regex: Regexes.gainsEffect({ effect: 'Pall of Rage' }),
regexDe: Regexes.gainsEffect({ effect: 'Zorn' }),
regexFr: Regexes.gainsEffect({ effect: 'Fureur' }),
regexJa: Regexes.gainsEffect({ effect: '憤怒' }),
preRun: function(data, matches) {
data.colors = data.colors || [];
data.colors[matches.target] = 'blue';
},
infoText: function(data, matches) {
if (data.me == matches.target) {
return {
en: 'Right. Attack Blue.',
de: 'Greife Blau an (Osten)',
fr: 'Attaquez le bleu (Est)',
ko: '파란색 공격 (오른쪽)',
};
}
},
},
{
id: 'RubyEx Pall of Grief v2',
regex: Regexes.gainsEffect({ effect: 'Pall of Grief' }),
regexDe: Regexes.gainsEffect({ effect: 'Trauer' }),
regexFr: Regexes.gainsEffect({ effect: 'Angoisse' }),
regexJa: Regexes.gainsEffect({ effect: '悲嘆' }),
preRun: function(data, matches) {
data.colors = data.colors || [];
data.colors[matches.target] = 'red';
},
infoText: function(data, matches) {
if (data.me == matches.target) {
return {
en: 'Left. Attack Red.',
de: 'Greife Rot an (Westen)',
fr: 'Attaquez le rouge (Ouest)',
ko: '빨간색 공격 (왼쪽)',
};
}
},
},
]
},
{
// E5S
zoneRegex: /^Eden's Verse: Fulmination \(Savage\)$/,
timeline: `
1.0 "NEXT: Rods->Add->Buster"
37.0 "Off Tank 3 Orbs"
39.0 "Everyone 1 Orb"
74.0 "NEXT: Stormclouds->Knockback->Buster"
75.0 "Tanks and DPS 1 Orb"
147.0 "NEXT: Buffed Aoe->Add->Buster->Stepped Leader"
149.0 "Everyone 1 Orb"
180.0 "Off Tank 3 Orbs"
200.0 "Prepare for Stepped Leader"
229.0 "Fury's 14"
231.0 "Everyone 1 Orb"
275.0 "NEXT: Donut Stepped Leader->Chain Lightning->Buster"
280.0 "Stack for Donut Stepped Leader"
318.0 "NEXT: Add, Buffed Aoe, Stepped Leader, Buster"
319.0 "Off Tank 3 Orbs"
360.0 "Prepare for Stepped Leader"
338.0 "Everyone 1 Orb"
385.0 "NEXT: Fury's 14 with charge!"
389.0 "Everyone 1 Orb"
430.0 "NEXT: Stormclouds->Knockback->Chain Lightning->Buster"
435.0 "Tanks and DPS 1 Orb"
# 480.0 "Everyone 1 Orb"
530.0 "NEXT: Stepped Leader->Buffed AoE -> Buffed AoE"
532.0 "Prepare for Stepped Leader"
547.0 "Everyone 1 Orb"
576.0 "Everyone 1 Orb"
`,
timelineTriggers: [
{
id: 'E5S Off Tank 3 Orbs',
regex: /Off Tank 3 Orbs/,
alertText: {
en: 'Off Tank 3 Orbs',
}
},
{
id: 'E5S Everyone 1 Orb',
regex: /Everyone 1 Orb/,
alertText: {
en: 'Everyone 1 Orb',
}
},
{
id: 'E5S Tanks and DPS 1 Orb',
regex: /Tanks and DPS 1 Orb/,
alertText: {
en: 'Tanks and DPS 1 Orb',
}
},
{
id: 'E5S Prepare for Stepped Leader',
regex: /Prepare for Stepped Leader/,
alertText: {
en: 'Prepare for Stepped Leader',
}
},
{
id: 'E5S Stack for Donut Stepped Leader',
regex: /Stack for Donut Stepped Leader/,
alertText: {
en: 'Stack for Donut Stepped Leader',
}
}
],
triggers: [
{
// Cactbot v0.16.12 made this too slow. Reverted to pre-v0.16.12 trigger.
id: 'E5S Stepped Leader Spread v2',
regex: Regexes.startsUsing({ id: '4BC6', source: 'Ramuh', capture: false }),
regexDe: Regexes.startsUsing({ id: '4BC6', source: 'Ramuh', capture: false }),
regexFr: Regexes.startsUsing({ id: '4BC6', source: 'Ramuh', capture: false }),
regexJa: Regexes.startsUsing({ id: '4BC6', source: 'ラムウ', capture: false }),
regexKo: Regexes.startsUsing({ id: '4BC6', source: '라무', capture: false }),
regexCn: Regexes.startsUsing({ id: '4BC6', source: '拉姆', capture: false }),
condition: function(data) {
return !data.furysBoltActive;
},
delaySeconds: 3.0,
response: Responses.spread('alarm'),
}
]
},
{
// E6S
zoneRegex: /^Eden's Verse: Furor \(Savage\)$/,
timeline: `
70.0 "Arms Length"
149.0 "Center Boss"
165.0 "Tanks Healers Tethers"
186.0 "Bait AoE in middle"
205.0 "DPS Tethers"
284.0 "Bait AoE in middle"
339.0 "Tanks Healers Tethers"
357.0 "DPS Tethers"
366.0 "Center Boss"
396.0 "Bait AoE in middle"
406.0 "Buster Combo And Center Boss"
442.0 "Tank Healer Delta, DPS Bravo"
490.3 "Bait Aoe, then goto intercardinals"
521.0 "Tank Healer tethers, then intercardinals"
536.0 "DPS tethers, then air bump, then intercardinals"
`,
timelineTriggers: [
{
id: 'E6S Arms Length',
regex: /Arms Length/,
alertText: {
en: 'Arms Length',
}
},
{
id: 'E6S Center Boss',
regex: /Center Boss/,
alertText: {
en: 'Center Boss',
}
},
{
id: 'E6S Tanks Healers Tethers',
regex: /Tanks Healers Tethers/,
alertText: {
en: 'Tanks Healers Tethers',
}
},
{
id: 'E6S Bait AoE in middle',
regex: /Bait AoE in middle/,
alertText: {
en: 'Bait AoE in middle',
}
},
{
id: 'E6S DPS Tethers',
regex: /DPS Tethers/,
alertText: {
en: 'DPS Tethers',
}
},
{
id: 'E6S Buster Combo + Center Boss',
regex: /Buster Combo And Center Boss/,
alertText: {
en: 'Buster Combo And Center Boss',