forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t8.js
102 lines (101 loc) · 2.63 KB
/
t8.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
'use strict';
[{
zoneRegex: /The Second Coil Of Bahamut - Turn \(3\)/,
timelineFile: 't8.txt',
triggers: [
{
id: 'T8 Stack',
regex: / 1B:\y{ObjectId}:(\y{Name}):....:....:0011:/,
infoText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Laser Stack on YOU',
};
}
return {
en: 'Stack on ' + data.ShortName(matches[1]),
};
},
},
{
id: 'T8 Landmine Start',
regex: / 00:0839:Landmines have been scattered/,
alertText: {
en: 'Explode Landmines',
},
run: function(data) {
data.landmines = {};
},
},
{
id: 'T8 Landmine Explosion',
regex: / 1[56]:(\y{ObjectId}):Allagan Mine:7D1:Triggered Landmine:/,
infoText: function(data, matches) {
if (matches[1] in data.landmines)
return;
return (Object.keys(data.landmines).length + 1) + ' / 3';
},
tts: function(data, matches) {
if (matches[1] in data.landmines)
return;
return (Object.keys(data.landmines).length + 1);
},
run: function(data, matches) {
data.landmines[matches[1]] = true;
},
},
{
id: 'T8 Homing Missile Warning',
regex: / 23:\y{ObjectId}:(\y{Name}):\y{ObjectId}:The Avatar:....:....:0005:/,
suppressSeconds: 6,
infoText: function(data, matches) {
return {
en: 'Missile Tether (on ' + data.ShortName(matches[1]) + ')',
};
},
},
{
id: 'T8 Brainjack',
regex: / 14:7C3:The Avatar starts using Brainjack on (\y{Name})\./,
alertText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Brainjack on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Brainjack on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T8 Allagan Field',
regex: / [16:38:07.301] 14:7C4:The Avatar starts using Allagan Field on (\y{Name})\./,
alertText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Allagan Field on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Allagan Field on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T8 Dreadnaught',
regex: /03:Added new combatant Clockwork Dreadnaught/,
infoText: {
en: 'Dreadnaught Add',
},
},
],
}];