forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t7.js
125 lines (124 loc) · 2.84 KB
/
t7.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
'use strict';
[{
zoneRegex: /The Second Coil Of Bahamut - Turn \(2\)/,
timelineFile: 't7.txt',
triggers: [
{
id: 'T7 Ram',
regex: / 14:860:Proto-Chimera starts using The Ram's Voice/,
infoText: {
en: 'Silence Ram\'s Voice',
},
},
{
id: 'T7 Dragon',
regex: / 14:861:Proto-Chimera starts using The Dragon's Voice/,
infoText: {
en: 'Silence Dragon\'s Voice',
},
},
{
id: 'T7 Tail Slap',
regex: / 1[56]:\y{ObjectId}:Melusine:7A8:Tail Slap:\y{ObjectId}:(\y{Name}):/,
condition: function(data, matches) {
return data.me == matches[1] && data.job == 'BLU';
},
delaySeconds: 6,
suppressSeconds: 5,
infoText: {
en: 'Tail Slap in 10',
},
},
{
id: 'T7 Renaud',
regex: / 03:Added new combatant Renaud\./,
infoText: {
en: 'Renaud Add',
},
},
{
id: 'T7 Voice',
regex: / 1A:(\y{Name}) gains the effect of Cursed Voice from .*for (\y{Float}) Seconds/,
delaySeconds: function(data, matches) {
return matches[2] - 3;
},
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: {
en: 'Voice Soon',
},
},
{
id: 'T7 Shriek',
regex: / 1A:(\y{Name}) gains the effect of Cursed Shriek/,
durationSeconds: 3,
alarmText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Shriek on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Shriek on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T7 Shriek Reminder',
regex: / 1A:(\y{Name}) gains the effect of Cursed Shriek/,
delaySeconds: 7,
durationSeconds: 3,
infoText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Shriek Soon',
};
}
return {
en: 'Dodge Shriek',
};
},
},
{
id: 'T7 Phase 2',
regex: /:Melusine HP at 79%/,
sound: 'Long',
},
{
id: 'T7 Phase 3',
regex: /:Melusine HP at 59%/,
sound: 'Long',
},
{
id: 'T7 Phase 4',
regex: /:Melusine HP at 34%/,
sound: 'Long',
},
{
id: 'T7 Petrifaction 1',
regex: / 14:7BB:Lamia Prosector starts using Petrifaction/,
alertText: {
en: 'Look Away!',
},
},
{
id: 'T7 Petrifaction 2',
regex: / 14:7B1:Melusine starts using Petrifaction/,
alertText: {
en: 'Look Away!',
},
},
{
id: 'T7 Tail',
regex: /14:7B2:Melusine starts using Venomous Tail/,
alertText: {
en: 'Venomous Tail',
},
},
],
}];