-
Notifications
You must be signed in to change notification settings - Fork 2
/
Outfitter.lua
8230 lines (6470 loc) · 216 KB
/
Outfitter.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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
----------------------------------------
-- Outfitter Copyright 2006-2018 John Stephen
-- All rights reserved, unauthorized redistribution is prohibited
----------------------------------------
Outfitter.Debug =
{
InventoryCache = false,
EquipmentChanges = false,
EquipmentManager = false,
NewItems = false,
TemporaryItems = false,
Optimize = false,
}
----------------------------------------
Outfitter.CreditPlayersByRealm =
--
-- 0 Friend
-- 1 Tester or developer (bugfixes, enhancements, etc.)
-- 2 Localizer
-- 3 Donor
----------------------------------------
{
[Outfitter.cDragonFlightCompatiblity] = {
["Nulian.. We applaude you!"] = 1,
["Coremeeko2"] = 1,
},
["Ace Library"] = {
["LibBabble"] = 2,
["LibBabble-Zone"] = 2,
["LibBabble-SubZone"] = 2,
["LibBabble-Inventory"] = 2,
["LibDataBroker"] = 2,
["LibTipHooker"] = 2,
["LibDropdown"] = 2,
},
[Outfitter.cGermanLocalization] =
{
["Ani"] = 2,
["Zokrym"] = 2,
["Dessa"] = 2,
},
[Outfitter.cChineseLocalization] =
{
["AndyAska"] = 2,
["xingdvd"] = 2,
},
[Outfitter.cFrenchLocalization] =
{
["Jullye"] = 2,
["Quetzaco"] = 2,
["Ekhurr"] = 2,
["Negwe"] = 2,
},
[Outfitter.cSpanishLocalization] =
{
["Marutak"] = 2,
["Marosth"] = 2,
},
[Outfitter.cRussianLocalization] =
{
["Delika"] = 2,
},
[Outfitter.cKoreanLocalization] =
{
["Unknown"] = 2,
},
[Outfitter.cContributingDeveloper] =
{
["Nulian"] = 1,
["Dridzt"] = 1,
["Bruce Quinton"] = 1,
["Kal_Zakath13"] = 1,
["Smurfy"] = 1,
["XMinionX"] = 1,
["Dussander"] = 1,
["Echobravo"] = 1,
["MacGregor"] = 1,
["LaoTseu"] = 1,
["Irozal"] = 1,
["EmForAce"] = 1,
["durandal42"] = 1,
["Dicebar"] = 1,
["Silarn"] = 1,
["slippycheeze"] = 1,
["binul"] = 1,
["elaundar"] = 1,
["Bodar"] = 1,
["chullah"] = 1,
["AoR_Derangement"] = 1,
},
["Tester"] =
{
["Whishann"] = 1,
["HunterZ"] = 1,
["docthis"] = 1,
["Irdx"] = 1,
["TigaFIN"] = 1,
["iceeagle"] = 1,
["Denrax"] = 1,
["rasmoe"] = 1,
["Katlefiya"] = 1,
["gtmsece"] = 1,
["Militis"] = 1,
["Casard"] = 1,
["saltorio"] = 1,
["elusif"] = 1,
["DanoPDX"] = 1,
},
[""] =
{
["Kristi H."] = 3,
["Lawrence C."] = 3,
["Hellrush"] = 3,
["Fusyion"] = 3,
["Matt R."] = 3,
["Richard F.\n<Greatest Addon Supporter>"] = 3,
},
["Alterac Mountains"] =
{
["Asgeirr\n<The Stone Council>"] = 3,
},
["Aman'Thul"] =
{
["Blessmie\n<Chairman of the Horde>"] = 3,
["Zanoroy\n<The Mighty Few>"] = 3,
},
["Antonidas"] =
{
["Colina\n<Drunken Monkey Brigade>"] = 3,
},
["Anvilmar"] =
{
["Droodwrmycar"] = 3,
},
["Azgalore"] =
{
["Dankris\n<Caligula's Pleasures>"] = 3,
},
["Azjol-Nerub"] =
{
["Mythris"] = 3,
},
["Blackwater Raiders"] =
{
["Maumau\n<No Quarter>"] = 3,
},
["Bronzebeard"] =
{
["Jiminimonka\n<Go Rin No Sho>"] = 3,
},
["Dalaran"] =
{
["Y C\n<Blurred Reality>"] = 3,
},
["Defias Brotherhood"] =
{
["Maelmoor"] = 3,
},
["Draenor"] =
{
["Emmerald\n<Adept>"] = 3,
},
["Draka"] =
{
["Nagem\n<Loch Modan Yacht Club"] = 3,
},
["Durotar"] =
{
["Haguen"] = 3,
},
Ghostlands =
{
Nounchok = 3,
},
["Gnomeregan"] =
{
["Calind\n<Swords of the Alliance>"] = 3,
},
["Jubei'Thos"] =
{
["Thoresen\n<Verb>"] = 3,
["Thorgils"] = 3,
},
["Kargath"] =
{
["Leara"] = 3,
["Burnaron\nLiga of Faliviens"] = 3,
},
["Khaz Modan"] =
{
["Faizal"] = 3,
},
["Khaz'goroth"] =
{
["Xentric\n<Cult of the Nuzzled Nark>"] = 3,
},
["Kul'Tiras"] =
{
["Tharca"] = 3,
},
["Lightbringer"] =
{
["Teldra\n<The Trust>"] = 3,
},
["Llane"] =
{
["Chirily"] = 3,
},
["Malfurion"] =
{
["Zetac\n<Hold Fast>"] = 3,
},
["Moonglade"] =
{
["Ciev"] = 3,
},
["Rexxar"] =
{
["Blitzi\n<Absolution>"] = 3,
},
["Scilla"] =
{
["Blam\n<Syndicate>"] = 3,
},
["Sentinels"] =
{
["Dhaktar"] = 3,
},
["Skywall"] =
{
["Valerya"] = 3,
},
["Suramar"] =
{
["Zendex"] = 3,
["Klaxon\n<Forbidden Planet"] = 3,
},
["Terrokkar"] =
{
["Extropianus\n<The First Immortals>"] = 3,
},
["Thorium Brotherhood"] =
{
["Pitchifus\n<Bloodforged>"] = 0,
Tiae = 0,
Airmid = 0,
Pistachio = 0,
Fizzlebang = 0,
[Outfitter.cGuildCreditFormat:format("Bloodforged")] = 1,
},
["Ysondre"] =
{
["Steikfrit"] = 3,
},
["Zangarmarsh"] =
{
["Feliany"] = 3,
},
}
Outfitter.BannedCharacters = {
}
----------------------------------------
----------------------------------------
gOutfitter_Settings = nil
gOutfitter_GlobalSettings = nil
Outfitter.Initialized = false
Outfitter.Suspended = false
-- Outfit state
Outfitter.OutfitStack = {}
Outfitter.OutfitStack.Outfits = {}
Outfitter.CurrentOutfit = nil
Outfitter.ExpectedOutfit = nil
Outfitter.CurrentInventoryOutfit = nil
Outfitter.EquippedNeedsUpdate = false
Outfitter.LastEquipmentUpdateTime = 0
Outfitter.SpecialState = {} -- The current state as determined by the engine, not necessarily the state of the outfit itself
-- Player state
Outfitter.CurrentZone = ""
Outfitter.CurrentZoneIDs = {}
Outfitter.InCombat = false
Outfitter.MaybeInCombat = false
Outfitter.IsDead = false
Outfitter.IsFeigning = false
Outfitter.BankFrameIsOpen = false
Outfitter.VoidStorageIsOpen = false
Outfitter.HasHWEvent = false
Outfitter.SettingTypeInfo =
{
string = {Default = "", FrameType = "EditBox" },
number = {Default = 0, FrameType = "EditBox" },
stringtable = {Default = {}, FrameType = "ScrollableEditBox"},
zonelist = {Default = {}, FrameType = "ZoneListEditBox" },
boolean = {Default = false, FrameType = "Checkbox" },
}
Outfitter.Style = {}
Outfitter.Style.ButtonBar =
{
ButtonHeight = 37,
ButtonWidth = 37,
BackgroundTextureHeight = 128,
BackgroundTextureWidth = 128,
BackgroundWidth = 42,
BackgroundWidth0 = 26,
BackgroundWidthN = 27,
BackgroundHeight = 41,
BackgroundHeight0 = 28,
BackgroundHeightN = 25,
}
-- UI
Outfitter.CurrentPanel = 3
Outfitter.Collapsed = {}
Outfitter.SelectedOutfit = nil
Outfitter.DisplayIsDirty = true
Outfitter.OutfitInfoCache = {}
Outfitter.MaxSimpleTitles = 10
function Outfitter:FormatItemList(pList)
local vNumItems = #pList
if vNumItems == 0 then
return ""
elseif vNumItems == 1 then
return string.format(self.cSingleItemFormat, pList[1])
elseif vNumItems == 2 then
return string.format(self.cTwoItemFormat, pList[1], pList[2])
else
local vStartIndex, vEndIndex, vPrefix, vRepeat, vSuffix = string.find(self.cMultiItemFormat, "(.*){{(.*)}}(.*)")
local vResult
local vParamIndex = 1
if vPrefix and string.find(vPrefix, "%%") then
vResult = string.format(vPrefix, pList[1])
vParamIndex = 2
else
vResult = vPrefix or ""
end
if vRepeat then
for vIndex = vParamIndex, vNumItems - 1 do
vResult = vResult..string.format(vRepeat, pList[vIndex])
end
end
if vSuffix then
vResult = vResult..string.format(vSuffix, pList[vNumItems])
end
return vResult
end
end
-- Define global variables to be used directly in the XML
-- file since those references can't be object paths
Outfitter_cTitle = Outfitter.cTitle
Outfitter_cTitleVersion = Outfitter.cTitleVersion
Outfitter_cCreateUsingTitle = Outfitter.cCreateUsingTitle
Outfitter_cAutomationLabel = Outfitter.cAutomationLabel
Outfitter_cOutfitterTabTitle = Outfitter.cOutfitterTabTitle
Outfitter_cOptionsTabTitle = Outfitter.cOptionsTabTitle
Outfitter_cAboutTabTitle = Outfitter.cAboutTabTitle
Outfitter_cNewOutfit = Outfitter.cNewOutfit
Outfitter_cNameAlreadyUsedError = Outfitter.cNameAlreadyUsedError
Outfitter_cEnableAll = Outfitter.cEnableAll
Outfitter_cEnableNone = Outfitter.cEnableNone
Outfitter_cOptionsTitle = Outfitter.cOptionsTitle
Outfitter_cEditScriptTitle = Outfitter.cEditScriptTitle
Outfitter_cEditScriptEllide = Outfitter.cEditScriptEllide
Outfitter_cPresetScript = Outfitter.cPresetScript
Outfitter_cSettings = Outfitter.cSettings
Outfitter_cSource = Outfitter.cSource
Outfitter_cIconFilterLabel = Outfitter.cIconFilterLabel
Outfitter_cIconSetLabel = Outfitter.cIconSetLabel
-- These definitions are for backward compatibility with third-party addons
-- which call into Outfitter directly (OutfitterFu, FishingBuddy, ArkInventory)
-- Hopefully the authors of those addons will eventually migrate their code to
-- use the new functions instead so that these can eventually be eliminated.
Outfitter_cCompleteOutfits = Outfitter.cCompleteOutfits
Outfitter_cAccessoryOutfits = Outfitter.cAccessoryOutfits
Outfitter_cOddsNEndsOutfits = Outfitter.cOddsNEndsOutfits
function Outfitter_OnLoad(...) return Outfitter:OnLoad(...) end
function Outfitter_IsInitialized(...) return Outfitter:IsInitialized(...) end
function Outfitter_Update(...) return Outfitter:Update(...) end
function Outfitter_FindOutfitByStatID(...) return Outfitter:FindOutfitByStatID(...) end
function Outfitter_FindOutfitByName(...) return Outfitter:FindOutfitByName(...) end
function Outfitter_GetCategoryOrder(...) return Outfitter:GetCategoryOrder(...) end
function Outfitter_GetOutfitsByCategoryID(...) return Outfitter:GetOutfitsByCategoryID(...) end
function Outfitter_HasVisibleOutfits(...) return Outfitter:HasVisibleOutfits(...) end
function Outfitter_OutfitIsVisible(...) return Outfitter:OutfitIsVisible(...) end
function Outfitter_GenerateSmartOutfit(pName, pStat, pInventoryCache, pAllowEmptyOutfit) return Outfitter:GenerateSmartOutfit(pName, pStat, pInventoryCache, pAllowEmptyOutfit) end
function Outfitter_AddOutfit(...) return Outfitter:AddOutfit(...) end
function Outfitter_DeleteOutfit(...) return Outfitter:DeleteOutfit(...) end
function Outfitter_WearOutfit(pOutfit, pCategoryID, pWearBelowOutfit) return Outfitter:WearOutfit(pOutfit) end
function Outfitter_RemoveOutfit(...) return Outfitter:RemoveOutfit(...) end
function Outfitter_WearingOutfit(...) return Outfitter:WearingOutfit(...) end
function Outfitter_RegisterOutfitEvent(...) return Outfitter:RegisterOutfitEvent(...) end
function Outfitter_UnregisterOutfitEvent(...) return Outfitter:UnregisterOutfitEvent(...) end
function Outfitter_GetCurrentOutfitInfo(...) return Outfitter:GetCurrentOutfitInfo(...) end
function Outfitter_SetShowMinimapButton(...) return Outfitter:SetShowMinimapButton(...) end
function Outfitter_GetItemInfoFromLink(...) return Outfitter:GetItemInfoFromLink(...) end
function Outfitter_GetOutfitsUsingItem(...) return Outfitter:GetOutfitsUsingItem(...) end
function OutfitterItemList_GetEquippableItems(...) return Outfitter:GetInventoryCache(...) end
function OutfitterItemList_GetMissingItems(pItemList, ...) return pItemList:GetMissingItems(...) end
function Outfitter.ItemList_GetEquippableItems(...) return Outfitter:GetInventoryCache(...) end
function Outfitter.ItemList_GetMissingItems(pItemList, ...) return pItemList:GetMissingItems(...) end
function Outfitter:OutfitUsesItem(pOutfit, pItemInfo) return pOutfit:OutfitUsesItem(pItemInfo) end
--
Outfitter.cMinEquipmentUpdateInterval = 1.5
Outfitter.cInitializationEvents =
{
["PLAYER_ENTERING_WORLD"] = true,
["BAG_UPDATE"] = true,
["UNIT_INVENTORY_CHANGED"] = true,
["ZONE_CHANGED_NEW_AREA"] = true,
["ZONE_CHANGED"] = true,
["ZONE_CHANGED_INDOORS"] = true,
["PLAYER_ALIVE"] = true,
}
-- Beginning in patch 8.0, WoW throws errors when registering for events which don't exist. This table contains all builtin event IDs so they can be avoided when registering events.
Outfitter.BuiltinEvents = {
["TIMER"] = true,
["GAMETOOLTIP_SHOW"] = true,
["GAMETOOLTIP_HIDE"] = true,
["BATTLEGROUND"] = true,
["NOT_BATTLEGROUND"] = true,
["BATTLEGROUND_AV"] = true,
["NOT_BATTLEGROUND_AV"] = true,
["BATTLEGROUND_AB"] = true,
["NOT_BATTLEGROUND_AB"] = true,
["BATTLEGROUND_ARENA"] = true,
["NOT_BATTLEGROUND_ARENA"] = true,
["BATTLEGROUND_BLADESEDGE"] = true,
["NOT_BATTLEGROUND_BLADESEDGE"] = true,
["BATTLEGROUND_EOTS"] = true,
["NOT_BATTLEGROUND_EOTS"] = true,
["BATTLEGROUND_GILNEAS"] = true,
["NOT_BATTLEGROUND_GILNEAS"] = true,
["BATTLEGROUND_IOC"] = true,
["NOT_BATTLEGROUND_IOC"] = true,
["BATTLEGROUND_NAGRAND"] = true,
["NOT_BATTLEGROUND_NAGRAND"] = true,
["BATTLEGROUND_LORDAERON"] = true,
["NOT_BATTLEGROUND_LORDAERON"] = true,
["BATTLEGROUND_ROV"] = true,
["NOT_BATTLEGROUND_ROV"] = true,
["BATTLEGROUND_SEWERS"] = true,
["NOT_BATTLEGROUND_SEWERS"] = true,
["BATTLEGROUND_SOTA"] = true,
["NOT_BATTLEGROUND_SOTA"] = true,
["BATTLEGROUND_TWINPEAKS"] = true,
["NOT_BATTLEGROUND_TWINPEAKS"] = true,
["BATTLEGROUND_WG"] = true,
["NOT_BATTLEGROUND_WG"] = true,
["BATTLEGROUND_WSG"] = true,
["NOT_BATTLEGROUND_WSG"] = true,
["CASTER_FORM"] = true,
["NOT_CASTER_FORM"] = true,
["BEAR_FORM"] = true,
["NOT_BEAR_FORM"] = true,
["CAT_FORM"] = true,
["NOT_CAT_FORM"] = true,
["TRAVEL_FORM"] = true,
["NOT_TRAVEL_FORM"] = true,
["MOONKIN_FORM"] = true,
["NOT_MOONKIN_FORM"] = true,
["TREE_FORM"] = true,
["NOT_TREE_FORM"] = true,
["STEALTH"] = true,
["NOT_STEALTH"] = true,
["MOUNTED"] = true,
["NOT_MOUNTED"] = true,
["SPIRIT_REGEN"] = true,
["NOT_SPIRIT_REGEN"] = true,
["GHOST_WOLF"] = true,
["NOT_GHOST_WOLF"] = true,
["FEIGN_DEATH"] = true,
["NOT_FEIGN_DEATH"] = true,
["SWIMMING"] = true,
["NOT_SWIMMING"] = true,
["CITY"] = true,
["NOT_CITY"] = true,
["EVOCATE"] = true,
["NOT_EVOCATE"] = true,
["DINING"] = true,
["NOT_DINING"] = true,
}
Outfitter.BANKED_FONT_COLOR = CreateColor(0.25, 0.2, 1.0)
Outfitter.BANKED_FONT_COLOR_CODE = "|cff4033ff"
Outfitter.OUTFIT_MESSAGE_COLOR = CreateColor(0.2, 0.75, 0.3)
Outfitter.IsWoW4 = true
Outfitter.cItemLinkFormat = "|Hitem:(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+):(-?%d+)|h%[([^%]]*)%]|h"
-- Phantom items are items which appear to be in a slot but which are actually the by-product of some other item being equipped in a different slot. This is being used in Patch 7 (Legion) for the artifact weapons which occupy both weapon slots.
-- /dump {Outfitter:GetInventoryItemInfo("MainHandSlot").Code,Outfitter:GetInventoryItemInfo("SecondaryHandSlot").Code}
Outfitter.PhantomItemIDs = {
[133948] = true, -- Monk, Fists of the Heavaens
[128293] = true, -- DK, Blades of the Fallen Prince
[127830] = true, -- DH, Twinblades of the Deceiver
[128831] = true, -- DH, Aldrachi Warblades
[128859] = true, -- Druid, Fangs of Ashmane
[128822] = true, -- Druid, Claws of Ursoc
[133959] = true, -- Mage, Heart of the Phoenix
[128867] = true, -- Paladin, Oathseeker
[133958] = true, -- Priest, Secrets of the Void
[128869] = true, -- Rogue, The Kingslayers
[134552] = true, -- Rogue, Fortune
[128479] = true, -- Rogue, Akaari's Will
[128936] = true, -- Shaman, The Highkeeper's Ward
[128873] = true, -- Shaman, Fury of the Stonemother
[128934] = true, -- Shaman, Shield of the Sea Queen
[137246] = true, -- Warlock, Spine of Thal'kiel
[134553] = true, -- Warrior, Helya's Wrath
[128288] = true, -- Warrior, Scaleshard
}
Outfitter.cUniqueGemItemIDs =
{
[33140] = 33140, -- Blood of Amber, ItemCode 33140, +13 Spell Critical Strike Rating
[33139] = 33139, -- Brilliant Bladestone, ItemCode 33139, +12 Intellect
[34256] = 34256, -- Charmed Amani Jewel, ItemCode 34256, +15 Stamina
[33131] = 33131, -- Crimson Sun, ItemCode 33131, +24 Attack Power
[33132] = 33132, -- Delicate Fire Ruby, ItemCode 33132, +12 Agility
[33133] = 33133, -- Don Julio's Heart, ItemCode 33133
[33144] = 33144, -- Facet of Eternity, ItemCode 33144, +12 Defense Rating
[33135] = 33135, -- Falling Star, ItemCode 33135, +18 Stamina
[33141] = 33141, -- Great Bladestone, ItemCode 33141, +12 Spell Hit Rating
[33134] = 33134, -- Kailee's Rose, ItemCode 33134, +26 Healing and +9 Spell Damage
[33138] = 33138, -- Mystic Bladestone, ItemCode 33138, +12 Resilience Rating
[32735] = 32735, -- Radiant Spencerite, ItemCode 32735, +20 Attack Power
[33142] = 33142, -- Rigid Bladestone, ItemCode 33142, +12 Hit Rating
[33137] = 33137, -- Sparkling Falling Star, ItemCode 33137, +12 Spirit
[33143] = 3220, -- Stone of Blades, ItemCode 33143, +12 Critical Strike Rating
[27679] = 2891, -- Sublime Mystic Dawnstone, ItemCode 27679, +10 Resilience Rating
[27786] = 2899, -- Barbed Deep Peridot, ItemCode 27786 & 27809, +3 Stamina, +4 Critical Strike Rating
[27809] = 2899, -- Barbed Deep Peridot, ItemCode 27786 & 27809, +3 Stamina, +4 Critical Strike Rating
[30598] = 3103, -- Don Amancio's Heart, ItemCode 30598, +8 Strength (numerous enchants of +8 str)
[30571] = 3065, -- Don Rodrigo's Heart, ItemCode 30571, +8 Strength
[34831] = 3268, -- Eye of the Sea, ItemCode 34831, +15 Stamina
[28360] = 2943, -- Mighty Blood Garnet, ItemCode 28360, +14 Attack Power
[28361] = 2944, -- Mighty Blood Garnet, ItemCode 28361, +14 Attack Power
[27785] = 2898, -- Notched Deep Peridot, ItemCode 27785, +3 Stamina, +4 Spell Critical Strike Rating
[27820] = 2923, -- Notched Deep Peridot, ItemCode 27820, +3 Stamina, +4 Spell Critical Strike Rating
[27777] = 2896, -- Stark Blood Garnet, ItemCode 27777, +8 Spell Damage
[27812] = 2924, -- Stark Blood Garnet, ItemCode 27812, +8 Spell Damage
[28557] = 2970, -- Swift Starfire Diamond, ItemCode 28557, +12 Spell Damage and Minor Run Speed Increase
[28556] = 2969, -- Swift Windfire Diamond, ItemCode 28556, +20 Attack Power and Minor Run Speed Increase
[32634] = 3156, -- Unstable Amethyst, ItemCode 32634, +8 Attack Power and +6 Stamina
[32635] = 3157, -- Unstable Peridot, ItemCode 32635,
[32636] = 3158, -- Unstable Sapphire, ItemCode 32636
[32637] = 3159, -- Unstable Citrine, ItemCode 32637, +8 Attack Power
[32638] = 3160, -- Unstable Topaz, ItemCode 32638
[32639] = 3161, -- Unstable Talasite, ItemCode 32639
-- WotLK unique-equipped
[42701] = 3749, -- Enchanted Pearl, +4 all stats, ItemCode 42701
[42702] = 3750, -- Enchanted Tear, +6 all stats, ItemCode 42702
[44066] = 3792, -- Kharmaa's Grace, +20 resilience, ItemCode 44066
-- WotLK JC Prismatics (unique-equipped x 3)
[36766] = "PRISM3", -- Bright Dragon's Eye, 54att, ItemCode 36766
[36767] = "PRISM3", -- Solid Dragon's Eye, 41stam, ItemCode 36767
[42142] = "PRISM3", -- Bold Dragon's Eye, 27str, ItemCode 42142
[42143] = "PRISM3", -- Delicate Dragon's Eye, 27agi, ItemCode 42143
[42144] = "PRISM3", -- Runed Dragon's Eye, 32spell, ItemCode 42144
[42145] = "PRISM3", -- Sparkling Dragon's Eye, 27spi, ItemCode 42145
[42146] = "PRISM3", -- Lustrous Dragon's Eye, 11mp5, ItemCode 42146
[42148] = "PRISM3", -- Brilliant Dragon's Eye, 27int, ItemCode 42148
[42149] = "PRISM3", -- Smooth Dragon's Eye, 27crit, ItemCode 42149
[42150] = "PRISM3", -- Quick Dragon's Eye, 27haste, ItemCode 42150
[42151] = "PRISM3", -- Subtle Dragon's Eye, 27dodge, ItemCode 42151
[42152] = "PRISM3", -- Flashing Dragon's Eye, 27parry, ItemCode 42152
[42153] = "PRISM3", -- Fractured Dragon's Eye, 27armorpen, ItemCode 42153
[42154] = "PRISM3", -- Precise Dragon's Eye, 27exp, ItemCode 42154
[42155] = "PRISM3", -- Stormy Dragon's Eye, 32spellpen, ItemCode 42155
[42156] = "PRISM3", -- Rigid Dragon's Eye, 27hit, ItemCode 42156
[42157] = "PRISM3", -- Thick Dragon's Eye, 27def, ItemCode 42157
[42158] = "PRISM3", -- Mystic Dragon's Eye, 27resil, ItemCode 42158
-- Patch 3.2
[49110] = 49110, -- Nightmare Tear
-- Cataclysm JC
[52255] = "PRISM3", -- Bold Chimera's Eye
[52257] = "PRISM3", -- Brilliant Chimera's Eye
[52258] = "PRISM3", -- Delicate Chimera's Eye
[52259] = "PRISM3", -- Flashing Chimera's Eye
[52269] = "PRISM3", -- Fractured Chimera's Eye
[52267] = "PRISM3", -- Mystic Chimera's Eye
[52260] = "PRISM3", -- Precise Chimera's Eye
[52268] = "PRISM3", -- Quick Chimera's Eye
[52264] = "PRISM3", -- Rigid Chimera's Eye
[52266] = "PRISM3", -- Smooth Chimera's Eye
[52261] = "PRISM3", -- Solid Chimera's Eye
[52262] = "PRISM3", -- Sparkling Chimera's Eye
[52263] = "PRISM3", -- Stormy Chimera's Eye
[52265] = "PRISM3", -- Subtle Chimera's Eye
-- MoP JC
[83141] = "FACET2", -- Bold Serpent's Eye
[83142] = "FACET2", -- Quick Serpent's Eye
[83143] = "FACET2", -- Fractured Serpent's Eye
[83144] = "FACET2", -- Rigid Serpent's Eye
[83145] = "FACET2", -- Subtle Serpent's Eye
[83146] = "FACET2", -- Smooth Serpent's Eye
[83147] = "FACET2", -- Precise Serpent's Eye
[83148] = "FACET2", -- Solid Serpent's Eye
[83149] = "FACET2", -- Sparkling Serpent's Eye
[83150] = "FACET2", -- Brilliant Serpent's Eye
[83151] = "FACET2", -- Delicate Serpent's Eye
[83152] = "FACET2", -- Flashing Serpent's Eye
-- MoP Cogwheel
[77540] = 77540, -- Subtle Tinker's Gear
[77541] = 77541, -- Smooth Tinker's Gear
[77542] = 77542, -- Quick Tinker's Gear
[77543] = 77543, -- Precise Tinker's Gear
[77544] = 77544, -- Flashing Tinker's Gear
[77545] = 77545, -- Rigid Tinker's Gear
[77546] = 77546, -- Sparkling Tinker's Gear
[77547] = 77547, -- Fractured Tinker's Gear
-- MoP JC
[93404] = "FACET2", -- Resplendent
[93405] = "FACET2", -- Lucent
[93406] = "FACET2", -- Willful
[93408] = "FACET2", -- Tense
[93409] = "FACET2", -- Assassin's
[93410] = "FACET2", -- Mysterious
}
StaticPopupDialogs.OUTFITTER_CANT_RELOADUI =
{
text = Outfitter.cCantReloadUI,
button1 = OKAY,
OnAccept = function() end,
OnCancel = function() end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
showAlert = 1,
}
StaticPopupDialogs.OUTFITTER_SERVER_FULL =
{
text = Outfitter.cTooManyServerOutfits,
button1 = OKAY,
OnAccept = function() end,
OnCancel = function() end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
showAlert = 1,
}
StaticPopupDialogs.OUTFITTER_CANT_SET_ICON =
{
text = Outfitter.cCantSetIcon,
button1 = Outfitter.cChangeIcon,
button2 = CANCEL,
OnAccept = function() end,
OnCancel = function() end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
showAlert = 1,
}
StaticPopupDialogs.OUTFITTER_CONFIRM_DELETE =
{
text = Outfitter.cConfirmDeleteMsg,
button1 = DELETE,
button2 = CANCEL,
OnAccept = function() Outfitter:DeleteSelectedOutfit() end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1
}
StaticPopupDialogs.OUTFITTER_CONFIRM_REBUILD =
{
text = Outfitter.cConfirmRebuildMsg,
button1 = Outfitter.cRebuild,
button2 = CANCEL,
OnAccept = function() Outfitter:RebuildOutfit(Outfitter.OutfitToRebuild) Outfitter.OutfitToRebuild = nil end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
}
StaticPopupDialogs.OUTFITTER_CONFIRM_SET_CURRENT =
{
text = Outfitter.cConfirmSetCurrentMsg,
button1 = Outfitter.cSetCurrent,
button2 = CANCEL,
OnAccept = function() Outfitter:SetOutfitToCurrent(Outfitter.OutfitToRebuild); Outfitter.OutfitToRebuild = nil end,
timeout = 0,
whileDead = 1,
hideOnEscape = 1,
}
Outfitter.cCategoryDescriptions =
{
Complete = Outfitter.cCompleteCategoryDescription,
Accessory = Outfitter.cAccessoryCategoryDescription,
OddsNEnds = Outfitter.cOddsNEndsCategoryDescription,
BoEs = Outfitter.cBoEsCategoryDescription,
}
Outfitter.cSlotNames =
{
-- First priority goes to armor
"HeadSlot",
"ShoulderSlot",
"ChestSlot",
"WristSlot",
"HandsSlot",
"WaistSlot",
"LegsSlot",
"FeetSlot",
-- Second priority goes to weapons
"MainHandSlot",
"SecondaryHandSlot",
-- Last priority goes to items with no durability
"BackSlot",
"NeckSlot",
"ShirtSlot",
"TabardSlot",
"Finger0Slot",
"Finger1Slot",
"Trinket0Slot",
"Trinket1Slot",
}
Outfitter.cSlotOrder = {}
for vIndex, vSlotName in ipairs(Outfitter.cSlotNames) do
Outfitter.cSlotOrder[vSlotName] = vIndex
end
Outfitter.cSlotDisplayNames =
{
HeadSlot = HEADSLOT,
NeckSlot = NECKSLOT,
ShoulderSlot = SHOULDERSLOT,
BackSlot = BACKSLOT,
ChestSlot = CHESTSLOT,
ShirtSlot = SHIRTSLOT,
TabardSlot = TABARDSLOT,
WristSlot = WRISTSLOT,
HandsSlot = HANDSSLOT,
WaistSlot = WAISTSLOT,
LegsSlot = LEGSSLOT,
FeetSlot = FEETSLOT,
Finger0Slot = Outfitter.cFinger0SlotName,
Finger1Slot = Outfitter.cFinger1SlotName,
Trinket0Slot = Outfitter.cTrinket0SlotName,
Trinket1Slot = Outfitter.cTrinket1SlotName,
MainHandSlot = MAINHANDSLOT,
SecondaryHandSlot = SECONDARYHANDSLOT,
}
Outfitter.cInvTypeToSlotName =
{
INVTYPE_2HWEAPON = {SlotName = "MainHandSlot", MetaSlotName = "TwoHandSlot"},
INVTYPE_BODY = {SlotName = "ShirtSlot"},
INVTYPE_CHEST = {SlotName = "ChestSlot"},
INVTYPE_CLOAK = {SlotName = "BackSlot"},
INVTYPE_FEET = {SlotName = "FeetSlot"},
INVTYPE_FINGER = {SlotName = "Finger0Slot"},
INVTYPE_HAND = {SlotName = "HandsSlot"},
INVTYPE_HEAD = {SlotName = "HeadSlot"},
INVTYPE_HOLDABLE = {SlotName = "SecondaryHandSlot"},
INVTYPE_LEGS = {SlotName = "LegsSlot"},
INVTYPE_NECK = {SlotName = "NeckSlot"},
INVTYPE_ROBE = {SlotName = "ChestSlot"},
INVTYPE_SHIELD = {SlotName = "SecondaryHandSlot"},
INVTYPE_SHOULDER = {SlotName = "ShoulderSlot"},
INVTYPE_TABARD = {SlotName = "TabardSlot"},
INVTYPE_TRINKET = {SlotName = "Trinket0Slot"},
INVTYPE_WAIST = {SlotName = "WaistSlot"},
INVTYPE_WEAPON = {SlotName = "MainHandSlot", MetaSlotName = "Weapon0Slot"},
INVTYPE_WEAPONMAINHAND = {SlotName = "MainHandSlot"},
INVTYPE_WEAPONOFFHAND = {SlotName = "SecondaryHandSlot"},
INVTYPE_WRIST = {SlotName = "WristSlot"},
INVTYPE_RANGED = {SlotName = "MainHandSlot"},
INVTYPE_RANGEDRIGHT = {SlotName = "MainHandSlot"},
INVTYPE_THROWN = {SlotName = "MainHandSlot"},
INVTYPE_RELIC = {SlotName = "MainHandSlot"},
}
Outfitter.cHalfAlternateStatSlot =
{
Trinket0Slot = "Trinket1Slot",
Finger0Slot = "Finger1Slot",
Weapon0Slot = "Weapon1Slot",
}
Outfitter.cFullAlternateStatSlot =
{
Trinket0Slot = "Trinket1Slot",
Trinket1Slot = "Trinket0Slot",
Finger0Slot = "Finger1Slot",
Finger1Slot = "Finger0Slot",
Weapon0Slot = "Weapon1Slot",
Weapon1Slot = "Weapon0Slot",
}
Outfitter.cCategoryOrder =
{
"Complete",
"Accessory"
}
Outfitter.cItemAliases =
{
[18608] = 18609, -- Benediction -> Anathema
[18609] = 18608, -- Anathema -> Benediction
[17223] = 17074, -- Thunderstrike -> Shadowstrike
[17074] = 17223, -- Shadowstrike -> Thunderstrike
[46069] = 46106, -- Alliance Lance -> Argent Lance
[46070] = 46106, -- Horde Lance -> Argent Lance
[46106] = 46069, -- Argent Lance -> Alliance Lance (will be replaced by Horde Lance at runtime)
}
Outfitter.cIgnoredUnusedItems =
{
[2901] = "Mining Pick",
[5956] = "Blacksmith hammer",
[6219] = "Arclight Spanner",
[7005] = "Skinning Knife",
[7297] = "Morbent's Bane",
[10696] = "Enchanted Azsharite Felbane Sword",
[10697] = "Enchanted Azsharite Felbane Dagger",
[10698] = "Enchanted Azsharite Felbane Staff",
[20406] = "Twilight Cultist Mantle",
[20407] = "Twilight Cultist Robe",
[20408] = "Twilight Cultist Cowl",
[136350] = "Brumdysla, Hammer of Vrorsk"
}
Outfitter.cSmartOutfits =
{
-- {Name = Outfitter.cFishingOutfit, StatID = "FISHING", ScriptID = "Fishing"},
-- {Name = Outfitter.cHerbalismOutfit, StatID = "HERBALISM", ScriptID = "Herbalism"},
-- {Name = Outfitter.cMiningOutfit, StatID = "MINING", ScriptID = "Mining"},
-- {Name = Outfitter.cSkinningOutfit, StatID = "SKINNING", ScriptID = "Skinning"},
}
Outfitter.cSpecialIDEvents =
{
Bear = {Equip = "BEAR_FORM", Unequip = "NOT_BEAR_FORM"},
Cat = {Equip = "CAT_FORM", Unequip = "NOT_CAT_FORM"},
Travel = {Equip = "TRAVEL_FORM", Unequip = "NOT_TRAVEL_FORM"},
Moonkin = {Equip = "MOONKIN_FORM", Unequip = "NOT_MOONKIN_FORM"},
Tree = {Equip = "TREE_FORM", Unequip = "NOT_TREE_FORM"},
Prowl = {Equip = "STEALTH", Unequip = "NOT_STEALTH"},
Caster = {Equip = "CASTER_FORM", Unequip = "NOT_CASTER_FORM"},
Stealth = {Equip = "STEALTH", Unequip = "NOT_STEALTH"},
GhostWolf = {Equip = "GHOST_WOLF", Unequip = "NOT_GHOST_WOLF"},
Feigning = {Equip = "FEIGN_DEATH", Unequip = "NOT_FEIGN_DEATH"},
Evocate = {Equip = "EVOCATE", Unequip = "NOT_EVOCATE"},
Dining = {Equip = "DINING", Unequip = "NOT_DINING"},
City = {Equip = "CITY", Unequip = "NOT_CITY"},
Riding = {Equip = "MOUNTED", Unequip = "NOT_MOUNTED"},
Swimming = {Equip = "SWIMMING", Unequip = "NOT_SWIMMING"},
Spirit = {Equip = "SPIRIT_REGEN", Unequip = "NOT_SPIRIT_REGEN"},
ArgentDawn = {Equip = "ARGENT_DAWN", Unequip = "NOT_ARGENT_DAWN"},
Battleground = {Equip = "BATTLEGROUND", Unequip = "NOT_BATTLEGROUND"},
AB = {Equip = "BATTLEGROUND_AB", Unequip = "NOT_BATTLEGROUND_AB"},
AV = {Equip = "BATTLEGROUND_AV", Unequip = "NOT_BATTLEGROUND_AV"},
WSG = {Equip = "BATTLEGROUND_WSG", Unequip = "NOT_BATTLEGROUND_WSG"},
EotS = {Equip = "BATTLEGROUND_EOTS", Unequip = "NOT_BATTLEGROUND_EOTS"},
SotA = {Equip = "BATTLEGROUND_SOTA", Unequip = "NOT_BATTLEGROUND_SOTA"},
IoC = {Equip = "BATTLEGROUND_IOC", Unequip = "NOT_BATTLEGROUND_IOC"},
Wintergrasp = {Equip = "BATTLEGROUND_WG", Unequip = "NOT_BATTLEGROUND_WG"},
Sewers = {Equip = "BATTLEGROUND_SEWERS", Unequip = "NOT_BATTLEGROUND_SEWERS"},
Gilneas = {Equip = "BATTLEGROUND_GILNEAS", Unequip = "NOT_BATTLEGROUND_GILNEAS"},
TwinPeaks = {Equip = "BATTLEGROUND_TWINPEAKS", Unequip = "NOT_BATTLEGROUND_TWINPEAKS"},
RingOfValor = {Equip = "BATTLEGROUND_ROV", Unequip = "NOT_BATTLEGROUND_ROV"},
Arena = {Equip = "BATTLEGROUND_ARENA", Unequip = "NOT_BATTLEGROUND_ARENA"},
BladesEdgeArena = {Equip = "BATTLEGROUND_BLADESEDGE", Unequip = "NOT_BATTLEGROUND_BLADESEDGE"},
NagrandArena = {Equip = "BATTLEGROUND_NAGRAND", Unequip = "NOT_BATTLEGROUND_NAGRAND"},
LordaeronArena = {Equip = "BATTLEGROUND_LORDAERON", Unequip = "NOT_BATTLEGROUND_LORDAERON"},
}
Outfitter.cClassSpecialOutfits =
{
WARRIOR =
{
},
DRUID =
{
{Name = Outfitter.cDruidCasterForm, ScriptID = "Caster"},
{Name = Outfitter.cDruidBearForm, ScriptID = "Bear"},
{Name = Outfitter.cDruidCatForm, ScriptID = "Cat"},
{Name = Outfitter.cDruidTravelForm, ScriptID = "Travel"},
{Name = Outfitter.cDruidMoonkinForm, ScriptID = "Moonkin"},
{Name = Outfitter.cDruidTreeOfLifeForm, ScriptID = "Tree"},