forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t13.js
106 lines (105 loc) · 2.64 KB
/
t13.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
'use strict';
[{
zoneRegex: /The Final Coil Of Bahamut - Turn \(4\)/,
timelineFile: 't13.txt',
timelineTriggers: [
{
id: 'T13 Dive Warning',
regex: /Megaflare Dive/,
beforeSeconds: 5,
infoText: {
en: 'Stack Center for Dives',
},
},
],
triggers: [
{
id: 'T13 Gigaflare Phase Change',
regex: / 14:BB9:Bahamut Prime starts using Gigaflare/,
condition: function(data) {
// Only the first two gigas are phase changes, the rest are in final phase.
return !(data.gigaflare > 1);
},
sound: 'Long',
infoText: function(data, matches) {
if (data.gigaflare) {
return {
en: 'Stack Center for Dives',
};
}
},
run: function(data) {
data.gigaflare = data.gigaflare || 0;
data.gigaflare++;
},
},
{
id: 'T13 Flatten',
regex: / 14:BAE:Bahamut Prime starts using Flatten on (\y{Name})\./,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Flatten on YOU',
};
}
},
infoText: function(data, matches) {
if (matches[1] == data.me) {
return;
if (data.role == 'healer' || data.job == 'BLU') {}
return {
en: 'Flatten on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T13 Megaflare Share',
regex: / 1B:\y{ObjectId}:(\y{Name}):....:....:0027:/,
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: {
en: 'Megaflare Stack',
},
},
{
id: 'T13 Earthshaker',
regex: / 1B:\y{ObjectId}:(\y{Name}):....:....:0028:/,
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: {
en: 'Earthshaker on YOU',
},
},
{
id: 'T13 Tempest Wing',
regex: / 23:\y{ObjectId}:(\y{Name}):\y{ObjectId}:Bahamut Prime:....:....:0004:/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Tempest Tether on YOU',
},
},
{
id: 'T13 Akh Morn',
regex: / 14:BC2:Bahamut Prime starts using Akh Morn on (\y{Name})\./,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Akh Morn on YOU',
};
}
},
infoText: function(data, matches) {
if (matches[1] != data.me) {
return {
en: 'Akh Morn on ' + data.ShortName(matches[1]),
};
}
},
},
],
}];