Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Copyright (C) IceQ1337, 2018 - All Rights Reserved
- -- https://wow.curseforge.com/projects/advanced-tabards
- -- Addon Variables
- AT = {};
- AT.AddonName = GetAddOnMetadata("AdvancedTabards", "Title");
- AT.AddonVersion = GetAddOnMetadata("AdvancedTabards", "Version");
- AT.AddonAuthor = GetAddOnMetadata("AdvancedTabards", "Author");
- AT.AddonNotes = GetAddOnMetadata("AdvancedTabards", "Notes");
- AT.Settings = {};
- AT.Tabards = {
- ["5976"] = {FACTION = 1168}, -- 1 Guild Tabard (Friendly-Exalted)
- ["20132"] = {FACTION = 509}, -- 1 Arathor Battle Tabard (Exalted)
- ["20131"] = {FACTION = 510}, -- 1 Battle Tabard of the Defilers (Exalted)
- ["71636"] = {FACTION = 909}, -- 1 Monstrous Egg
- ["71638"] = {FACTION = 909}, -- 1 Ornate Weapon
- ["23999"] = {FACTION = 946}, -- 2 Honor Hold Tabard (Exalted)
- ["129948"] = {FACTION = 946}, -- 2 Honor Hold BoA 500
- ["24004"] = {FACTION = 947}, -- 2 Thrallmar Tabard (Exalted)
- ["129947"] = {FACTION = 947}, -- 2 Thrallmar BoA 500
- ["31773"] = {FACTION = 941}, -- 2 Mag'har Tabard (Exalted)
- ["31774"] = {FACTION = 978}, -- 2 Kurenai Tabard (Exalted)
- ["31775"] = {FACTION = 970}, -- 2 Sporeggar Tabard (Exalted)
- ["31776"] = {FACTION = 933}, -- 2 Consortium Tabard (Exalted)
- ["129945"] = {FACTION = 933}, -- 2 Consortium BoA 500
- ["31777"] = {FACTION = 989}, -- 2 Keepers of Time Tabard (Exalted)
- ["129950"] = {FACTION = 989}, -- 2 Keepers of Time BoA 500
- ["31778"] = {FACTION = 1011}, -- 2 Lower City Tabard (Exalted)
- ["129951"] = {FACTION = 1011}, -- 2 Lower City BoA 500
- ["31779"] = {FACTION = 932}, -- 2 Aldor Tabard (Exalted)
- ["31780"] = {FACTION = 934}, -- 2 Scryers Tabard (Exalted)
- ["31781"] = {FACTION = 935}, -- 2 Sha'tar Tabard (Exalted)
- ["129946"] = {FACTION = 935}, -- 2 Sha'tar BoA 500
- ["31804"] = {FACTION = 942}, -- 2 Cenarion Expedition Tabard (Exalted)
- ["129949"] = {FACTION = 942}, -- 2 Cenarion Expedition BoA 500
- ["32445"] = {FACTION = 1031}, -- 2 Skyguard Tabard (Exalted)
- ["32828"] = {FACTION = 1038}, -- 2 Ogri'la Tabard (Exalted)
- ["35221"] = {FACTION = 1077}, -- 2 Shattered Sun Tabard (Exalted)
- ["43154"] = {FACTION = 1106}, -- 3 Argent Crusade Tabard (Exalted)
- ["129942"] = {FACTION = 1106}, -- 3 Argent Crusade BoA 500
- ["43155"] = {FACTION = 1098}, -- 3 Ebon Blade Tabard (Exalted)
- ["129941"] = {FACTION = 1098}, -- 3 Ebon Blade BoA 500
- ["43157"] = {FACTION = 1090}, -- 3 Kirin Tor Tabard (Friendly-Exalted)
- ["129940"] = {FACTION = 1090}, -- 3 Kirin Tor BoA 500
- ["43156"] = {FACTION = 1091}, -- 3 Wyrmrest Accord Tabard (Exalted)
- ["129944"] = {FACTION = 1091}, -- 3 Wyrmrest Accord BoA 500
- ["129955"] = {FACTION = 1037}, -- 3 Alliance Vanguard BoA 500
- ["129954"] = {FACTION = 1052}, -- 3 Horde Expedition BoA 500
- ["129943"] = {FACTION = 1119}, -- 3 Sons Of Hodir BoA 500
- ["45574"] = {FACTION = 72}, -- 3 Stormwind Tabard (Friendly-Exalted)
- ["45577"] = {FACTION = 47}, -- 3 Ironforge Tabard (Friendly-Exalted)
- ["45578"] = {FACTION = 54}, -- 3 Gnomeregan Tabard (Friendly-Exalted)
- ["45579"] = {FACTION = 69}, -- 3 Darnassus Tabard (Friendly-Exalted)
- ["45580"] = {FACTION = 930}, -- 3 Exodar Tabard (Friendly-Exalted)
- ["45581"] = {FACTION = 76}, -- 3 Orgrimmar Tabard (Friendly-Exalted)
- ["45582"] = {FACTION = 530}, -- 3 Darkspear Tabard (Friendly-Exalted)
- ["45583"] = {FACTION = 68}, -- 3 Undercity Tabard (Friendly-Exalted)
- ["45584"] = {FACTION = 81}, -- 3 Thunder Bluff Tabard (Friendly-Exalted)
- ["45585"] = {FACTION = 911}, -- 3 Silvermoon City Tabard (Friendly-Exalted)
- ["63378"] = {FACTION = 1178}, -- 4 Hellscream's Reach Tabard (Exalted)
- ["63379"] = {FACTION = 1177}, -- 4 Baradin's Wardens Tabard (Exalted)
- ["64882"] = {FACTION = 1134}, -- 4 Gilneas Tabard (Friendly-Exalted)
- ["64884"] = {FACTION = 1133}, -- 4 Bilgewater Cartel Tabard (Friendly-Exalted)
- ["65904"] = {FACTION = 1173}, -- 4 Ramkahen Tabard (Friendly-Exalted)
- ["133154"] = {FACTION = 1173}, -- 4 Ramkahen BoA 500
- ["65905"] = {FACTION = 1135}, -- 4 Earthen Ring Tabard (Friendly-Exalted)
- ["133159"] = {FACTION = 1135}, -- 4 Earthen Ring BoA 500
- ["65906"] = {FACTION = 1158}, -- 4 Guardians of Hyjal Tabard (Friendly-Exalted)
- ["133152"] = {FACTION = 1158}, -- 4 Guardians of Hyjal BoA 500
- ["65907"] = {FACTION = 1171}, -- 4 Therazane Tabard (Friendly-Exalted)
- ["133160"] = {FACTION = 1171}, -- 4 Therazane BoA 500
- ["65908"] = {FACTION = 1174}, -- 4 Wildhammer Clan Tabard (Friendly-Exalted)
- ["133151"] = {FACTION = 1174}, -- 4 Wildhammer Clan BoA 500
- ["65909"] = {FACTION = 1172}, -- 4 Dragonmaw Clan Tabard (Friendly-Exalted)
- ["133150"] = {FACTION = 1172}, -- 4 Dragonmaw Clan BoA 500
- ["69209"] = {FACTION = 1168}, -- 4 Illustrious Guild Tabard (Honored-Exalted)
- ["69210"] = {FACTION = 1168}, -- 4 Renowned Guild Tabard (Revered-Exalted)
- ["83079"] = {FACTION = 1353}, -- 5 Tushui Tabard (Friendly-Exalted)
- ["83080"] = {FACTION = 1352}, -- 5 Huojin Tabard (Friendly-Exalted)
- ["89401"] = {FACTION = 1302}, -- 5 Anglers Tabard (Exalted)
- ["143946"] = {FACTION = 1302}, -- 5 Anglers BoA 300
- ["89799"] = {FACTION = 1341}, -- 5 August Celestials Tabard (Exalted)
- ["94225"] = {FACTION = 1341}, -- 5 August Celestials BoA 1000
- ["143938"] = {FACTION = 1341}, -- 5 August Celestials BoA 300
- ["89797"] = {FACTION = 1269}, -- 5 Golden Lotus Tabard (Exalted)
- ["94227"] = {FACTION = 1269}, -- 5 Golden Lotus BoA 1000
- ["90815"] = {FACTION = 1269}, -- 5 Golden Lotus BoA ??
- ["90816"] = {FACTION = 1269}, -- 5 Golden Lotus BoA ??
- ["143937"] = {FACTION = 1269}, -- 5 Golden Lotus BoA 300
- ["95591"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive Tabard (Exalted)
- ["95489"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 25
- ["95490"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 250
- ["143940"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 300
- ["93168"] = {FACTION = 1376}, -- 5 Grand Armored Gryphon (Exalted)
- ["93231"] = {FACTION = 1376}, -- 5 Grand Commendation (Revered)
- ["143944"] = {FACTION = 1376}, -- 5 Operation: Shieldwall BoA 300
- ["89798"] = {FACTION = 1337}, -- 5 Klaxxi Tabard (Exalted)
- ["94226"] = {FACTION = 1337}, -- 5 Klaxxi BoA 1000
- ["143935"] = {FACTION = 1337}, -- 5 Klaxxi BoA 300
- ["89795"] = {FACTION = 1345}, -- 5 Lorewalkers Tabard (Exalted)
- ["89796"] = {FACTION = 1271}, -- 5 Cloud Serpent Tabard (Exalted)
- ["143942"] = {FACTION = 1271}, -- 5 Cloud Serpent BoA 300
- ["89800"] = {FACTION = 1270}, -- 5 Shado-Pan Tabard (Exalted)
- ["89317"] = {FACTION = 1270}, -- 5 Claw of Anger (Sha of Anger Drop)
- ["94223"] = {FACTION = 1270}, -- 5 Shado-Pan BoA 1000
- ["143936"] = {FACTION = 1270}, -- 5 Shado-Pan BoA 300
- ["95592"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught Tabard (Exalted)
- ["95488"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 250
- ["95487"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 25
- ["143939"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 300
- ["143943"] = {FACTION = 1375}, -- 5 Dominance Offensive BoA 300
- ["89784"] = {FACTION = 1272}, -- 5 Tillers Tabard (Exalted)
- ["143941"] = {FACTION = 1272}, -- 5 Tillers BoA 300
- ["79266"] = {FACTION = 1282}, -- 5 Tillers, FishFellreed [Swap \/ To Change Rep Target]
- ["79266"] = {FACTION = 1275}, -- 5 Tillers, Ella [Swap /\ To Change Rep Target]
- ["79267"] = {FACTION = 1278}, -- 5 Tillers, Sho [Swap \/ To Change Rep Target]
- ["79267"] = {FACTION = 1273}, -- 5 Tillers, Jogu The Drunk [Swap /\ To Change Rep Target]
- ["79265"] = {FACTION = 1276}, -- 5 Tillers, Old Hillpaw [Swap \/ To Change Rep Target]
- ["79265"] = {FACTION = 1277}, -- 5 Tillers, Chee Chee [Swap /\ To Change Rep Target]
- ["79264"] = {FACTION = 1279}, -- 5 Tillers, Haohan [Swap \/ To Change Rep Target]
- ["79264"] = {FACTION = 1280}, -- 5 Tillers, Tina Mudclaw [Swap /\ To Change Rep Target]
- ["79268"] = {FACTION = 1283}, -- 5 Tillers, Farmer Fung [Swap \/ To Change Rep Target]
- ["79268"] = {FACTION = 1281}, -- 5 Tillers, Gina Mudclaw [Swap /\ To Change Rep Target]
- ["97131"] = {FACTION = 1435}, -- 5 Shado-Pan Assault Tabard (Exalted)
- ["95496"] = {FACTION = 1435}, -- 5 Shado-Pan Assault BoA 100
- ["143945"] = {FACTION = 1435}, -- 5 Shado-Pan Assault BoA 300
- ["143947"] = {FACTION = 1492}, -- 5 Emperor Shaohao BoA 500
- ["119136"] = {FACTION = 1515}, -- 6 Arakkoa Outcasts Tabard (Exalted)
- ["167924"] = {FACTION = 1515}, -- 6 Arakkoa Outcasts BoA 300
- ["119135"] = {FACTION = 1731}, -- 6 Council of Exarchs Tabard (Exalted)
- ["167929"] = {FACTION = 1731}, -- 6 Council of Exarchs BoA 300
- ["119133"] = {FACTION = 1445}, -- 6 Frostwolf Tabard (Exalted)
- ["167928"] = {FACTION = 1445}, -- 6 Frostwolf BoA 300
- ["119138"] = {FACTION = 1708}, -- 6 Laughing Skull Orcs Tabard (Exalted)
- ["167930"] = {FACTION = 1708}, -- 6 Laughing Skull Orcs BoA 300
- ["119140"] = {FACTION = 1710}, -- 6 Sha'tari Defense Tabard (Exalted)
- ["167932"] = {FACTION = 1710}, -- 6 Sha'tari Defense BoA 300
- ["119137"] = {FACTION = 1711}, -- 6 Steamwheedle Society Tabard (Exalted)
- ["167926"] = {FACTION = 1711}, -- 6 Steamwheedle Society BoA 300
- ["115518"] = {FACTION = 1681}, -- 6 Vol'jin's Spear Tabard (Exalted)
- ["120148"] = {FACTION = 1681}, -- 6 Ensignia of Vol'jin's Spear 200
- ["115517"] = {FACTION = 1682}, -- 6 Wrynn's Vanguard Tabard (Exalted)
- ["120149"] = {FACTION = 1682}, -- 6 Ensignia of Wrynn's Vanguard 200
- ["128450"] = {FACTION = 1849}, -- 6 Order of the Awakened Tabard (Exalted)
- ["167925"] = {FACTION = 1849}, -- 6 Order of the Awakened BoA 300
- ["128449"] = {FACTION = 1850}, -- 6 Saberstalkers Tabard (Exalted)
- ["167927"] = {FACTION = 1850}, -- 6 Saberstalkers BoA 300
- ["128526"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters Mount
- ["128471"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters Toy
- ["168017"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters BoA 300
- ["128527"] = {FACTION = 1847}, -- 6 Hand of the Prophet Mount
- ["128462"] = {FACTION = 1847}, -- 6 Hand of the Prophet Toy
- ["168018"] = {FACTION = 1847}, -- 6 Hand of the Prophet BoA 300
- ["140575"] = {FACTION = 1859}, -- 7 Nightfallen Tabard (Exalted)
- ["139026"] = {FACTION = 1859}, -- 7 Nightfallen BoP 250
- ["140260"] = {FACTION = 1859}, -- 7 Nightfallen BoP 25
- ["141343"] = {FACTION = 1859}, -- 7 Nightfallen BoA 250
- ["141870"] = {FACTION = 1859}, -- 7 Nightfallen BoP 100
- ["141992"] = {FACTION = 1859}, -- 7 Nightfallen BoP 750
- ["146940"] = {FACTION = 1859}, -- 7 Nightfallen BoP 250
- ["146946"] = {FACTION = 1859}, -- 7 Nightfallen BoA 250
- ["147413"] = {FACTION = 1859}, -- 7 Nightfallen BoP 750
- ["147416"] = {FACTION = 1859}, -- 7 Nightfallen BoP 100
- ["150930"] = {FACTION = 1859}, -- 7 Nightfallen BoA 750
- ["140576"] = {FACTION = 1828}, -- 7 Highmountain Tabard (Exalted)
- ["139024"] = {FACTION = 1828}, -- 7 Highmountain BoP 250
- ["141341"] = {FACTION = 1828}, -- 7 Highmountain BoA 250
- ["141990"] = {FACTION = 1828}, -- 7 Highmountain BoP 1500
- ["146938"] = {FACTION = 1828}, -- 7 Highmountain BoP 250
- ["146944"] = {FACTION = 1828}, -- 7 Highmountain BoA 250
- ["147412"] = {FACTION = 1828}, -- 7 Highmountain BoP 1500
- ["150928"] = {FACTION = 1828}, -- 7 Highmountain BoA 1500
- ["140577"] = {FACTION = 1900}, -- 7 Farondis Tabard (Exalted)
- ["139023"] = {FACTION = 1900}, -- 7 Farondis BoP 250
- ["141340"] = {FACTION = 1900}, -- 7 Farondis BoA 250
- ["141989"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
- ["146937"] = {FACTION = 1900}, -- 7 Farondis BoP 250
- ["146943"] = {FACTION = 1900}, -- 7 Farondis BoA 250
- ["147410"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
- ["150927"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
- ["140578"] = {FACTION = 1883}, -- 7 Dreamweavers Tabard (Exalted)
- ["139021"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 250
- ["141339"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 250
- ["141988"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 1500
- ["146936"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 250
- ["146942"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 250
- ["147411"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 1500
- ["150926"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 1500
- ["140579"] = {FACTION = 1948}, -- 7 Valarjar Tabard (Exalted)
- ["139020"] = {FACTION = 1948}, -- 7 Valarjar BoP 250
- ["141338"] = {FACTION = 1948}, -- 7 Valarjar BoA 250
- ["141987"] = {FACTION = 1948}, -- 7 Valarjar BoP 1500
- ["146935"] = {FACTION = 1948}, -- 7 Valarjar BoP 250
- ["146941"] = {FACTION = 1948}, -- 7 Valarjar BoA 250
- ["147414"] = {FACTION = 1948}, -- 7 Valarjar BoP 1500
- ["150925"] = {FACTION = 1948}, -- 7 Valarjar BoA 1500
- ["140580"] = {FACTION = 1894}, -- 7 Wardens Tabard (Exalted)
- ["139025"] = {FACTION = 1894}, -- 7 Wardens BoP 250
- ["141342"] = {FACTION = 1894}, -- 7 Wardens BoA 250
- ["141991"] = {FACTION = 1894}, -- 7 Wardens BoP 750
- ["141992"] = {FACTION = 1894}, -- 7 Wardens BoP 750
- ["146939"] = {FACTION = 1894}, -- 7 Wardens BoP 250
- ["146945"] = {FACTION = 1894}, -- 7 Wardens BoA 250
- ["147415"] = {FACTION = 1894}, -- 7 Wardens BoP 1500
- ["150929"] = {FACTION = 1894}, -- 7 Wardens BoA 1500
- ["147205"] = {FACTION = 2045}, -- 7 Legionfall Tabard (Exalted)
- ["146949"] = {FACTION = 2045}, -- 7 Legionfall BoP 250
- ["146950"] = {FACTION = 2045}, -- 7 Legionfall BoA 250
- ["147727"] = {FACTION = 2045}, -- 7 Legionfall BoP 750
- ["152464"] = {FACTION = 2045}, -- 7 Legionfall BoP 750
- ["152399"] = {FACTION = 2165}, -- 7 The Light Tabard (Exalted)
- ["152955"] = {FACTION = 2165}, -- 7 The Light BoA 750
- ["152956"] = {FACTION = 2165}, -- 7 The Light BoA 750
- ["152957"] = {FACTION = 2165}, -- 7 The Light BoA 250
- ["152958"] = {FACTION = 2165}, -- 7 The Light BoP 250
- ["152669"] = {FACTION = 2170}, -- 7 Argussian Reach Tabard (Exalted)
- ["152954"] = {FACTION = 2170}, -- 7 Argussian Reach BoA 750
- ["152959"] = {FACTION = 2170}, -- 7 Argussian Reach BoP 250
- ["152960"] = {FACTION = 2170}, -- 7 Argussian Reach BoA 250
- ["152961"] = {FACTION = 2170}, -- 7 Argussian Reach BoP 750
- ["153113"] = {FACTION = 1948}, -- 7 All BoA 1000
- ["157758"] = {FACTION = 2170}, -- 7 Ren'dorei Tabard (Void Elf Allied Race)
- ["157759"] = {FACTION = 1859}, -- 7 Shal'dorei Tabard (Nightborne Allied Race)
- ["160540"] = {FACTION = 2160}, -- 8 Proudmoore Admiralty Tabard (Exalted)
- ["153661"] = {FACTION = 2160}, -- 8 Proudmoore Admiralty Contract 10/WQ
- ["163201"] = {FACTION = 2160}, -- 8 Gnoll Targeting Barrel (Honored)
- ["163200"] = {FACTION = 2160}, -- 8 Cursed Spyglass (Revered)
- ["161911"] = {FACTION = 2160}, -- 8 Reins of the Admiralty Stallion (Exalted)
- ["160541"] = {FACTION = 2161}, -- 8 Order of Embers Tabard (Exalted)
- ["153662"] = {FACTION = 2161}, -- 8 Order of Embers Contract 10/WQ
- ["163206"] = {FACTION = 2161}, -- 8 Revered: Weary Spirit Binding (Revered)
- ["161910"] = {FACTION = 2161}, -- 8 Exalted: Reins of the Smoky Charger (Exalted)
- ["160542"] = {FACTION = 2162}, -- 8 Storm's Wake Tabard (Exalted)
- ["153663"] = {FACTION = 2162}, -- 8 Storm's Wake Contract 10/WQ
- ["162626"] = {FACTION = 2162}, -- 8 Tome of Polymorph: Bumblebee (Revered)
- ["163463"] = {FACTION = 2162}, -- 8 Dead Ringer (Revered)
- ["163490"] = {FACTION = 2162}, -- 8 Pair of Bee Wings (Revered)
- ["161912"] = {FACTION = 2162}, -- 8 Reins of the Dapple Gray (Exalted)
- ["160539"] = {FACTION = 2159}, -- 8 Tabard of the 7th Legion (Exalted)
- ["165016"] = {FACTION = 2159}, -- 8 7th Legion Contract 10/WQ
- ["163778"] = {FACTION = 2159}, -- 8 Lil' Siege Tower (Revered)
- ["160546"] = {FACTION = 2103}, -- 8 Tabard of the Zandalari Empire (Exalted)
- ["153664"] = {FACTION = 2103}, -- 8 Zandalari Empire Contract 10/WQ
- ["163210"] = {FACTION = 2103}, -- 8 Party Totem (Revered)
- ["163210"] = {FACTION = 2103}, -- 8 Reins of the Cobalt Pterrordax (Exalted)
- ["160547"] = {FACTION = 2156}, -- 8 Talanji's Expedition Tabard (Exalted)
- ["153665"] = {FACTION = 2156}, -- 8 Talanji's Expedition Contract 10/WQ
- ["163501"] = {FACTION = 2156}, -- 8 Tragg the Curious (Revered)
- ["161774"] = {FACTION = 2156}, -- 8 Reins of the Expedition Bloodswarmer (Exalted)
- ["160548"] = {FACTION = 2158}, -- 8 Tabard of the Voldunai (Exalted)
- ["153666"] = {FACTION = 2158}, -- 8 Voldunai Contract 10/WQ
- ["163211"] = {FACTION = 2158}, -- 8 Akunda's Firesticks (Honored)
- ["159753"] = {FACTION = 2158}, -- 8 Desert Flute (Honored)
- ["161773"] = {FACTION = 2158}, -- 8 Reins of the Alabaster Hyena (Exalted)
- ["160545"] = {FACTION = 2157}, -- 8 Tabard of the Honorbound (Exalted)
- ["165017"] = {FACTION = 2157}, -- 8 The Honorbound Contract 10/WQ
- ["163779"] = {FACTION = 2157}, -- 8 Lil' War Machine (Revered)
- ["160544"] = {FACTION = 2164}, -- 8 Champions of Azeroth Tabard (Exalted)
- ["153668"] = {FACTION = 2164}, -- 8 Champions of Azeroth Contract 10/WQ
- ["163515"] = {FACTION = 2164}, -- 8 Shard of Azerite (Revered)
- ["163555"] = {FACTION = 2164}, -- 8 Drop of Azerite (Revered)
- ["160543"] = {FACTION = 2163}, -- 8 Tabard of the Tortollan Seekers (Exalted)
- ["153667"] = {FACTION = 2163}, -- 8 Tortollan Seekers Contract 10/WQ
- ["163513"] = {FACTION = 2163}, -- 8 Cou'pa (Revered)
- };
- -- Text Globals
- TEXT_COLOR_RED = "|cFFFF0000";
- TEXT_COLOR_GREEN = "|cFF00FF00";
- TEXT_COLOR_YELLOW = "|cFFFFFF00";
- TEXT_COLOR_CYAN = "|cFF00FFFF";
- TEXT_COLOR_RESET = "|r";
- -- Chat MSG
- function AT.PrintShortMSG(msg)
- text = TEXT_COLOR_CYAN .. "AT > " .. TEXT_COLOR_RESET .. msg;
- DEFAULT_CHAT_FRAME:AddMessage(text);
- end
- function AT.PrintLongMSG(msg)
- text = TEXT_COLOR_CYAN .. AT.AddonName .. ": " .. TEXT_COLOR_RESET .. msg;
- DEFAULT_CHAT_FRAME:AddMessage(text);
- end
- -- Event Frame
- AT.eventFrame = CreateFrame("Frame", "AT_EVENTFRAME");
- AT.eventFrame:RegisterEvent("ADDON_LOADED");
- AT.eventFrame:RegisterEvent("PLAYER_LOGOUT");
- AT.eventFrame:RegisterEvent("PLAYER_EQUIPMENT_CHANGED");
- --AT.eventFrame:RegisterEvent("PLAYER_ENTERING_WORLD"); -- Entering World ( probably using in later updates )
- --AT.eventFrame:RegisterEvent("PLAYER_REGEN_ENABLED"); -- Out of Combat ( probably using in later updates )
- function AT_EventHandler(self, event, ...)
- local arg1, arg2 = ...;
- if event == "ADDON_LOADED" and arg1 == "AdvancedTabards" then
- local defaultSettings = {
- ["tooltips"] = true,
- ["autotrack"] = true
- };
- AT.Settings = _G["AT_Settings"] or defaultSettings;
- AT.PrintLongMSG("v" .. AT.AddonVersion .. " loaded successfully.");
- self:UnregisterEvent("ADDON_LOADED");
- elseif event == "PLAYER_LOGOUT" then
- _G["AT_Settings"] = AT.Settings;
- elseif event == "PLAYER_EQUIPMENT_CHANGED" then
- if not AT.Settings["autotrack"] then return; end
- local tabardSlotID, tabardTextureName = GetInventorySlotInfo("TabardSlot");
- if tabardSlotID then
- local tabardEquipped = GetInventoryItemID("Player", tabardSlotID);
- if tabardEquipped then
- local tabardID = tostring(tabardEquipped);
- if AT.Tabards[tabardID] then
- ExpandAllFactionHeaders();
- local factions = {};
- for x = 1, GetNumFactions() do
- factions[x] = {};
- factions[x].name, factions[x].description, factions[x].standingID, factions[x].barMin, factions[x].barMax,
- factions[x].barValue, factions[x].atWarWith, factions[x].canToggleAtWar, factions[x].isHeader, factions[x].isCollapsed,
- factions[x].hasRep, factions[x].isWatched, factions[x].isChild, factions[x].factionID, factions[x].hasBonusRepGain, factions[x].canBeLFGBonus = GetFactionInfo(x);
- end
- if AT.Tabards[tabardID].FACTION == 1168 and not IsInGuild() then
- AT.PrintShortMSG(TEXT_COLOR_RED .. "Automatic Tracking Failed! ( Not in Guild)");
- return;
- end
- for i, v in pairs(factions) do
- if factions[i].isWatched then return; end -- Faction is already watched
- if factions[i].standingID == 8 then return; end -- Already exalted with this faction
- if factions[i].factionID == AT.Tabards[tabardID].FACTION then
- SetWatchedFactionIndex(i);
- AT.PrintShortMSG("Automatic Tracking of: " .. TEXT_COLOR_GREEN .. factions[i].name);
- end
- end
- end
- end
- end
- end
- end
- AT.eventFrame:SetScript("OnEvent", AT_EventHandler);
- -- Hook Game Tooltip
- function AT.SetGameTooltip(tooltip)
- if not AT.Settings["tooltips"] then return; end
- local _, link = tooltip:GetItem();
- if not link then return; end
- local itemString = string.match(link, "item[%-?%d:]+");
- if itemString then
- local _, itemID = strsplit(":", itemString);
- if itemID then
- if AT.Tabards[itemID] then
- local itemFaction = AT.Tabards[itemID].FACTION;
- local name, description, standingID, barMin, barMax, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed, hasRep, isWatched, isChild, factionID, hasBonusRepGain, canBeLFGBonus = GetFactionInfoByID(itemFaction);
- local factionInfo;
- if standingID ~= 8 then -- Exalted Fix
- factionInfo = string.format("%s: %s / %s (%0.2f%%)", _G["FACTION_STANDING_LABEL" .. standingID], barValue - barMin, barMax - barMin, ((barValue - barMin) / (barMax - barMin)) * 100);
- else
- factionInfo = string.format("%s: %s / %s (%0.2f%%)", _G["FACTION_STANDING_LABEL" .. standingID], barMax, barMax, (barMax / barMax) * 100);
- end
- tooltip:AddLine("\n" .. name .. "\n" .. factionInfo .. "\n" .. "\n");
- end
- end
- end
- end
- GameTooltip:HookScript("OnTooltipSetItem", AT.SetGameTooltip);
- -- Toogle Tooltip
- function AT.ToggleTooltip()
- AT.Settings["tooltips"] = not AT.Settings["tooltips"];
- if AT.Settings["tooltips"] then
- AT.PrintShortMSG("Tooltips have been enabled!");
- else
- AT.PrintShortMSG("Tooltips have been disabled!");
- end
- end
- -- Toggle Automatic Tracking
- function AT.ToggleAutoTracking()
- AT.Settings["autotrack"] = not AT.Settings["autotrack"];
- if AT.Settings["autotrack"] then
- AT.PrintShortMSG("Automatic Tracking has been enabled!");
- else
- AT.PrintShortMSG("Automatic Tracking has been disabled!");
- end
- end
- -- Interface Options
- -- Main
- AT.Interface = {};
- AT.Interface.MainPanel = CreateFrame("Frame", "AT_OPTIONSFRAME", UIParent);
- AT.Interface.MainPanel.name = AT.AddonName;
- AT.Interface.MainPanel.title = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
- AT.Interface.MainPanel.title:SetPoint("TOPLEFT", 16, -16);
- AT.Interface.MainPanel.title:SetText(AT.AddonName);
- AT.Interface.MainPanel.notes = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
- AT.Interface.MainPanel.notes:SetPoint("TOPLEFT", AT.Interface.MainPanel.title, "BOTTOMLEFT", 0, -8);
- AT.Interface.MainPanel.notes:SetText("Notes:");
- AT.Interface.MainPanel.notes.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.MainPanel.notes.text:SetPoint("LEFT", AT.Interface.MainPanel.notes, "RIGHT", 8, 0);
- AT.Interface.MainPanel.notes.text:SetText(AT.AddonNotes);
- AT.Interface.MainPanel.author = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
- AT.Interface.MainPanel.author:SetPoint("TOPLEFT", AT.Interface.MainPanel.notes, "BOTTOMLEFT", 0, -8);
- AT.Interface.MainPanel.author:SetText("Author:");
- AT.Interface.MainPanel.author.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.MainPanel.author.text:SetPoint("LEFT", AT.Interface.MainPanel.author, "RIGHT", 8, 0);
- AT.Interface.MainPanel.author.text:SetText(AT.AddonAuthor);
- AT.Interface.MainPanel.version = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
- AT.Interface.MainPanel.version:SetPoint("TOPLEFT", AT.Interface.MainPanel.author, "BOTTOMLEFT", 0, -8);
- AT.Interface.MainPanel.version:SetText("Version:");
- AT.Interface.MainPanel.version.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.MainPanel.version.text:SetPoint("LEFT", AT.Interface.MainPanel.version, "RIGHT", 8, 0);
- AT.Interface.MainPanel.version.text:SetText(AT.AddonVersion);
- AT.Interface.MainPanel.url = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
- AT.Interface.MainPanel.url:SetPoint("TOPLEFT", AT.Interface.MainPanel.version, "BOTTOMLEFT", 0, -8);
- AT.Interface.MainPanel.url:SetText("URL:");
- AT.Interface.MainPanel.url.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.MainPanel.url.text:SetPoint("LEFT", AT.Interface.MainPanel.url, "RIGHT", 8, 0);
- AT.Interface.MainPanel.url.text:SetText("https://wow.curseforge.com/projects/advanced-tabards");
- InterfaceOptions_AddCategory(AT.Interface.MainPanel);
- -- General
- AT.Interface.GeneralPanel = CreateFrame("Frame");
- AT.Interface.GeneralPanel.name = "General";
- AT.Interface.GeneralPanel.parent = AT.Interface.MainPanel.name;
- AT.Interface.GeneralPanel.title = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
- AT.Interface.GeneralPanel.title:SetPoint("TOPLEFT", 16, -16);
- AT.Interface.GeneralPanel.title:SetText(AT.AddonName .. " - General Options");
- AT.Interface.GeneralPanel.toggletooltip = CreateFrame("CheckButton", "AT_TOGGLETOOLTP", AT.Interface.GeneralPanel, "ChatConfigCheckButtonTemplate");
- AT.Interface.GeneralPanel.toggletooltip:SetPoint("TOPLEFT", AT.Interface.GeneralPanel.title, "BOTTOMLEFT", 0, -8);
- AT.Interface.GeneralPanel.toggletooltip.tooltip = "Enable/Disable Tooltips";
- AT.Interface.GeneralPanel.toggletooltip:SetScript("OnClick", AT.ToggleTooltip);
- AT.Interface.GeneralPanel.toggletooltip.text = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.GeneralPanel.toggletooltip.text:SetPoint("LEFT", AT.Interface.GeneralPanel.toggletooltip, "RIGHT", 8, 0);
- AT.Interface.GeneralPanel.toggletooltip.text:SetText("Enable/Disable Tooltips");
- AT.Interface.GeneralPanel.toggleautotrack = CreateFrame("CheckButton", "AT_TOGGLEAUTOTRACK", AT.Interface.GeneralPanel, "ChatConfigCheckButtonTemplate");
- AT.Interface.GeneralPanel.toggleautotrack:SetPoint("TOPLEFT", AT.Interface.GeneralPanel.toggletooltip, "BOTTOMLEFT", 0, -8);
- AT.Interface.GeneralPanel.toggleautotrack.tooltip = "Enable/Disable Automatic Tracking";
- AT.Interface.GeneralPanel.toggleautotrack:SetScript("OnClick", AT.ToggleAutoTracking);
- AT.Interface.GeneralPanel.toggleautotrack.text = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
- AT.Interface.GeneralPanel.toggleautotrack.text:SetPoint("LEFT", AT.Interface.GeneralPanel.toggleautotrack, "RIGHT", 8, 0);
- AT.Interface.GeneralPanel.toggleautotrack.text:SetText("Enable/Disable Automatic Tracking");
- function AT.UpdateCheckButtons()
- AT.Interface.GeneralPanel.toggletooltip:SetChecked(AT.Settings["tooltips"]);
- AT.Interface.GeneralPanel.toggleautotrack:SetChecked(AT.Settings["autotrack"]);
- end
- AT.Interface.GeneralPanel:SetScript("OnShow", AT.UpdateCheckButtons);
- AT.Interface.GeneralPanel:SetScript("OnEnter", AT.UpdateCheckButtons); -- Ghetto way because OnLoad doesn't work for some reason
- InterfaceOptions_AddCategory(AT.Interface.GeneralPanel);
- -- Chat Commands
- SLASH_AT1 = "/at"
- function SlashCmdList.AT(msg, editbox)
- if msg == nil or msg == "" then
- AT.ToggleTooltip();
- end
- if msg == "autotrack" then
- AT.ToggleAutoTracking();
- end
- if msg == "help" then
- AT.PrintShortMSG("List of available Commands:");
- AT.PrintShortMSG("/at - Toggle Tooltips.");
- AT.PrintShortMSG("/at autotrack - Toggle Automatic Tracking.");
- end
- end
Add Comment
Please, Sign In to add comment