fr0z3night

zDEAD WoW Addon Edit - AdvancedTabards - C&P 14May

Feb 28th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.70 KB | None | 0 0
  1. -- Copyright (C) IceQ1337, 2018 - All Rights Reserved
  2. -- https://wow.curseforge.com/projects/advanced-tabards
  3.  
  4. -- Addon Variables
  5. AT = {};
  6. AT.AddonName = GetAddOnMetadata("AdvancedTabards", "Title");
  7. AT.AddonVersion = GetAddOnMetadata("AdvancedTabards", "Version");
  8. AT.AddonAuthor = GetAddOnMetadata("AdvancedTabards", "Author");
  9. AT.AddonNotes = GetAddOnMetadata("AdvancedTabards", "Notes");
  10. AT.Settings = {};
  11. AT.Tabards = {
  12. ["5976"] = {FACTION = 1168}, -- 1 Guild Tabard (Friendly-Exalted)
  13.  
  14. ["20132"] = {FACTION = 509}, -- 1 Arathor Battle Tabard (Exalted)
  15.  
  16. ["20131"] = {FACTION = 510}, -- 1 Battle Tabard of the Defilers (Exalted)
  17.  
  18. ["71636"] = {FACTION = 909}, -- 1 Monstrous Egg
  19. ["71638"] = {FACTION = 909}, -- 1 Ornate Weapon
  20.  
  21. ["23999"] = {FACTION = 946}, -- 2 Honor Hold Tabard (Exalted)
  22. ["129948"] = {FACTION = 946}, -- 2 Honor Hold BoA 500
  23.  
  24. ["24004"] = {FACTION = 947}, -- 2 Thrallmar Tabard (Exalted)
  25. ["129947"] = {FACTION = 947}, -- 2 Thrallmar BoA 500
  26.  
  27. ["31773"] = {FACTION = 941}, -- 2 Mag'har Tabard (Exalted)
  28.  
  29. ["31774"] = {FACTION = 978}, -- 2 Kurenai Tabard (Exalted)
  30.  
  31. ["31775"] = {FACTION = 970}, -- 2 Sporeggar Tabard (Exalted)
  32.  
  33. ["31776"] = {FACTION = 933}, -- 2 Consortium Tabard (Exalted)
  34. ["129945"] = {FACTION = 933}, -- 2 Consortium BoA 500
  35.  
  36. ["31777"] = {FACTION = 989}, -- 2 Keepers of Time Tabard (Exalted)
  37. ["129950"] = {FACTION = 989}, -- 2 Keepers of Time BoA 500
  38.  
  39. ["31778"] = {FACTION = 1011}, -- 2 Lower City Tabard (Exalted)
  40. ["129951"] = {FACTION = 1011}, -- 2 Lower City BoA 500
  41.  
  42. ["31779"] = {FACTION = 932}, -- 2 Aldor Tabard (Exalted)
  43.  
  44. ["31780"] = {FACTION = 934}, -- 2 Scryers Tabard (Exalted)
  45.  
  46. ["31781"] = {FACTION = 935}, -- 2 Sha'tar Tabard (Exalted)
  47. ["129946"] = {FACTION = 935}, -- 2 Sha'tar BoA 500
  48.  
  49. ["31804"] = {FACTION = 942}, -- 2 Cenarion Expedition Tabard (Exalted)
  50. ["129949"] = {FACTION = 942}, -- 2 Cenarion Expedition BoA 500
  51.  
  52. ["32445"] = {FACTION = 1031}, -- 2 Skyguard Tabard (Exalted)
  53.  
  54. ["32828"] = {FACTION = 1038}, -- 2 Ogri'la Tabard (Exalted)
  55.  
  56. ["35221"] = {FACTION = 1077}, -- 2 Shattered Sun Tabard (Exalted)
  57.  
  58. ["43154"] = {FACTION = 1106}, -- 3 Argent Crusade Tabard (Exalted)
  59. ["129942"] = {FACTION = 1106}, -- 3 Argent Crusade BoA 500
  60.  
  61. ["43155"] = {FACTION = 1098}, -- 3 Ebon Blade Tabard (Exalted)
  62. ["129941"] = {FACTION = 1098}, -- 3 Ebon Blade BoA 500
  63.  
  64. ["43157"] = {FACTION = 1090}, -- 3 Kirin Tor Tabard (Friendly-Exalted)
  65. ["129940"] = {FACTION = 1090}, -- 3 Kirin Tor BoA 500
  66.  
  67. ["43156"] = {FACTION = 1091}, -- 3 Wyrmrest Accord Tabard (Exalted)
  68. ["129944"] = {FACTION = 1091}, -- 3 Wyrmrest Accord BoA 500
  69.  
  70. ["129955"] = {FACTION = 1037}, -- 3 Alliance Vanguard BoA 500
  71.  
  72. ["129954"] = {FACTION = 1052}, -- 3 Horde Expedition BoA 500
  73.  
  74. ["129943"] = {FACTION = 1119}, -- 3 Sons Of Hodir BoA 500
  75.  
  76. ["45574"] = {FACTION = 72}, -- 3 Stormwind Tabard (Friendly-Exalted)
  77. ["45577"] = {FACTION = 47}, -- 3 Ironforge Tabard (Friendly-Exalted)
  78. ["45578"] = {FACTION = 54}, -- 3 Gnomeregan Tabard (Friendly-Exalted)
  79. ["45579"] = {FACTION = 69}, -- 3 Darnassus Tabard (Friendly-Exalted)
  80. ["45580"] = {FACTION = 930}, -- 3 Exodar Tabard (Friendly-Exalted)
  81.  
  82. ["45581"] = {FACTION = 76}, -- 3 Orgrimmar Tabard (Friendly-Exalted)
  83. ["45582"] = {FACTION = 530}, -- 3 Darkspear Tabard (Friendly-Exalted)
  84. ["45583"] = {FACTION = 68}, -- 3 Undercity Tabard (Friendly-Exalted)
  85. ["45584"] = {FACTION = 81}, -- 3 Thunder Bluff Tabard (Friendly-Exalted)
  86. ["45585"] = {FACTION = 911}, -- 3 Silvermoon City Tabard (Friendly-Exalted)
  87.  
  88. ["63378"] = {FACTION = 1178}, -- 4 Hellscream's Reach Tabard (Exalted)
  89.  
  90. ["63379"] = {FACTION = 1177}, -- 4 Baradin's Wardens Tabard (Exalted)
  91.  
  92. ["64882"] = {FACTION = 1134}, -- 4 Gilneas Tabard (Friendly-Exalted)
  93.  
  94. ["64884"] = {FACTION = 1133}, -- 4 Bilgewater Cartel Tabard (Friendly-Exalted)
  95.  
  96. ["65904"] = {FACTION = 1173}, -- 4 Ramkahen Tabard (Friendly-Exalted)
  97. ["133154"] = {FACTION = 1173}, -- 4 Ramkahen BoA 500
  98.  
  99. ["65905"] = {FACTION = 1135}, -- 4 Earthen Ring Tabard (Friendly-Exalted)
  100. ["133159"] = {FACTION = 1135}, -- 4 Earthen Ring BoA 500
  101.  
  102. ["65906"] = {FACTION = 1158}, -- 4 Guardians of Hyjal Tabard (Friendly-Exalted)
  103. ["133152"] = {FACTION = 1158}, -- 4 Guardians of Hyjal BoA 500
  104.  
  105. ["65907"] = {FACTION = 1171}, -- 4 Therazane Tabard (Friendly-Exalted)
  106. ["133160"] = {FACTION = 1171}, -- 4 Therazane BoA 500
  107.  
  108. ["65908"] = {FACTION = 1174}, -- 4 Wildhammer Clan Tabard (Friendly-Exalted)
  109. ["133151"] = {FACTION = 1174}, -- 4 Wildhammer Clan BoA 500
  110.  
  111. ["65909"] = {FACTION = 1172}, -- 4 Dragonmaw Clan Tabard (Friendly-Exalted)
  112. ["133150"] = {FACTION = 1172}, -- 4 Dragonmaw Clan BoA 500
  113.  
  114. ["69209"] = {FACTION = 1168}, -- 4 Illustrious Guild Tabard (Honored-Exalted)
  115. ["69210"] = {FACTION = 1168}, -- 4 Renowned Guild Tabard (Revered-Exalted)
  116.  
  117. ["83079"] = {FACTION = 1353}, -- 5 Tushui Tabard (Friendly-Exalted)
  118. ["83080"] = {FACTION = 1352}, -- 5 Huojin Tabard (Friendly-Exalted)
  119.  
  120. ["89401"] = {FACTION = 1302}, -- 5 Anglers Tabard (Exalted)
  121. ["143946"] = {FACTION = 1302}, -- 5 Anglers BoA 300
  122.  
  123. ["89799"] = {FACTION = 1341}, -- 5 August Celestials Tabard (Exalted)
  124. ["94225"] = {FACTION = 1341}, -- 5 August Celestials BoA 1000
  125. ["143938"] = {FACTION = 1341}, -- 5 August Celestials BoA 300
  126.  
  127. ["89797"] = {FACTION = 1269}, -- 5 Golden Lotus Tabard (Exalted)
  128. ["94227"] = {FACTION = 1269}, -- 5 Golden Lotus BoA 1000
  129. ["90815"] = {FACTION = 1269}, -- 5 Golden Lotus BoA ??
  130. ["90816"] = {FACTION = 1269}, -- 5 Golden Lotus BoA ??
  131. ["143937"] = {FACTION = 1269}, -- 5 Golden Lotus BoA 300
  132.  
  133. ["95591"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive Tabard (Exalted)
  134. ["95489"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 25
  135. ["95490"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 250
  136. ["143940"] = {FACTION = 1387}, -- 5 Kirin Tor Offensive BoA 300
  137.  
  138. ["93168"] = {FACTION = 1376}, -- 5 Grand Armored Gryphon (Exalted)
  139. ["93231"] = {FACTION = 1376}, -- 5 Grand Commendation (Revered)
  140. ["143944"] = {FACTION = 1376}, -- 5 Operation: Shieldwall BoA 300
  141.  
  142. ["89798"] = {FACTION = 1337}, -- 5 Klaxxi Tabard (Exalted)
  143. ["94226"] = {FACTION = 1337}, -- 5 Klaxxi BoA 1000
  144. ["143935"] = {FACTION = 1337}, -- 5 Klaxxi BoA 300
  145.  
  146. ["89795"] = {FACTION = 1345}, -- 5 Lorewalkers Tabard (Exalted)
  147.  
  148. ["89796"] = {FACTION = 1271}, -- 5 Cloud Serpent Tabard (Exalted)
  149. ["143942"] = {FACTION = 1271}, -- 5 Cloud Serpent BoA 300
  150.  
  151. ["89800"] = {FACTION = 1270}, -- 5 Shado-Pan Tabard (Exalted)
  152. ["89317"] = {FACTION = 1270}, -- 5 Claw of Anger (Sha of Anger Drop)
  153. ["94223"] = {FACTION = 1270}, -- 5 Shado-Pan BoA 1000
  154. ["143936"] = {FACTION = 1270}, -- 5 Shado-Pan BoA 300
  155.  
  156. ["95592"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught Tabard (Exalted)
  157. ["95488"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 250
  158. ["95487"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 25
  159. ["143939"] = {FACTION = 1388}, -- 5 Sunreaver Onslaught BoA 300
  160.  
  161. ["143943"] = {FACTION = 1375}, -- 5 Dominance Offensive BoA 300
  162.  
  163. ["89784"] = {FACTION = 1272}, -- 5 Tillers Tabard (Exalted)
  164. ["143941"] = {FACTION = 1272}, -- 5 Tillers BoA 300
  165.  
  166. ["79266"] = {FACTION = 1282}, -- 5 Tillers, FishFellreed [Swap \/ To Change Rep Target]
  167. ["79266"] = {FACTION = 1275}, -- 5 Tillers, Ella [Swap /\ To Change Rep Target]
  168.  
  169. ["79267"] = {FACTION = 1278}, -- 5 Tillers, Sho [Swap \/ To Change Rep Target]
  170. ["79267"] = {FACTION = 1273}, -- 5 Tillers, Jogu The Drunk [Swap /\ To Change Rep Target]
  171.  
  172. ["79265"] = {FACTION = 1276}, -- 5 Tillers, Old Hillpaw [Swap \/ To Change Rep Target]
  173. ["79265"] = {FACTION = 1277}, -- 5 Tillers, Chee Chee [Swap /\ To Change Rep Target]
  174.  
  175. ["79264"] = {FACTION = 1279}, -- 5 Tillers, Haohan [Swap \/ To Change Rep Target]
  176. ["79264"] = {FACTION = 1280}, -- 5 Tillers, Tina Mudclaw [Swap /\ To Change Rep Target]
  177.  
  178. ["79268"] = {FACTION = 1283}, -- 5 Tillers, Farmer Fung [Swap \/ To Change Rep Target]
  179. ["79268"] = {FACTION = 1281}, -- 5 Tillers, Gina Mudclaw [Swap /\ To Change Rep Target]
  180.  
  181. ["97131"] = {FACTION = 1435}, -- 5 Shado-Pan Assault Tabard (Exalted)
  182. ["95496"] = {FACTION = 1435}, -- 5 Shado-Pan Assault BoA 100
  183. ["143945"] = {FACTION = 1435}, -- 5 Shado-Pan Assault BoA 300
  184.  
  185. ["143947"] = {FACTION = 1492}, -- 5 Emperor Shaohao BoA 500
  186.  
  187. ["119136"] = {FACTION = 1515}, -- 6 Arakkoa Outcasts Tabard (Exalted)
  188. ["167924"] = {FACTION = 1515}, -- 6 Arakkoa Outcasts BoA 300
  189.  
  190. ["119135"] = {FACTION = 1731}, -- 6 Council of Exarchs Tabard (Exalted)
  191. ["167929"] = {FACTION = 1731}, -- 6 Council of Exarchs BoA 300
  192.  
  193. ["119133"] = {FACTION = 1445}, -- 6 Frostwolf Tabard (Exalted)
  194. ["167928"] = {FACTION = 1445}, -- 6 Frostwolf BoA 300
  195.  
  196. ["119138"] = {FACTION = 1708}, -- 6 Laughing Skull Orcs Tabard (Exalted)
  197. ["167930"] = {FACTION = 1708}, -- 6 Laughing Skull Orcs BoA 300
  198.  
  199. ["119140"] = {FACTION = 1710}, -- 6 Sha'tari Defense Tabard (Exalted)
  200. ["167932"] = {FACTION = 1710}, -- 6 Sha'tari Defense BoA 300
  201.  
  202. ["119137"] = {FACTION = 1711}, -- 6 Steamwheedle Society Tabard (Exalted)
  203. ["167926"] = {FACTION = 1711}, -- 6 Steamwheedle Society BoA 300
  204.  
  205. ["115518"] = {FACTION = 1681}, -- 6 Vol'jin's Spear Tabard (Exalted)
  206. ["120148"] = {FACTION = 1681}, -- 6 Ensignia of Vol'jin's Spear 200
  207.  
  208. ["115517"] = {FACTION = 1682}, -- 6 Wrynn's Vanguard Tabard (Exalted)
  209. ["120149"] = {FACTION = 1682}, -- 6 Ensignia of Wrynn's Vanguard 200
  210.  
  211. ["128450"] = {FACTION = 1849}, -- 6 Order of the Awakened Tabard (Exalted)
  212. ["167925"] = {FACTION = 1849}, -- 6 Order of the Awakened BoA 300
  213.  
  214. ["128449"] = {FACTION = 1850}, -- 6 Saberstalkers Tabard (Exalted)
  215. ["167927"] = {FACTION = 1850}, -- 6 Saberstalkers BoA 300
  216.  
  217. ["128526"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters Mount
  218. ["128471"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters Toy
  219. ["168017"] = {FACTION = 1681}, -- 6 Vol'jin's Headhunters BoA 300
  220.  
  221. ["128527"] = {FACTION = 1847}, -- 6 Hand of the Prophet Mount
  222. ["128462"] = {FACTION = 1847}, -- 6 Hand of the Prophet Toy
  223. ["168018"] = {FACTION = 1847}, -- 6 Hand of the Prophet BoA 300
  224.  
  225. ["140575"] = {FACTION = 1859}, -- 7 Nightfallen Tabard (Exalted)
  226. ["139026"] = {FACTION = 1859}, -- 7 Nightfallen BoP 250
  227. ["140260"] = {FACTION = 1859}, -- 7 Nightfallen BoP 25
  228. ["141343"] = {FACTION = 1859}, -- 7 Nightfallen BoA 250
  229. ["141870"] = {FACTION = 1859}, -- 7 Nightfallen BoP 100
  230. ["141992"] = {FACTION = 1859}, -- 7 Nightfallen BoP 750
  231. ["146940"] = {FACTION = 1859}, -- 7 Nightfallen BoP 250
  232. ["146946"] = {FACTION = 1859}, -- 7 Nightfallen BoA 250
  233. ["147413"] = {FACTION = 1859}, -- 7 Nightfallen BoP 750
  234. ["147416"] = {FACTION = 1859}, -- 7 Nightfallen BoP 100
  235. ["150930"] = {FACTION = 1859}, -- 7 Nightfallen BoA 750
  236.  
  237. ["140576"] = {FACTION = 1828}, -- 7 Highmountain Tabard (Exalted)
  238. ["139024"] = {FACTION = 1828}, -- 7 Highmountain BoP 250
  239. ["141341"] = {FACTION = 1828}, -- 7 Highmountain BoA 250
  240. ["141990"] = {FACTION = 1828}, -- 7 Highmountain BoP 1500
  241. ["146938"] = {FACTION = 1828}, -- 7 Highmountain BoP 250
  242. ["146944"] = {FACTION = 1828}, -- 7 Highmountain BoA 250
  243. ["147412"] = {FACTION = 1828}, -- 7 Highmountain BoP 1500
  244. ["150928"] = {FACTION = 1828}, -- 7 Highmountain BoA 1500
  245.  
  246. ["140577"] = {FACTION = 1900}, -- 7 Farondis Tabard (Exalted)
  247. ["139023"] = {FACTION = 1900}, -- 7 Farondis BoP 250
  248. ["141340"] = {FACTION = 1900}, -- 7 Farondis BoA 250
  249. ["141989"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
  250. ["146937"] = {FACTION = 1900}, -- 7 Farondis BoP 250
  251. ["146943"] = {FACTION = 1900}, -- 7 Farondis BoA 250
  252. ["147410"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
  253. ["150927"] = {FACTION = 1900}, -- 7 Farondis BoP 1500
  254.  
  255. ["140578"] = {FACTION = 1883}, -- 7 Dreamweavers Tabard (Exalted)
  256. ["139021"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 250
  257. ["141339"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 250
  258. ["141988"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 1500
  259. ["146936"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 250
  260. ["146942"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 250
  261. ["147411"] = {FACTION = 1883}, -- 7 Dreamweavers BoP 1500
  262. ["150926"] = {FACTION = 1883}, -- 7 Dreamweavers BoA 1500
  263.  
  264. ["140579"] = {FACTION = 1948}, -- 7 Valarjar Tabard (Exalted)
  265. ["139020"] = {FACTION = 1948}, -- 7 Valarjar BoP 250
  266. ["141338"] = {FACTION = 1948}, -- 7 Valarjar BoA 250
  267. ["141987"] = {FACTION = 1948}, -- 7 Valarjar BoP 1500
  268. ["146935"] = {FACTION = 1948}, -- 7 Valarjar BoP 250
  269. ["146941"] = {FACTION = 1948}, -- 7 Valarjar BoA 250
  270. ["147414"] = {FACTION = 1948}, -- 7 Valarjar BoP 1500
  271. ["150925"] = {FACTION = 1948}, -- 7 Valarjar BoA 1500
  272.  
  273. ["140580"] = {FACTION = 1894}, -- 7 Wardens Tabard (Exalted)
  274. ["139025"] = {FACTION = 1894}, -- 7 Wardens BoP 250
  275. ["141342"] = {FACTION = 1894}, -- 7 Wardens BoA 250
  276. ["141991"] = {FACTION = 1894}, -- 7 Wardens BoP 750
  277. ["141992"] = {FACTION = 1894}, -- 7 Wardens BoP 750
  278. ["146939"] = {FACTION = 1894}, -- 7 Wardens BoP 250
  279. ["146945"] = {FACTION = 1894}, -- 7 Wardens BoA 250
  280. ["147415"] = {FACTION = 1894}, -- 7 Wardens BoP 1500
  281. ["150929"] = {FACTION = 1894}, -- 7 Wardens BoA 1500
  282.  
  283. ["147205"] = {FACTION = 2045}, -- 7 Legionfall Tabard (Exalted)
  284. ["146949"] = {FACTION = 2045}, -- 7 Legionfall BoP 250
  285. ["146950"] = {FACTION = 2045}, -- 7 Legionfall BoA 250
  286. ["147727"] = {FACTION = 2045}, -- 7 Legionfall BoP 750
  287. ["152464"] = {FACTION = 2045}, -- 7 Legionfall BoP 750
  288.  
  289. ["152399"] = {FACTION = 2165}, -- 7 The Light Tabard (Exalted)
  290. ["152955"] = {FACTION = 2165}, -- 7 The Light BoA 750
  291. ["152956"] = {FACTION = 2165}, -- 7 The Light BoA 750
  292. ["152957"] = {FACTION = 2165}, -- 7 The Light BoA 250
  293. ["152958"] = {FACTION = 2165}, -- 7 The Light BoP 250
  294.  
  295. ["152669"] = {FACTION = 2170}, -- 7 Argussian Reach Tabard (Exalted)
  296. ["152954"] = {FACTION = 2170}, -- 7 Argussian Reach BoA 750
  297. ["152959"] = {FACTION = 2170}, -- 7 Argussian Reach BoP 250
  298. ["152960"] = {FACTION = 2170}, -- 7 Argussian Reach BoA 250
  299. ["152961"] = {FACTION = 2170}, -- 7 Argussian Reach BoP 750
  300.  
  301. ["153113"] = {FACTION = 1948}, -- 7 All BoA 1000
  302.  
  303. ["157758"] = {FACTION = 2170}, -- 7 Ren'dorei Tabard (Void Elf Allied Race)
  304.  
  305. ["157759"] = {FACTION = 1859}, -- 7 Shal'dorei Tabard (Nightborne Allied Race)
  306.  
  307. ["160540"] = {FACTION = 2160}, -- 8 Proudmoore Admiralty Tabard (Exalted)
  308. ["153661"] = {FACTION = 2160}, -- 8 Proudmoore Admiralty Contract 10/WQ
  309. ["163201"] = {FACTION = 2160}, -- 8 Gnoll Targeting Barrel (Honored)
  310. ["163200"] = {FACTION = 2160}, -- 8 Cursed Spyglass (Revered)
  311. ["161911"] = {FACTION = 2160}, -- 8 Reins of the Admiralty Stallion (Exalted)
  312.  
  313. ["160541"] = {FACTION = 2161}, -- 8 Order of Embers Tabard (Exalted)
  314. ["153662"] = {FACTION = 2161}, -- 8 Order of Embers Contract 10/WQ
  315. ["163206"] = {FACTION = 2161}, -- 8 Revered: Weary Spirit Binding (Revered)
  316. ["161910"] = {FACTION = 2161}, -- 8 Exalted: Reins of the Smoky Charger (Exalted)
  317.  
  318. ["160542"] = {FACTION = 2162}, -- 8 Storm's Wake Tabard (Exalted)
  319. ["153663"] = {FACTION = 2162}, -- 8 Storm's Wake Contract 10/WQ
  320. ["162626"] = {FACTION = 2162}, -- 8 Tome of Polymorph: Bumblebee (Revered)
  321. ["163463"] = {FACTION = 2162}, -- 8 Dead Ringer (Revered)
  322. ["163490"] = {FACTION = 2162}, -- 8 Pair of Bee Wings (Revered)
  323. ["161912"] = {FACTION = 2162}, -- 8 Reins of the Dapple Gray (Exalted)
  324.  
  325. ["160539"] = {FACTION = 2159}, -- 8 Tabard of the 7th Legion (Exalted)
  326. ["165016"] = {FACTION = 2159}, -- 8 7th Legion Contract 10/WQ
  327. ["163778"] = {FACTION = 2159}, -- 8 Lil' Siege Tower (Revered)
  328.  
  329. ["160546"] = {FACTION = 2103}, -- 8 Tabard of the Zandalari Empire (Exalted)
  330. ["153664"] = {FACTION = 2103}, -- 8 Zandalari Empire Contract 10/WQ
  331. ["163210"] = {FACTION = 2103}, -- 8 Party Totem (Revered)
  332. ["163210"] = {FACTION = 2103}, -- 8 Reins of the Cobalt Pterrordax (Exalted)
  333.  
  334. ["160547"] = {FACTION = 2156}, -- 8 Talanji's Expedition Tabard (Exalted)
  335. ["153665"] = {FACTION = 2156}, -- 8 Talanji's Expedition Contract 10/WQ
  336. ["163501"] = {FACTION = 2156}, -- 8 Tragg the Curious (Revered)
  337. ["161774"] = {FACTION = 2156}, -- 8 Reins of the Expedition Bloodswarmer (Exalted)
  338.  
  339. ["160548"] = {FACTION = 2158}, -- 8 Tabard of the Voldunai (Exalted)
  340. ["153666"] = {FACTION = 2158}, -- 8 Voldunai Contract 10/WQ
  341. ["163211"] = {FACTION = 2158}, -- 8 Akunda's Firesticks (Honored)
  342. ["159753"] = {FACTION = 2158}, -- 8 Desert Flute (Honored)
  343. ["161773"] = {FACTION = 2158}, -- 8 Reins of the Alabaster Hyena (Exalted)
  344.  
  345. ["160545"] = {FACTION = 2157}, -- 8 Tabard of the Honorbound (Exalted)
  346. ["165017"] = {FACTION = 2157}, -- 8 The Honorbound Contract 10/WQ
  347. ["163779"] = {FACTION = 2157}, -- 8 Lil' War Machine (Revered)
  348.  
  349. ["160544"] = {FACTION = 2164}, -- 8 Champions of Azeroth Tabard (Exalted)
  350. ["153668"] = {FACTION = 2164}, -- 8 Champions of Azeroth Contract 10/WQ
  351. ["163515"] = {FACTION = 2164}, -- 8 Shard of Azerite (Revered)
  352. ["163555"] = {FACTION = 2164}, -- 8 Drop of Azerite (Revered)
  353.  
  354. ["160543"] = {FACTION = 2163}, -- 8 Tabard of the Tortollan Seekers (Exalted)
  355. ["153667"] = {FACTION = 2163}, -- 8 Tortollan Seekers Contract 10/WQ
  356. ["163513"] = {FACTION = 2163}, -- 8 Cou'pa (Revered)
  357.  
  358. };
  359.  
  360. -- Text Globals
  361. TEXT_COLOR_RED = "|cFFFF0000";
  362. TEXT_COLOR_GREEN = "|cFF00FF00";
  363. TEXT_COLOR_YELLOW = "|cFFFFFF00";
  364. TEXT_COLOR_CYAN = "|cFF00FFFF";
  365. TEXT_COLOR_RESET = "|r";
  366.  
  367. -- Chat MSG
  368. function AT.PrintShortMSG(msg)
  369. text = TEXT_COLOR_CYAN .. "AT > " .. TEXT_COLOR_RESET .. msg;
  370. DEFAULT_CHAT_FRAME:AddMessage(text);
  371. end
  372.  
  373. function AT.PrintLongMSG(msg)
  374. text = TEXT_COLOR_CYAN .. AT.AddonName .. ": " .. TEXT_COLOR_RESET .. msg;
  375. DEFAULT_CHAT_FRAME:AddMessage(text);
  376. end
  377.  
  378. -- Event Frame
  379. AT.eventFrame = CreateFrame("Frame", "AT_EVENTFRAME");
  380. AT.eventFrame:RegisterEvent("ADDON_LOADED");
  381. AT.eventFrame:RegisterEvent("PLAYER_LOGOUT");
  382. AT.eventFrame:RegisterEvent("PLAYER_EQUIPMENT_CHANGED");
  383. --AT.eventFrame:RegisterEvent("PLAYER_ENTERING_WORLD"); -- Entering World ( probably using in later updates )
  384. --AT.eventFrame:RegisterEvent("PLAYER_REGEN_ENABLED"); -- Out of Combat ( probably using in later updates )
  385. function AT_EventHandler(self, event, ...)
  386. local arg1, arg2 = ...;
  387. if event == "ADDON_LOADED" and arg1 == "AdvancedTabards" then
  388. local defaultSettings = {
  389. ["tooltips"] = true,
  390. ["autotrack"] = true
  391. };
  392. AT.Settings = _G["AT_Settings"] or defaultSettings;
  393. AT.PrintLongMSG("v" .. AT.AddonVersion .. " loaded successfully.");
  394. self:UnregisterEvent("ADDON_LOADED");
  395. elseif event == "PLAYER_LOGOUT" then
  396. _G["AT_Settings"] = AT.Settings;
  397. elseif event == "PLAYER_EQUIPMENT_CHANGED" then
  398. if not AT.Settings["autotrack"] then return; end
  399.  
  400. local tabardSlotID, tabardTextureName = GetInventorySlotInfo("TabardSlot");
  401. if tabardSlotID then
  402. local tabardEquipped = GetInventoryItemID("Player", tabardSlotID);
  403. if tabardEquipped then
  404. local tabardID = tostring(tabardEquipped);
  405. if AT.Tabards[tabardID] then
  406. ExpandAllFactionHeaders();
  407. local factions = {};
  408. for x = 1, GetNumFactions() do
  409. factions[x] = {};
  410. factions[x].name, factions[x].description, factions[x].standingID, factions[x].barMin, factions[x].barMax,
  411. factions[x].barValue, factions[x].atWarWith, factions[x].canToggleAtWar, factions[x].isHeader, factions[x].isCollapsed,
  412. factions[x].hasRep, factions[x].isWatched, factions[x].isChild, factions[x].factionID, factions[x].hasBonusRepGain, factions[x].canBeLFGBonus = GetFactionInfo(x);
  413. end
  414.  
  415. if AT.Tabards[tabardID].FACTION == 1168 and not IsInGuild() then
  416. AT.PrintShortMSG(TEXT_COLOR_RED .. "Automatic Tracking Failed! ( Not in Guild)");
  417. return;
  418. end
  419.  
  420. for i, v in pairs(factions) do
  421. if factions[i].isWatched then return; end -- Faction is already watched
  422. if factions[i].standingID == 8 then return; end -- Already exalted with this faction
  423.  
  424. if factions[i].factionID == AT.Tabards[tabardID].FACTION then
  425. SetWatchedFactionIndex(i);
  426. AT.PrintShortMSG("Automatic Tracking of: " .. TEXT_COLOR_GREEN .. factions[i].name);
  427. end
  428. end
  429. end
  430. end
  431. end
  432. end
  433. end
  434. AT.eventFrame:SetScript("OnEvent", AT_EventHandler);
  435.  
  436. -- Hook Game Tooltip
  437. function AT.SetGameTooltip(tooltip)
  438. if not AT.Settings["tooltips"] then return; end
  439.  
  440. local _, link = tooltip:GetItem();
  441. if not link then return; end
  442.  
  443. local itemString = string.match(link, "item[%-?%d:]+");
  444.  
  445. if itemString then
  446. local _, itemID = strsplit(":", itemString);
  447. if itemID then
  448. if AT.Tabards[itemID] then
  449. local itemFaction = AT.Tabards[itemID].FACTION;
  450. local name, description, standingID, barMin, barMax, barValue, atWarWith, canToggleAtWar, isHeader, isCollapsed, hasRep, isWatched, isChild, factionID, hasBonusRepGain, canBeLFGBonus = GetFactionInfoByID(itemFaction);
  451.  
  452. local factionInfo;
  453. if standingID ~= 8 then -- Exalted Fix
  454. factionInfo = string.format("%s: %s / %s (%0.2f%%)", _G["FACTION_STANDING_LABEL" .. standingID], barValue - barMin, barMax - barMin, ((barValue - barMin) / (barMax - barMin)) * 100);
  455. else
  456. factionInfo = string.format("%s: %s / %s (%0.2f%%)", _G["FACTION_STANDING_LABEL" .. standingID], barMax, barMax, (barMax / barMax) * 100);
  457. end
  458. tooltip:AddLine("\n" .. name .. "\n" .. factionInfo .. "\n" .. "\n");
  459. end
  460. end
  461. end
  462. end
  463. GameTooltip:HookScript("OnTooltipSetItem", AT.SetGameTooltip);
  464.  
  465. -- Toogle Tooltip
  466. function AT.ToggleTooltip()
  467. AT.Settings["tooltips"] = not AT.Settings["tooltips"];
  468. if AT.Settings["tooltips"] then
  469. AT.PrintShortMSG("Tooltips have been enabled!");
  470. else
  471. AT.PrintShortMSG("Tooltips have been disabled!");
  472. end
  473. end
  474.  
  475. -- Toggle Automatic Tracking
  476. function AT.ToggleAutoTracking()
  477. AT.Settings["autotrack"] = not AT.Settings["autotrack"];
  478. if AT.Settings["autotrack"] then
  479. AT.PrintShortMSG("Automatic Tracking has been enabled!");
  480. else
  481. AT.PrintShortMSG("Automatic Tracking has been disabled!");
  482. end
  483. end
  484.  
  485. -- Interface Options
  486. -- Main
  487. AT.Interface = {};
  488. AT.Interface.MainPanel = CreateFrame("Frame", "AT_OPTIONSFRAME", UIParent);
  489. AT.Interface.MainPanel.name = AT.AddonName;
  490.  
  491. AT.Interface.MainPanel.title = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
  492. AT.Interface.MainPanel.title:SetPoint("TOPLEFT", 16, -16);
  493. AT.Interface.MainPanel.title:SetText(AT.AddonName);
  494.  
  495. AT.Interface.MainPanel.notes = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
  496. AT.Interface.MainPanel.notes:SetPoint("TOPLEFT", AT.Interface.MainPanel.title, "BOTTOMLEFT", 0, -8);
  497. AT.Interface.MainPanel.notes:SetText("Notes:");
  498.  
  499. AT.Interface.MainPanel.notes.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  500. AT.Interface.MainPanel.notes.text:SetPoint("LEFT", AT.Interface.MainPanel.notes, "RIGHT", 8, 0);
  501. AT.Interface.MainPanel.notes.text:SetText(AT.AddonNotes);
  502.  
  503. AT.Interface.MainPanel.author = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
  504. AT.Interface.MainPanel.author:SetPoint("TOPLEFT", AT.Interface.MainPanel.notes, "BOTTOMLEFT", 0, -8);
  505. AT.Interface.MainPanel.author:SetText("Author:");
  506.  
  507. AT.Interface.MainPanel.author.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  508. AT.Interface.MainPanel.author.text:SetPoint("LEFT", AT.Interface.MainPanel.author, "RIGHT", 8, 0);
  509. AT.Interface.MainPanel.author.text:SetText(AT.AddonAuthor);
  510.  
  511. AT.Interface.MainPanel.version = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
  512. AT.Interface.MainPanel.version:SetPoint("TOPLEFT", AT.Interface.MainPanel.author, "BOTTOMLEFT", 0, -8);
  513. AT.Interface.MainPanel.version:SetText("Version:");
  514.  
  515. AT.Interface.MainPanel.version.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  516. AT.Interface.MainPanel.version.text:SetPoint("LEFT", AT.Interface.MainPanel.version, "RIGHT", 8, 0);
  517. AT.Interface.MainPanel.version.text:SetText(AT.AddonVersion);
  518.  
  519. AT.Interface.MainPanel.url = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlight");
  520. AT.Interface.MainPanel.url:SetPoint("TOPLEFT", AT.Interface.MainPanel.version, "BOTTOMLEFT", 0, -8);
  521. AT.Interface.MainPanel.url:SetText("URL:");
  522.  
  523. AT.Interface.MainPanel.url.text = AT.Interface.MainPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  524. AT.Interface.MainPanel.url.text:SetPoint("LEFT", AT.Interface.MainPanel.url, "RIGHT", 8, 0);
  525. AT.Interface.MainPanel.url.text:SetText("https://wow.curseforge.com/projects/advanced-tabards");
  526.  
  527. InterfaceOptions_AddCategory(AT.Interface.MainPanel);
  528.  
  529. -- General
  530. AT.Interface.GeneralPanel = CreateFrame("Frame");
  531. AT.Interface.GeneralPanel.name = "General";
  532. AT.Interface.GeneralPanel.parent = AT.Interface.MainPanel.name;
  533.  
  534. AT.Interface.GeneralPanel.title = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontNormalLarge");
  535. AT.Interface.GeneralPanel.title:SetPoint("TOPLEFT", 16, -16);
  536. AT.Interface.GeneralPanel.title:SetText(AT.AddonName .. " - General Options");
  537.  
  538. AT.Interface.GeneralPanel.toggletooltip = CreateFrame("CheckButton", "AT_TOGGLETOOLTP", AT.Interface.GeneralPanel, "ChatConfigCheckButtonTemplate");
  539. AT.Interface.GeneralPanel.toggletooltip:SetPoint("TOPLEFT", AT.Interface.GeneralPanel.title, "BOTTOMLEFT", 0, -8);
  540. AT.Interface.GeneralPanel.toggletooltip.tooltip = "Enable/Disable Tooltips";
  541. AT.Interface.GeneralPanel.toggletooltip:SetScript("OnClick", AT.ToggleTooltip);
  542.  
  543. AT.Interface.GeneralPanel.toggletooltip.text = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  544. AT.Interface.GeneralPanel.toggletooltip.text:SetPoint("LEFT", AT.Interface.GeneralPanel.toggletooltip, "RIGHT", 8, 0);
  545. AT.Interface.GeneralPanel.toggletooltip.text:SetText("Enable/Disable Tooltips");
  546.  
  547. AT.Interface.GeneralPanel.toggleautotrack = CreateFrame("CheckButton", "AT_TOGGLEAUTOTRACK", AT.Interface.GeneralPanel, "ChatConfigCheckButtonTemplate");
  548. AT.Interface.GeneralPanel.toggleautotrack:SetPoint("TOPLEFT", AT.Interface.GeneralPanel.toggletooltip, "BOTTOMLEFT", 0, -8);
  549. AT.Interface.GeneralPanel.toggleautotrack.tooltip = "Enable/Disable Automatic Tracking";
  550. AT.Interface.GeneralPanel.toggleautotrack:SetScript("OnClick", AT.ToggleAutoTracking);
  551.  
  552. AT.Interface.GeneralPanel.toggleautotrack.text = AT.Interface.GeneralPanel:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall");
  553. AT.Interface.GeneralPanel.toggleautotrack.text:SetPoint("LEFT", AT.Interface.GeneralPanel.toggleautotrack, "RIGHT", 8, 0);
  554. AT.Interface.GeneralPanel.toggleautotrack.text:SetText("Enable/Disable Automatic Tracking");
  555.  
  556. function AT.UpdateCheckButtons()
  557. AT.Interface.GeneralPanel.toggletooltip:SetChecked(AT.Settings["tooltips"]);
  558. AT.Interface.GeneralPanel.toggleautotrack:SetChecked(AT.Settings["autotrack"]);
  559. end
  560. AT.Interface.GeneralPanel:SetScript("OnShow", AT.UpdateCheckButtons);
  561. AT.Interface.GeneralPanel:SetScript("OnEnter", AT.UpdateCheckButtons); -- Ghetto way because OnLoad doesn't work for some reason
  562.  
  563. InterfaceOptions_AddCategory(AT.Interface.GeneralPanel);
  564.  
  565. -- Chat Commands
  566. SLASH_AT1 = "/at"
  567. function SlashCmdList.AT(msg, editbox)
  568. if msg == nil or msg == "" then
  569. AT.ToggleTooltip();
  570. end
  571.  
  572. if msg == "autotrack" then
  573. AT.ToggleAutoTracking();
  574. end
  575.  
  576. if msg == "help" then
  577. AT.PrintShortMSG("List of available Commands:");
  578. AT.PrintShortMSG("/at - Toggle Tooltips.");
  579. AT.PrintShortMSG("/at autotrack - Toggle Automatic Tracking.");
  580. end
  581. end
Add Comment
Please, Sign In to add comment