-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
632 lines (607 loc) · 25 KB
/
main.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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
---@class BetterBags: AceAddon
local addon = LibStub("AceAddon-3.0"):GetAddon("BetterBags")
---@class Categories: AceModule
local categories = addon:GetModule("Categories")
-- Localization table
local locales = {
["enUS"] = {
["Remix"] = "Remix",
["Meta Gems"] = "Meta Gems",
["Cogwheel Gems"] = "Cogwheel Gems",
["Tinker Gems"] = "Tinker Gems",
["Prismatic Gems"] = "Prismatic Gems",
["Enhancements"] = "Enhancements",
["Utilities"] = "Utilities",
["Consumables"] = "Potions & Bandages",
["Threads"] = "Threads",
["Addon alert"] = "|cff1DDB7FBetterBags - Remix: MoP|r is a part of |cff1DDB7FBetterBags - World Events|r.\nYou must choose which addon to keep, and disable the one you don't want.",
},
["frFR"] = {
["Remix"] = "Remix",
["Meta Gems"] = "Meta-gemmes",
["Cogwheel Gems"] = "Roues dentées précieuses",
["Tinker Gems"] = "Gemmes de bricolage",
["Prismatic Gems"] = "Gemmes prismatiques",
["Enhancements"] = "Améliorations",
["Utilities"] = "Utilitaires",
["Consumables"] = "Potions et Bandages",
["Threads"] = "Fils",
["Addon alert"] = "|cff1DDB7FBetterBags - Remix: MoP|r est déjà intégré à |cff1DDB7FBetterBags - World Events|r.\nVous devez choisir l'addon à conserver et désactiver celui dont vous ne voulez pas.",
},
["deDE"] = {
["Remix"] = "Remix",
["Meta Gems"] = "Metaedelstein",
["Cogwheel Gems"] = "Zahnradedelstein",
["Tinker Gems"] = "Tüftleredelstein",
["Prismatic Gems"] = "Prismatischer Edelstein",
["Enhancements"] = "Verbrauchbares: Verbesserungen",
["Utilities"] = "Verbrauchbares: Hilfsmittel",
["Consumables"] = "Tränke und Verbände",
["Threads"] = "Faden",
},
["ptBR"] = {
["Remix"] = "Remix",
["Meta Gems"] = "Meta Gemas",
["Cogwheel Gems"] = "Gema de Engrenagem",
["Tinker Gems"] = "Gema de Gambiarra",
["Prismatic Gems"] = "Gema Prismática",
["Enhancements"] = "Aprimoramento",
["Utilities"] = "Utilitários",
["Consumables"] = "Poções & Bandagens",
["Threads"] = "Fios",
}
}
-- Detects current language
local currentLocale = GetLocale()
-- Function to get the translation
local function L(key)
return locales[currentLocale] and locales[currentLocale][key] or locales["enUS"][key]
end
local WoWRemixMoP = {
217930, --Nostwin's Voucher
211388, --Timerunner's Starter Kit
219218, --Timerunner's Starter Kit
219219, --Timerunner's Starter Kit
103684, --Scroll of Challenge
219222, --Time-Lost Artifact
89770, --Tuft of Yak Fur
224461, --Bones of Mannoroth
94221, --Shan'ze Ritual Stone
219940, --Meteor Chip
-- Cache
223908, --Minor Bronze Cache
223909, --Lesser Bronze Cache
223910, --Bronze Cache
223911, --Greater Bronze Cache
211279, --Cache of Infinite Treasure
--Gear
208555, --Timerunner's Idol
208554, --Timerunner's Beacon
208487, --Timerunner's Ring
208491, --Timerunner's Seal
210523, --Timerunner's Amulet
--Miscellaneous
223905, --Asynchronized Meta Gem
223904, --Asynchronized Cogwheel Gem
223906, --Asynchronized Tinker Gem
223907, --Asynchronized Prismatic Gem
--Companions
221817, --Muskpaw Calf
--Toys
220777, --Cherry Blossom Trail
217723, --Fury of Xuen
217724, --Kindness of Chi-ji
217725, --Essence of Yu'lon
217726, --Fortitude of Niuzao
104262, --Odd Polished Stone Odd Polished Stone
86565, --Battle Horn
134023, --Bottled Tornado
86575, --Chalice of Secrets
86590, --Essence of the Breeze
86594, --Helpful Wikky's Whistle
86571, --Kang's Bindstone
86589, --Ai-Li's Skymirror
86578, --Eternal Warrior's Sigil
86581, --Farwater Conch
86593, --Hozen Beach Ball
86586, --Panflute of Pandaria
86583, --Salyin Battle Banner
86573, --Shard of Archstone
86582, --Aqua Jewel
86568, --Mr. Smite's Brass Compass
86588, --Pandaren Firework Launcher
104302, --Blackflame Daggers
104331, --Warning Sign
98136, --Gastropod Shell
104309, --Eternal Kiln
89205, --Mini Mana Bomb
--Mounts
220768, --Reins of the Astral Emperor's Serpent
220766, --Reins of the August Phoenix
213582, --Sky Surfer
213576, --Golden Discus Golden Discus
213584, --Mogu Hazeblazer Mogu Hazeblazer
213595, --Feathered Windsurfer String Feathered Windsurfer String
87784, --Reins of the Jungle Riding Crane Reins of the Jungle Riding Crane
213602, --Reins of the Gilded Riding Crane Reins of the Gilded Riding Crane
213603, --Reins of the Pale Riding Crane Reins of the Pale Riding Crane
213605, --Reins of the Rose Riding Crane Reins of the Rose Riding Crane
213606, --Reins of the Silver Riding Crane Reins of the Silver Riding Crane
213607, --Reins of the Luxurious Riding Crane Reins of the Luxurious Riding Crane
213604, --Reins of the Tropical Riding Crane Reins of the Tropical Riding Crane
213608, --Reins of the Snowy Riding Goat Reins of the Snowy Riding Goat
213609, --Reins of the Little Red Riding Goat Reins of the Little Red Riding Goat
213628, --Reins of the Riverwalker Mushan Reins of the Riverwalker Mushan
213627, --Reins of the Palehide Mushan Beast Reins of the Palehide Mushan Beast
87786, --Reins of the Black Riding Yak Reins of the Black Riding Yak
87787, --Reins of the Modest Expedition Yak Reins of the Modest Expedition Yak
84753, --Reins of the Kafa Yak Reins of the Kafa Yak
213626, --Reins of the Purple Shado-Pan Riding Tiger Reins of the Purple Shado-Pan Riding Tiger
213624, --Cobalt Juggernaut Cobalt Juggernaut
213625, --Fel Iron Juggernaut Fel Iron Juggernaut
213623, --Reins of the Bloody Skyscreamer Reins of the Bloody Skyscreamer
213622, --Reins of the Night Pterrorwing Reins of the Night Pterrorwing
213621, --Reins of the Jade Pterrordax Reins of the Jade Pterrordax
218111, --Reins of the Amber Pterrordax Reins of the Amber Pterrordax
213600, --Reins of the Marble Quilen Reins of the Marble Quilen
213601, --Reins of the Guardian Quilen Reins of the Guardian Quilen
213598, --Reins of the Dashing Windsteed Reins of the Dashing Windsteed
213597, --Reins of the Forest Windsteed Reins of the Forest Windsteed
213596, --Reins of the Daystorm Windsteed Reins of the Daystorm Windsteed
--Cosmetics
215182, -- Ensemble: Breezebinder's Vestments
215214, -- Ensemble: Regalia of the Horned Nightmare
215246, -- Ensemble: Vestments of the Haunted Forest
215278, -- Ensemble: Trailseeker's Laminar Armor
215310, -- Ensemble: Swarmbreaker's Battleplate
215342, -- Ensemble: Battleplate of the Last Mogu
215183, -- Ensemble: Spirit-Waker's Vestments
215215, -- Ensemble: Regalia of the Horned Nightmare
215247, -- Ensemble: Vestments of the Shattered Vale
215279, -- Ensemble: Trailseeker's Laminar Armor
222961, -- Ensemble: Sunny Tropical Swimwear
215343, -- Ensemble: Battleplate of the Last Mogu
215184, -- Ensemble: Spirit-Waker's Vestments
215216, -- Ensemble: Vestments of the Eternal Dynasty
215248, -- Ensemble: Vestments of the Shattered Vale
215280, -- Ensemble: Trailseeker's Laminar Armor
215312, -- Ensemble: Swarmbreaker's Battleplate
215344, -- Ensemble: Battleplate of the Last Mogu
215185, -- Ensemble: Spirit-Waker's Vestments
215217, -- Ensemble: Vestments of the Eternal Dynasty
215249, -- Ensemble: Vestments of the Shattered Vale
215281, -- Ensemble: Trailseeker's Laminar Armor
215313, -- Ensemble: Spiritguard's Warplate
215345, -- Ensemble: Battleplate of the Prehistoric Marauder
215186, -- Ensemble: Mistwalker's Vestments
215218, -- Ensemble: Vestments of the Eternal Dynasty
215250, -- Ensemble: Vestments of the Red Crane
215282, -- Ensemble: Dawnwatcher's Scale Armor
215314, -- Ensemble: Spiritguard's Warplate
215346, -- Ensemble: Battleplate of the Prehistoric Marauder
215187, -- Ensemble: Mistwalker's Vestments
215219, -- Ensemble: Guise of the Shado-Pan
215251, -- Ensemble: Vestments of the Red Crane
217833, -- Ensemble: Imminence of Krag'wa's Disciple
215315, -- Ensemble: Spiritguard's Warplate
215347, -- Ensemble: Battleplate of the Prehistoric Marauder
215188, -- Ensemble: Mistwalker's Vestments
215220, -- Ensemble: Guise of the Shado-Pan
215252, -- Ensemble: Vestments of the Red Crane
217834, -- Ensemble: Dreadsquall Hunter's Camouflage
215316, -- Ensemble: Shan'ze Warplate
215348, -- Ensemble: Gatecrasher's Battleplate
215189, -- Ensemble: Regalia of the Burning Scroll
215221, -- Ensemble: Mogubreaker Battlegear
215253, -- Ensemble: Fire-Charm Vestments
215285, -- Ensemble: Sun Pearl Clothing
215317, -- Ensemble: Shan'ze Warplate
215349, -- Ensemble: Gatecrasher's Battleplate
215190, -- Ensemble: Regalia of the Burning Scroll
215222, -- Ensemble: Mogubreaker Battlegear
215254, -- Ensemble: Fire-Charm Vestments
215286, -- Ensemble: Sun Pearl Clothing
215318, -- Ensemble: Shan'ze Warplate
215350, -- Ensemble: Gatecrasher's Battleplate
215191, -- Ensemble: Regalia of the Burning Scroll
215223, -- Ensemble: Mogubreaker Battlegear
215255, -- Ensemble: Fire-Charm Vestments
215287, -- Ensemble: Sun Pearl Clothing
215319, -- Ensemble: Shan'ze Warplate
215351, -- Ensemble: Gatecrasher's Battleplate
215192, -- Ensemble: Regalia of the Chromatic Hydra
215224, -- Ensemble: Mogubreaker Battlegear
215256, -- Ensemble: Vestments of the Seven Sacred Seals
217838, -- Ensemble: Fanatical Champion's Trophies
215320, -- Ensemble: Plate of the Lost Catacomb
215352, -- Ensemble: Robes of Quiet Reflection
215193, -- Ensemble: Regalia of the Chromatic Hydra
215225, -- Ensemble: Thunderpaw Battlegear
217839, -- Ensemble: Jewels of Temptation's Call
215321, -- Ensemble: Plate of the Lost Catacomb
215353, -- Ensemble: Robes of Quiet Reflection
215194, -- Ensemble: Regalia of the Chromatic Hydra
215226, -- Ensemble: Thunderpaw Battlegear
215258, -- Ensemble: Vestments of the Seven Sacred Seals
215290, -- Ensemble: Yaungol Slayer Battlegear
215322, -- Ensemble: Plate of the Lost Catacomb
215354, -- Ensemble: Robes of Quiet Reflection
215195, -- Ensemble: Chronomancer Regalia
215227, -- Ensemble: Thunderpaw Battlegear
215259, -- Ensemble: Vestments of the Seven Sacred Seals
217841, -- Ensemble: Shado-Pan Watcher Guise
215323, -- Ensemble: Battleplate of the All-Consuming Maw
215355, -- Ensemble: Robes of Quiet Reflection
215196, -- Ensemble: Chronomancer Regalia
215228, -- Ensemble: Thunderpaw Battlegear
215260, -- Ensemble: Battlegear of the Thousandfold Blades
217842, -- Ensemble: Aldrachi Blasphemer's Flames
215324, -- Ensemble: Battleplate of the All-Consuming Maw
215356, -- Ensemble: Vestments of Serenity
221540, -- Ensemble: Black Tropical
215197, -- Ensemble: Chronomancer Regalia
215229, -- Ensemble: Mistveil Leathers
215261, -- Ensemble: Battlegear of the Thousandfold Blades
217843, -- Ensemble: Ela'lothen's Vestment of Rebirth
223485, -- Ensemble: Green Snugglefin Murloc Romper
215357, -- Ensemble: Vestments of Serenity
221541, -- Ensemble: Blue Tropical
215198, -- Ensemble: Guardian Serpent Regalia
215230, -- Ensemble: Mistveil Leathers
215262, -- Ensemble: Battlegear of the Thousandfold Blades
217844, -- Ensemble: Igneous Onyx Uniform
223486, -- Ensemble: Purple Snugglefin Murloc Romper
215358, -- Ensemble: Vestments of Serenity
221542, -- Ensemble: Sunny Tropical Beachwear
215199, -- Ensemble: Guardian Serpent Regalia
215231, -- Ensemble: Mistveil Leathers
215263, -- Ensemble: Nine-Tail Battlegear
215295, -- Ensemble: Battlegear of the Unblinking Vigil
215327, -- Ensemble: Battleplate of Cyclopean Dread
221543, -- Ensemble: Pink Tropical
215200, -- Ensemble: Guardian Serpent Regalia
215232, -- Ensemble: Mistveil Leathers
215264, -- Ensemble: Nine-Tail Battlegear
215296, -- Ensemble: Battlegear of the Unblinking Vigil
215328, -- Ensemble: Battleplate of Cyclopean Dread
215201, -- Ensemble: Regalia of the Exorcist
215265, -- Ensemble: Nine-Tail Battlegear
215297, -- Ensemble: Regalia of the Firebird
215329, -- Ensemble: White Tiger Battlegear
215202, -- Ensemble: Regalia of the Exorcist
215266, -- Ensemble: Barbed Assassin Battlegear
215298, -- Ensemble: Regalia of the Firebird
215330, -- Ensemble: White Tiger Battlegear
217837, -- Ensemble: Webbed Soulforged Exoskeleton
217836, -- Ensemble: Sin'dorei Magister's Regalia
215203, -- Ensemble: Regalia of the Exorcist
217835, -- Ensemble: Scales of the Gold Hoarder
215267, -- Ensemble: Barbed Assassin Battlegear
215299, -- Ensemble: Regalia of the Firebird
215331, -- Ensemble: White Tiger Battlegear
215341, -- Ensemble: Battleplate of Resounding Rings
215309, -- Ensemble: Jade Guardian's Regalia
215277, -- Ensemble: Kor'kron Shaman Vestments
215204, -- Ensemble: Regalia of Ternion Glory
217832, -- Arsenal: Armaments of the Holy Avenger
215268, -- Ensemble: Barbed Assassin Battlegear
215300, -- Ensemble: Regalia of the Witch Doctor
215332, -- Ensemble: Battlegear of the Lightning Emperor
217846, -- Ensemble: Plate of the Holy Avenger
217845, -- Ensemble: Silks of the Abyssal Cult
217819, -- Arsenal: Tools of Krag'wa's Disciple
215205, -- Ensemble: Regalia of Ternion Glory
215292, -- Ensemble: Battlegear of the Saurok Stalker
215269, -- Ensemble: Snowdrift Battlegear
215301, -- Ensemble: Regalia of the Witch Doctor
215333, -- Ensemble: Battlegear of the Lightning Emperor
215340, -- Ensemble: Battleplate of Resounding Rings
217828, -- Arsenal: Aldrachi Blasphemer's Glaives
215276, -- Ensemble: Kor'kron Shaman Vestments
215206, -- Ensemble: Regalia of Ternion Glory
215238, -- Ensemble: Tian Monastery Clothing
217820, -- Arsenal: Dreadsquall Hunter's Preference
215302, -- Ensemble: Regalia of the Witch Doctor
215334, -- Ensemble: Battlegear of the Lightning Emperor
215291, -- Ensemble: Battlegear of the Saurok Stalker
215325, -- Ensemble: Battleplate of the All-Consuming Maw
215288, -- Ensemble: Yaungol Slayer Battlegear
215207, -- Ensemble: Sha Skin Regalia
215239, -- Ensemble: Tian Monastery Clothing
215271, -- Ensemble: Snowdrift Battlegear
215303, -- Ensemble: Regalia of Celestial Harmony
215335, -- Ensemble: Vestments of Winged Triumph
215326, -- Ensemble: Battleplate of Cyclopean Dread
222960, -- Ensemble: Pink Tropical Swimwear
215176, -- Ensemble: Breezebinder's Vestments
215208, -- Ensemble: Sha Skin Regalia
215240, -- Ensemble: Tian Monastery Clothing
215272, -- Ensemble: Mogu Lord's Regalia
215304, -- Ensemble: Regalia of Celestial Harmony
215336, -- Ensemble: Vestments of Winged Triumph
223244, -- Ensemble: Deepest Depths Diver Suit
217823, -- Arsenal: Sin'dorei Magister's Enchantment
215275, -- Ensemble: Kor'kron Shaman Vestments
215209, -- Ensemble: Sha Skin Regalia
215241, -- Ensemble: Vestments of the Eternal Blossom
215273, -- Ensemble: Mogu Lord's Regalia
215305, -- Ensemble: Regalia of Celestial Harmony
215337, -- Ensemble: Vestments of Winged Triumph
215283, -- Ensemble: Dawnwatcher's Scale Armor
215294, -- Ensemble: Battlegear of the Unblinking Vigil
217824, -- Arsenal: Webbed Soulforged Weaponry
215210, -- Ensemble: Regalia of the Thousandfold Hells
215242, -- Ensemble: Vestments of the Eternal Blossom
215274, -- Ensemble: Mogu Lord's Regalia
215306, -- Ensemble: Jade Guardian's Regalia
215338, -- Ensemble: Battleplate of Resounding Rings
215289, -- Ensemble: Yaungol Slayer Battlegear
215293, -- Ensemble: Battlegear of the Saurok Stalker
223243, -- Ensemble: Blue Diver Suit
215211, -- Ensemble: Regalia of the Thousandfold Hells
215243, -- Ensemble: Vestments of the Eternal Blossom
217825, -- Arsenal: Fanatical Champion's Aggression
215307, -- Ensemble: Jade Guardian's Regalia
215339, -- Ensemble: Battleplate of Resounding Rings
215284, -- Ensemble: Dawnwatcher's Scale Armor
215311, -- Ensemble: Swarmbreaker's Battleplate
217821, -- Arsenal: Treasure of the Gold Hoarder
215212, -- Ensemble: Regalia of the Thousandfold Hells
215244, -- Ensemble: Vestments of the Haunted Forest
217826, -- Arsenal: Instruments of Temptation's Call
215308, -- Ensemble: Jade Guardian's Regalia
223245, -- Ensemble: Green Diver Suit
215270, -- Ensemble: Snowdrift Battlegear
221847, -- Ensemble: Black Tropical Swimwear
215181, -- Ensemble: Breezebinder's Vestments
215213, -- Ensemble: Regalia of the Horned Nightmare
215245, -- Ensemble: Vestments of the Haunted Forest
217827, -- Arsenal: Shado-Pan Watcher Arsenal
222959, -- Ensemble: Tropical Sunrise Swimwear
223246, -- Ensemble: Copper Diver Suit
217829, -- Arsenal: Ela'lothen's Blessings of Rebirth
217830, -- Arsenal: Igneous Onyx Blades
217831, -- Arsenal: Secrets of the Abyssal Cult
}
local WoWRemixMoP_metagems = {
-- Meta Gems
219878, --Tireless Spirit
221977, --Funeral Pyre
216663, --Oblivion Sphere
220211, --Precipice of Madness
216711, --Chi-ji, the Red Crane
220117, --Ward of Salvation
216671, --Thundering Orb
219386, --Locus of Power
216695, --Lifestorm
221982, --Bulwark of the Black Ox
220120, --Soul Tether
}
local WoWRemixMoP_cogwheelgems = {
-- Cogwheel Gems
216632, --Sprint
218044, --Pursuit of Justice
218045, --Door of Shadows
216629, --Blink
218043, --Wild Charge
218108, --Dark Pact
216631, --Roll
217989, --Trailblazer
218082, --Spiritwalker's Grace
218109, --Death's Advance
218110, --Soulshape
217983, --Disengage
218003, --Leap of Faith
218004, --Vanish
216630, --Heroic Leap
218005, --Stampeding Roar
218046, --Spirit Walk
}
local WoWRemixMoP_tinkergems = {
-- Tinker Gems
219801, --Ankh of Reincarnation
212366, --Arcanist's Edge
219944, --Bloodthirsty Coral
219818, --Brilliance
216649, --Brittle
216648, --Cold Front
217957, --Deliverance
212694, --Enkindle
212749, --Explosive Barrage
212365, --Fervor
219817, --Freedom
212916, --Frost Armor
219777, --Grounding
216647, --Hailstorm
217964, --Holy Martyr
212758, --Incendiary Terror
219389, --Lightning Rod
216624, --Mark of Arrogance
216650, --Memory of Vengeance
212759, --Meteor Storm
212361, --Opportunist
216625, --Quick Strike
217961, --Righteous Frenzy
217927, --Savior
216651, --Searing Light
216626, --Slay
219452, --Static Charge
219523, --Storm Overload
212362, --Sunstrider's Flourish
212629, --Test Ruby
216627, --Tinkmaster's Shield
219527, --Vampiric Aura
216628, --Victory Fire
217903, --Vindication
217907, --Warmth
212760, --Wildfire
219516, --Windweaver
}
local WoWRemixMoP_prismaticgems = {
--Prismatic Gems
210714, --Chipped Deadly Sapphire
210717, --Chipped Hungering Ruby
210715, --Chipped Masterful Amethyst
210681, --Chipped Quick Topaz
220367, --Chipped Stalwart Pearl
211109, --Chipped Sustaining Emerald
210716, --Chipped Swift Opal
220371, --Chipped Versatile Diamond
211123, --Deadly Sapphire
216644, --Flawed Deadly Sapphire
216641, --Flawed Hungering Ruby
216640, --Flawed Masterful Amethyst
216643, --Flawed Quick Topaz
220368, --Flawed Stalwart Pearl
216642, --Flawed Sustaining Emerald
216639, --Flawed Swift Opal
220372, --Flawed Versatile Diamond
210718, --Hungering Ruby
211106, --Masterful Amethyst
211102, --Perfect Deadly Sapphire
211103, --Perfect Hungering Ruby
211108, --Perfect Masterful Amethyst
211110, --Perfect Quick Topaz
220369, --Perfect Stalwart Pearl
211105, --Perfect Sustaining Emerald
211101, --Perfect Swift Opal
220373, --Perfect Versatile Diamond
211107, --Quick Topaz
220370, --Stalwart Pearl
211125, --Sustaining Emerald
211124, --Swift Opal
220374, --Versatile Diamond
}
local WoWRemixMoP_Buff = {
217731, --Timeless Scroll of Mystic Power
217605, --Timeless Scroll of Intellect
217607, --Timeless Scroll of the Wild
217606, --Timeless Scroll of Fortitude
217608, --Timeless Scroll of Battle Shout
217730, --Timeless Scroll of Chaos
217901, --Timeless Drums
}
local WoWRemixMoP_Utility = {
217928, --Timeless Scroll of Resurrection
217929, --Timeless Scroll of Cleansing
217956, --Timeless Scroll of Summoning
}
local WoWRemixMoP_Consumable = {
217904, --Timerunner's Draught of Power
217905, --Timerunner's Draught of Health
211254, --Timerunner's Bandage
}
local WoWRemixMoP_Threads = {
217722, --Thread of Experience
219264, --Temporal Thread of Experience
219273, --Perpetual Thread of Experience
219282, --Infinite Thread of Experience
210990, --Thread of Versatility
219263, --Temporal Thread of Versatility
219272, --Perpetual Thread of Versatility
219281, --Infinite Thread of Versatility
210989, --Thread of Mastery
219262, --Temporal Thread of Mastery
219271, --Perpetual Thread of Mastery
219280, --Infinite Thread of Mastery
210987, --Thread of Leech
219261, --Temporal Thread of Leech
219270, --Perpetual Thread of Leech
219279, --Infinite Thread of Leech
210986, --Thread of Speed
219260, --Temporal Thread of Speed
219269, --Perpetual Thread of Speed
219278, --Infinite Thread of Speed
210985, --Thread of Haste
219259, --Temporal Thread of Haste
219268, --Perpetual Thread of Haste
219277, --Infinite Thread of Haste
210984, --Thread of Critical Strike
219258, --Temporal Thread of Critical Strike
219267, --Perpetual Thread of Critical Strike
219276, --Infinite Thread of Critical Strike
210983, --Thread of Stamina
219257, --Temporal Thread of Stamina
219266, --Perpetual Thread of Stamina
219275, --Infinite Thread of Stamina
210982, --Thread of Power
219256, --Temporal Thread of Power
219265, --Perpetual Thread of Power
219274, --Infinite Thread of Power
226145, --Minor Spool of Eternal Thread
226144, --Lesser Spool of Eternal Thread
226143, --Spool of Eternal Thread
226142 --Greater Spool of Eternal Thread
}
--Color categories
local colorPrefix = "|cff1DDB7F"
local resetColor = "|r"
--We make sure that category names and content are always up to date.
local CategoriesToUpdate = {
"Remix",
"Meta Gems",
"Cogwheel Gems",
"Tinker Gems",
"Prismatic Gems",
"Enhancements",
"Utilities",
"Consumables",
L("Remix"),
L("Meta Gems"),
L("Cogwheel Gems"),
L("Tinker Gems"),
L("Prismatic Gems"),
L("Enhancements"),
L("Utilities"),
L("Consumables"),
L("Threads"),
}
for _, category in ipairs(CategoriesToUpdate) do
categories:DeleteCategory(category)
end
--Loop
for _, ItemID in pairs(WoWRemixMoP) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Remix") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_metagems) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Meta Gems") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_cogwheelgems) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Cogwheel Gems") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_tinkergems) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Tinker Gems") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_prismaticgems) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Prismatic Gems") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_Buff) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Enhancements") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_Utility) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Utilities") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_Consumable) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Consumables") .. resetColor)
end
for _, ItemID in pairs(WoWRemixMoP_Threads) do
categories:AddItemToCategory(ItemID, colorPrefix .. L("Threads") .. resetColor)
end
--Check if both BetterBags_RemixMoP and BetterBags_WorldEvents are enabled
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", function(self, event)
if event == "PLAYER_LOGIN" or event == "PLAYER_ENTERING_WORLD" then
if IsAddOnLoaded("BetterBags_RemixMoP") and IsAddOnLoaded("BetterBags_WorldEvents") then
StaticPopup_Show("BETTERBAGS_INCOMPATIBLE_WARNING")
end
end
end)
StaticPopupDialogs["BETTERBAGS_INCOMPATIBLE_WARNING"] = {
text = L("Addon alert"),
button1 = "OK",
timeout = 0,
whileDead = true,
hideOnEscape = true,
}