-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua
292 lines (257 loc) · 5.81 KB
/
config.lua
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
local AddonName, NS = ...
local CreateFrame = CreateFrame
---@class PositionArray
---@field[1] string
---@field[2] string
---@field[3] number
---@field[4] number
---@class ColorArray
---@field r number
---@field g number
---@field b number
---@field a number
---@class GlobalTable : table
---@field lock boolean
---@field test boolean
---@field release boolean
---@field text boolean
---@field outside boolean
---@field fontsize number
---@field font string
---@field color ColorArray
---@field position PositionArray
---@field debug boolean
---@class DBTable : table
---@field global GlobalTable
---@class AutoBodyRes
---@field ADDON_LOADED function
---@field PLAYER_LOGIN function
---@field CORPSE_IN_RANGE function
---@field RESURRECT_REQUEST function
---@field PLAYER_DEAD function
---@field PLAYER_UNGHOST function
---@field PLAYER_SKINNED function
---@field PLAYER_ENTERING_WORLD function
---@field PlayerDead function
---@field PlayerDeadEvents function
---@field SlashCommands function
---@field frame Frame
---@field db DBTable
---@type AutoBodyRes
---@diagnostic disable-next-line: missing-fields
local AutoBodyRes = {}
NS.AutoBodyRes = AutoBodyRes
local AutoBodyResFrame = CreateFrame("Frame", AddonName .. "Frame")
AutoBodyResFrame:SetScript("OnEvent", function(_, event, ...)
if AutoBodyRes[event] then
AutoBodyRes[event](AutoBodyRes, ...)
end
end)
NS.AutoBodyRes.frame = AutoBodyResFrame
NS.PLACEHOLDER_TEXT = "PLACEHOLDER TEXT"
NS.BRAWL_IDS = {
[17] = "Cooking Impossible",
[9] = "Warsong Scramble",
[10] = "Shado-Pan Showdown",
}
NS.INSTANCE_TYPES = {
[0] = "none",
[1] = "party",
[2] = "raid",
[3] = "pvp",
[4] = "arena",
[5] = "scenario",
[6] = "unknown", -- Used by a single map: Void Zone: Arathi Highlands (2695)
}
NS.INSTANCE_IDS = {
-- battlegrounds
2107, -- "Arathi Basin"
2656, -- "Deephaul Ravine"
2245, -- "Deepwind Gorge"
566, -- "Eye of the Storm Normal",
968, -- "Eye of the Storm Rated"
1803, -- "Seething Shore"
727, -- "Silvershard Mines"
761, -- "The Battle for Gilneas"
998, -- "Temple of Kotmogu"
726, -- "Twin Peaks"
2106, -- "Warsong Gulch"
-- epic battlegrounds
30, -- "Alterac Valley"
1191, -- "Ashran"
2118, -- "Battle for Wintergrasp"
-- 628, -- "Classic Ashran"
628, -- "Isle of Conquest"
2197, -- "Korrak's Revenge"
-- 2197, -- "Tarren Mill vs Southshore"
-- brawl battlegrounds
1681, -- "Arathi Blizzard"
2177, -- "Comp Stomp"
1691, -- "Cooking Impossible"
-- 1691, -- "Deep Six"
-- 1691, -- "Deepwind Dunk"
566, -- "Gravity Lapse"
-- 2106, -- "Temple of Hotmogu"
2106, -- "Warsong Scramble"
}
NS.INSTANCE_NAMES = {
-- battlegrounds
"Arathi Basin",
"Deephaul Ravine",
"Deepwind Gorge",
"Eye of the Storm",
"Seething Shore",
"Silvershard Mines",
"The Battle for Gilneas",
"Temple of Kotmogu",
"Twin Peaks",
"Warsong Gulch",
-- epic battlegrounds
"Alterac Valley",
"Ashran",
"Battle for Wintergrasp",
"Isle of Conquest",
-- brawl battlegrounds
"Arathi Basin Comp Stomp",
"Arathi Basin Winter",
"Classic Ahsran",
"Cooking Impossible",
"Deep Siz",
"Deepwind Dunk",
"Gravity Lapse",
"Korrak's Revenge",
"Tarren Mill vs Southshore",
"Temple of Hotmogu",
"Warsong Scramble",
}
NS.DefaultDatabase = {
global = {
lock = false,
test = true,
release = true,
resurrect = true,
text = true,
outside = false,
disableblitz = false,
disablerated = false,
disablerandom = false,
disableepic = false,
disablebrawl = false,
fontsize = 36,
font = "Friz Quadrata TT",
debug = false,
color = {
r = 176 / 255,
g = 43 / 255,
b = 43 / 255,
a = 1,
},
position = {
"CENTER",
"CENTER",
0,
0,
},
allmaps = true,
-- battlegrounds
arathibasin = true,
deephaulravine = true,
deepwindgorge = true,
eyeofthestorm = true,
seethingshore = true,
silvershardmines = true,
thebattleforgilneas = true,
templeofkotmogu = true,
twinpeaks = true,
warsonggulch = true,
-- epic battlegrounds
alteracvalley = true,
ashran = true,
battleforwintergrasp = true,
isleofconquest = true,
-- brawl battlegrounds
arathiblizzard = true,
classicashran = true,
compstomp = true,
cookingimpossible = true,
deepsix = true,
deepwinddunk = true,
gravitylapse = true,
korraksrevenge = true,
tarrenmillvssouthshore = true,
templeofhotmogu = true,
warsongscramble = true,
},
}
--[[
-- Warsong Gulch --
-- Instance ID: 2106
-- Zone ID: 1339
-- Arathi Basin --
-- Instance ID: 2107
-- Zone ID: 1366
-- Deephaul Ravine --
-- Instance ID: 2656
-- Zone ID: 2345
-- Alterac Valley --
-- Instance ID: 30
-- Zone ID: 91
-- Eye of the Storm --
-- Instance ID: 566, 566, 968
-- Zone ID: 112, 112, 112
-- Isle of Conquest --
-- Instance ID: 628
-- Zone ID: 169
-- The Battle for Gilneas --
-- Instance ID: 761
-- Zone ID: 275
-- Battle for Wintergrasp --
-- Instance ID: 2118
-- Zone ID: 1334
-- Ashran --
-- Instance ID: 1191
-- Zone ID: 1478
-- Twin Peaks --
-- Instance ID: 726
-- Zone ID: 206
-- Silvershard Mines --
-- Instance ID: 727
-- Zone ID: 423
-- Temple of Kotmogu --
-- Instance ID: 998
-- Zone ID: 417
-- Seething Shore --
-- Instance ID: 1803
-- Zone ID: 907
-- Deepwind Gorge --
-- Instance ID: 2245
-- Zone ID: 1576
-- Korrak's Revenge --
-- Instance ID: 2197
-- Zone ID: 1537
-- Arathi Basin Comp Stomp --
-- Instance ID: 2177
-- Zone ID: 1383
-- Deepwind Dunk
-- Instance ID:
-- Zone ID:
-- Warsong Scramble
-- Instance ID: 2106
-- Zone ID: 1339
-- Brawl ID: 9
-- Arathi Basin Winter
-- Instance ID: 1681
-- Instance Type ID: 3
-- Zone ID: 837
-- Brawl ID:
-- Temple of Hotmogu
-- Instance ID:
-- Instance Type ID:
-- Zone ID:
-- Brawl ID:
-- Cooking Impossible
-- Instance ID: 1691
-- Instance Type ID:
-- Zone ID: 1335
-- Brawl ID: 17
--]]