forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
t5.js
156 lines (155 loc) · 3.83 KB
/
t5.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
'use strict';
[{
zoneRegex: /The Binding Coil Of Bahamut - Turn \(5\)/,
timelineFile: 't5.txt',
triggers: [
{
id: 'T5 Death Sentence',
regex: / 14:5B2:Twintania starts using Death Sentence on (\y{Name})\./,
condition: function(data, matches) {
return data.me == matches[1] || data.role == 'healer' || data.job == 'BLU';
},
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
};
}
},
infoText: function(data, matches) {
if (matches[1] != data.me) {
return {
en: 'Tank Buster on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T5 Death Sentence Warning',
regex: / 14:5B2:Twintania starts using Death Sentence/,
condition: function(data) {
return data.role == 'tank' || data.role == 'healer' || data.job == 'BLU';
},
delaySeconds: 30,
suppressSeconds: 5,
infoText: {
en: 'Death Sentence Soon',
},
},
{
id: 'T5 Liquid Hell',
regex: / 14:4DB:The Scourge Of Meracydia starts using Liquid Hell/,
infoText: {
en: 'Fireball',
},
},
{
id: 'T5 Phase 2',
regex: /:Twintania HP at 85%/,
sound: 'Long',
},
{
id: 'T5 Fireball',
regex: / 15:\y{ObjectId}:Twintania:5AC:Fireball:\y{ObjectId}:(\y{Name}):/,
alertText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Fireball on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Fireball on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T5 Conflag',
regex: / 15:\y{ObjectId}:Twintania:5AB:Firestorm:\y{ObjectId}:(\y{Name}):/,
alarmText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Conflag on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me != matches[1]) {
return {
en: 'Conflag on ' + data.ShortName(matches[1]),
};
}
},
},
{
id: 'T5 Phase 3',
regex: /:Twintania HP at 55%/,
sound: 'Long',
},
{
id: 'T5 Divebomb',
regex: / 15:\y{ObjectId}:Twintania:5B0:Divebomb:/,
alertText: {
en: 'DIVEBOMB',
},
},
{
id: 'T5 Divebomb Set Two',
regex: / 15:\y{ObjectId}:Twintania:5B0:Divebomb:/,
delaySeconds: 60,
suppressSeconds: 5000,
infoText: {
en: 'Divebombs Soon',
},
},
{
id: 'T5 Dreadknight',
regex: / 15:\y{ObjectId}:Twintania:4E3:Unwoven Will:\y{ObjectId}:(\y{Name}):/,
infoText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Knight on YOU',
};
}
return {
en: 'Knight on ' + data.ShortName(matches[1]),
};
},
},
{
id: 'T5 Twister',
regex: / 14:4E1:Twintania starts using Twister/,
alertText: {
en: 'Twister!',
},
},
{
id: 'T5 Phase 4',
regex: /:Twintania HP at 29%/,
sound: 'Long',
},
{
id: 'T5 Hatch',
regex: / 15:\y{ObjectId}:Twintania:5AD:Hatch Will:\y{ObjectId}:(\y{Name}):/,
alertText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Hatch on YOU',
};
}
},
infoText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Hatch on ' + data.ShortName(matches[1]),
};
}
},
},
],
}];