forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t2.js
68 lines (67 loc) · 1.48 KB
/
t2.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
'use strict';
[{
zoneRegex: /The Binding Coil Of Bahamut - Turn \(2\)/,
triggers: [
{
id: 'T2 Silence',
regex: / 14:4C0:.*starts using High Voltage/,
infoText: {
en: 'Silence',
},
},
{
id: 'T2 Ballast',
regex: / 14:4C5:.*starts using Ballast/,
suppressSeconds: 3,
alertText: {
en: 'Get Behind',
},
},
{
id: 'T2 Rot',
regex: / 1A:(\y{Name}) gains the effect of Allagan Rot/,
alarmText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Rot on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Rot on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T2 Pass Rot',
regex: / 1A:(\y{Name}) gains the effect of Allagan Rot/,
condition: function(data, matches) {
return data.me == matches[1];
},
preRun: function(data) {
data.rot = true;
},
delaySeconds: 11,
alertText: function(data) {
if (!data.rot)
return;
return {
en: 'Pass Rot',
};
},
},
{
id: 'T2 Lost Rot',
regex: / 1E:(\y{Name}) loses the effect of Allagan Rot/,
condition: function(data, matches) {
return data.me == matches[1];
},
run: function(data) {
delete data.rot;
},
},
],
}];