Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Item Reputation Only, Not Fully Tested, Just making a backup here
- local addonName
- WorldQuestTips = CreateFrame("Frame"), {};
- local version = 1.25
- local versionSuffix = ""
- local playerName = UnitName("player")
- local profileKey = playerName.."-"..GetRealmName()
- local gender = UnitSex("player");
- local level = UnitLevel("player")
- local _,playerClass = UnitClass("player")
- local debugging
- local repitems = {
- -- 7 LEGION EXPANSION
- -- Argussian Reach (Argus)
- ["152954"] = 2170, -- Argussian Reach - BoA - 750
- ["152959"] = 2170, -- Argussian Reach - BoP - 250
- ["152960"] = 2170, -- Argussian Reach - BoA - 250
- ["152961"] = 2170, -- Argussian Reach - BoP - 750
- -- 2170, << Argussian Reach Exalted
- -- 2167, << Argussian Reach Paragon
- -- Army Of The Light (Argus)
- ["152955"] = 2165, -- Army Of The Light BoA 750
- ["152956"] = 2165, -- Army Of The Light BoA 750
- ["152957"] = 2165, -- Army Of The Light BoA 250
- ["152958"] = 2165, -- Army Of The Light BoP 250
- -- 2165, << Army Of The Light Exalted
- -- 2166, << Army Of The Light Paragon
- -- Dreamweavers (Val'sharah)
- ["139021"] = 1883, -- Dreamweavers - BoP - 250
- ["141339"] = 1883, -- Dreamweavers - BoA - 250
- ["141988"] = 1883, -- Dreamweavers - BoP - 1500
- ["146936"] = 1883, -- Dreamweavers - BoP - 250
- ["146942"] = 1883, -- Dreamweavers - BoA - 250
- ["147411"] = 1883, -- Dreamweavers - BoP - 1500
- ["150926"] = 1883, -- Dreamweavers - BoA - 1500
- -- 1883, << Dreamweavers Exalted
- -- 2088, << Dreamweavers Paragon
- -- Court of Farondis (Aszuna)
- ["139023"] = 1900, -- Farondis - BoP - 250
- ["141340"] = 1900, -- Farondis - BoA - 250
- ["141989"] = 1900, -- Farondis - BoP - 1500
- ["146937"] = 1900, -- Farondis - BoP - 250
- ["146943"] = 1900, -- Farondis - BoA - 250
- ["147410"] = 1900, -- Farondis - BoP - 1500
- ["150927"] = 1900, -- Farondis - BoP - 1500
- -- 1900, << Farondis Exalted
- -- 2087, << Farondis Paragon
- -- Highmountain Tribe (Highmountain)
- ["139024"] = 1828, -- Highmountain - BoP - 250
- ["141341"] = 1828, -- Highmountain - BoA - 250
- ["141990"] = 1828, -- Highmountain - BoP - 1500
- ["146938"] = 1828, -- Highmountain - BoP - 250
- ["146944"] = 1828, -- Highmountain - BoA - 250
- ["147412"] = 1828, -- Highmountain - BoP - 1500
- ["150928"] = 1828, -- Highmountain - BoA - 1500
- -- 1828, << Highmountain Exalted
- -- 2085, << Highmountain Paragon
- -- Legionfall (Broken Shore)
- ["146949"] = 2045, -- Legionfall - BoP - 250
- ["146950"] = 2045, -- Legionfall - BoA - 250
- ["147727"] = 2045, -- Legionfall - BoP - 750
- ["152464"] = 2045, -- Legionfall - BoP - 750
- -- 2045, << Legionfall Exalted
- -- 2091, << Legionfall Paragon
- -- Nightfallen (Suramar)
- ["139026"] = 1859, -- Nightfallen - BoP - 250
- ["140260"] = 1859, -- Nightfallen - BoP - 25
- ["141343"] = 1859, -- Nightfallen - BoA - 250
- ["141870"] = 1859, -- Nightfallen - BoP - 100
- ["141992"] = 1859, -- Nightfallen - BoP - 750
- ["146940"] = 1859, -- Nightfallen - BoP - 250
- ["146946"] = 1859, -- Nightfallen - BoA - 250
- ["147413"] = 1859, -- Nightfallen - BoP - 750
- ["147416"] = 1859, -- Nightfallen - BoP - 100
- ["150930"] = 1859, -- Nightfallen - BoA - 750
- -- 1859, << Nightfallen Exalted
- -- 2089, << Nightfallen Paragon
- -- Valarjar (Stormheim)
- ["139020"] = 1948, -- Valarjar - BoP - 250
- ["141338"] = 1948, -- Valarjar - BoA - 250
- ["141987"] = 1948, -- Valarjar - BoP - 1500
- ["146935"] = 1948, -- Valarjar - BoP - 250
- ["146941"] = 1948, -- Valarjar - BoA - 250
- ["147414"] = 1948, -- Valarjar - BoP - 1500
- ["150925"] = 1948, -- Valarjar - BoA - 1500
- -- 1948, << Valarjar Exalted
- -- 2086, << Valarjar Paragon
- -- Wardens (Aszuna)
- ["139025"] = 1894, -- Wardens - BoP - 250
- ["141342"] = 1894, -- Wardens - BoA - 250
- ["141991"] = 1894, -- Wardens - BoP - 750
- ["141992"] = 1894, -- Wardens - BoP - 750
- ["146939"] = 1894, -- Wardens - BoP - 250
- ["146945"] = 1894, -- Wardens - BoA - 250
- ["147415"] = 1894, -- Wardens - BoP - 1500
- ["150929"] = 1894, -- Wardens - BoA - 1500
- -- 1894, << Wardens Exalted
- -- 2090, << Wardens Paragon
- -- All Legion Factions (ALL)
- ["153113"] = 1948, -- All Legion Factions - BoA - 1000
- -- 6 DRAENOR EXPANSION
- -- Arakkoa Outcasts
- ["119136"] = 1515, -- Arakkoa Outcasts Tabard
- -- Council of Exarchs
- ["119135"] = 1731, -- Council of Exarchs Tabard
- -- Frostwolf Orcs (H)
- ["119133"] = 1445, -- Frostwolf Tabard
- -- Laughing Skull Orcs (H)
- ["119138"] = 1708, -- Laughing Skull Orcs Tabard
- -- Sha'tari Defense (A)
- ["119140"] = 1710, -- Sha'tari Defense Tabard
- -- Steamwheedle "Preservation" Society
- ["119137"] = 1711, -- Steamwheedle Society Tabard
- -- Vol'jin's Spear (H)
- ["115518"] = 1681, -- Vol'jin's Spear Tabard
- -- Wrynn's Vanguard (A)
- ["115517"] = 1682, -- Wrynn's Vanguard Tabard
- -- Order of the Awakened
- ["128450"] = 1849, -- Order of the Awakened Tabard
- -- Saberstalkers
- ["128449"] = 1850, -- Saberstalkers Tabard
- -- 5 PANDARIA EXPANSION
- -- Racial Tabards
- ["83079"] = 1353, -- Tushui Tabard
- ["83080"] = 1352, -- Huojin Tabard
- -- Shado-Pan, Townlong Steppes
- ["89800"] = 1270, -- Shado-Pan Tabard
- ["94223"] = 1270, -- Shado-Pan BoA 1000
- ["143936"] = 1270, -- Shado-Pan BoA 300
- -- Shado-Pan Assault, Raid
- ["97131"] = 1435, -- Shado-Pan Assault Tabard
- ["95496"] = 1435, -- Shado-Pan Assault BoA 100
- ["143945"] = 1341, -- Shado-Pan Assault BoA 300
- -- August Celestials
- ["89799"] = 1341, -- August Celestials Tabard
- ["94225"] = 1341, -- August Celestials BoA 1000
- ["143938"] = 1341, -- August Celestials BoA 300
- -- Order Of The Cloud Serpent, Jade Forest
- ["89796"] = 1271, -- Cloud Serpent Tabard
- ["143942"] = 1271, -- Cloud Serpent BoA 300
- -- Emperor Shaohao (Timeless Isle)
- ["143947"] = 1492, -- Emperor Shaohao BoA 500
- -- Tillers, Valley of the Four Winds
- ["89784"] = 1272, -- Tillers Tabard
- ["143941"] = 1272, -- Tillers BoA 300
- -- Tillers (Social), Valley of the Four Winds
- ["79266"] = 1282, -- FishFellreed - BoP - ???
- -- 1275, -- Ella - BoP - ???
- ["79267"] = 1278, -- Sho - BoP - ???
- -- 1273, -- Jogu The Drunk - BoP - ???
- ["79265"] = 1276, -- Old Hillpaw - BoP - ???
- -- 1277, -- Chee Chee - BoP - ???
- ["79264"] = 1279, -- Haohan - BoP - ???
- -- 1280, -- Tina Mudclaw - BoP - ???
- ["79268"] = 1283, -- Farmer Fung - BoP - ???
- -- 1281, -- Gina Mudclaw - BoP - ???
- -- Klaxxi, Dread Wastes
- ["89798"] = 1337, -- Klaxxi Tabard
- ["94226"] = 1337, -- Klaxxi - BoA - 1000
- ["143935"] = 1337, -- Klaxxi - BoA - 300
- -- Lorewalkers
- ["89795"] = 1345, -- Lorewalkers Tabard
- -- Golden Lotus
- ["89797"] = 1269, -- Golden Lotus Tabard
- ["94227"] = 1269, -- Golden Lotus BoA 1000
- ["90815"] = 1269, -- Golden Lotus BoA ??
- ["90816"] = 1269, -- Golden Lotus BoA ??
- ["143937"] = 1269, -- Golden Lotus BoA 300
- -- Anglers, Krasarang Wilds
- ["89401"] = 1302, -- Anglers Tabard
- ["143946"] = 1302, -- Anglers BoA 300
- -- Kirin Tor Offensive (Alliance)
- ["95591"] = 1387, -- Kirin Tor Offensive Tabard
- ["95489"] = 1387, -- Kirin Tor Offensive BoA 25
- ["95490"] = 1387, -- Kirin Tor Offensive BoA 250
- -- Sunreaver Onslaught (Horde)
- ["95592"] = 1388, -- Sunreaver Onslaught Tabard
- ["95488"] = 1388, -- Sunreaver Onslaught BoA 250
- ["95487"] = 1388, -- Sunreaver Onslaught BoA 25
- ["143939"] = 1388, -- Sunreaver Onslaught BoA 300
- ["143943"] = 1375, -- Dominance Offensive BoA 300
- -- 4 CATACLYSM EXPANSION
- -- Cataclysm Racial
- ["64882"] = 1134, -- Gilneas Tabard
- ["64884"] = 1133, -- Bilgewater Cartel Tabard
- -- Twilight Highlands
- ["65908"] = 1174, -- Wildhammer Clan Tabard
- ["133151"] = 1174, -- Wildhammer Clan BoA 500
- ["65909"] = 1172, -- Dragonmaw Clan Tabard
- ["133150"] = 1172, -- Dragonmaw Clan BoA 500
- -- Uldum
- ["65904"] = 1173, -- Ramkahen Tabard
- ["133154"] = 1173, -- Ramkahen BoA 500
- -- Vashjir
- ["65905"] = 1135, -- Earthen Ring Tabard
- ["133159"] = 1135, -- Earthen Ring BoA 500
- -- Mount Hyjal
- ["65906"] = 1158, -- Guardians of Hyjal Tabard
- ["133152"] = 1158, -- Guardians of Hyjal BoA 500
- -- Deepholm
- ["65907"] = 1171, -- Therazane Tabard
- ["133160"] = 1171, -- Therazane BoA 500
- -- Tol Barad
- ["63379"] = 1177, -- Baradin's Wardens Tabard
- ["63378"] = 1178, -- Hellscream's Reach Tabard
- -- 3 WRATH EXPANSION
- -- Argent Crusade
- ["43154"] = 1106, -- Argent Crusade Tabard
- ["129942"] = 1106, -- Argent Crusade BoA 500
- -- Ebon Blade
- ["43155"] = 1098, -- Ebon Blade Tabard
- ["129941"] = 1098, -- Ebon Blade BoA 500
- -- Kirin Tor
- ["43157"] = 1090, -- Kirin Tor Tabard
- ["129940"] = 1090, -- Kirin Tor BoA 500
- -- Sons Of Hodir
- ["129943"] = 1119, -- Sons Of Hodir BoA 500
- -- Wyrmrest Accord
- ["43156"] = 1091, -- Wyrmrest Accord Tabard
- ["129944"] = 1091, -- Wyrmrest Accord BoA 500
- -- Alliance Vanguard
- ["129955"] = 1037, -- Alliance Vanguard BoA 500
- -- Horde Expedition
- ["129954"] = 1052, -- Horde Expedition BoA 500
- -- 2 OUTLAND EXPANSION
- -- Outland Racial (Added in Wrath)
- ["45580"] = 930, -- Exodar Tabard
- ["45585"] = 911, -- Silvermoon City Tabard
- -- Hellfire Peninsula
- ["23999"] = 946, -- Honor Hold Tabard
- ["129948"] = 946, -- Honor Hold BoA 500
- ["24004"] = 947, -- Thrallmar Tabard
- ["129947"] = 947, -- Thrallmar BoA 500
- -- Zangarmarsh
- ["31804"] = 942, -- Cenarion Expedition Tabard
- ["129949"] = 942, -- Cenarion Expedition BoA 500
- ["31775"] = 970, -- Sporeggar Tabard
- -- Terokkar Forest
- ["32445"] = 1031, -- Skyguard Tabard
- -- Shattrath
- ["31779"] = 932, -- Aldor Tabard
- ["31780"] = 934, -- Scryers Tabard
- ["31778"] = 1011, -- Lower City Tabard
- ["129951"] = 1011, -- Lower City BoA 500
- ["31781"] = 935, -- Sha'tar Tabard
- ["129946"] = 935, -- Sha'tar BoA 500
- -- Nagrand
- ["31774"] = 978, -- Kurenai Tabard
- ["31773"] = 941, -- Mag'har Tabard
- ["31776"] = 933, -- Consortium Tabard
- ["129945"] = 933, -- Consortium BoA 500
- -- Blades Edge Mountain
- ["32828"] = 1038, -- Ogri'la Tabard
- --
- ["31777"] = 989, -- Keepers of Time Tabard
- ["129950"] = 989, -- Keepers of Time BoA 500
- -- Sunwell Plateau
- ["35221"] = 1077, -- Shattered Sun Tabard
- -- 1 CLASSIC
- -- Classic Racial (Added in Wrath)
- ["45579"] = 69, -- Darnassus Tabard
- ["45578"] = 54, -- Gnomeregan Tabard
- ["45577"] = 47, -- Ironforge Tabard
- ["45574"] = 72, -- Stormwind Tabard
- ["45582"] = 530, -- Darkspear Tabard
- ["45581"] = 76, -- Orgrimmar Tabard
- ["45584"] = 81, -- Thunder Bluff Tabard
- ["45583"] = 68, -- Undercity Tabard
- -- PVP Tabards?
- ["20132"] = 509, -- Arathor Battle Tabard
- ["20131"] = 510, -- Battle Tabard of the Defilers
- }
- local function addRepToToolTip( self, factionID )
- if WorldQuestTipsData.global.options.showRepOnItems then
- local factionName,_,factionStanding,barMin,barMax,value = GetFactionInfoByID( factionID );
- barMax = (barMax - barMin)/1000;
- local barValue = math.floor( (value - barMin)/100 ) / 10
- local factionStandingtext = GetText("FACTION_STANDING_LABEL"..factionStanding, gender);
- local colour = "|cff808080"
- if factionStanding < 8 then
- factionStandingtext = factionStandingtext.." "..barValue.."k /"..barMax.."k"
- colour = "|cffffd100"
- end
- if not ( factionStanding == 8 and not WorldQuestTipsData.global.options.showExalted ) then
- _G[ self:GetName().."TextLeft2" ]:SetText( colour..factionStandingtext.."\124r\n".._G[ self:GetName().."TextLeft2" ]:GetText().." ")
- end
- if WorldQuestTipsData.global.options.showAltRepOnItems then
- for i = 1, self:NumLines() do
- -- if string.find(_G[ self:GetName().."TextLeft"..i ]:GetText(),ITEM_BNETACCOUNTBOUND) and IsAltKeyDown() then
- if string.find(_G[ self:GetName().."TextLeft"..i ]:GetText(),ITEM_BNETACCOUNTBOUND) or string.find(_G[ self:GetName().."TextLeft"..i ]:GetText(),ITEM_BIND_TO_BNETACCOUNT) then
- for k,v in pairs( WorldQuestTipsData ) do
- if k ~= "global" and k ~= "version" and k ~= profileKey then
- if v.info and v.info.level > 100 then
- local color = RAID_CLASS_COLORS[v.info.class]
- local level = ""
- if v.info.level < 110 then level = "|cffffffff ("..v.info.level..")" end
- -- if not ( string.find( v.reps[ factionID ], "|cff808080" ) and not WorldQuestTipsData.global.options.showExalted ) then
- -- self:AddDoubleLine( v.info.name..level, v.reps[factionID], color.r, color.g, color.b )
- end
- end
- end
- end
- end
- end
- end
- self:Show()
- end
- --end
- hooksecurefunc(ItemRefTooltip, "SetHyperlink", function(self, link)
- local type, id = string.match(link,"^(%a+):(%d+)")
- if type == "item" and repitems[ id ] then
- addRepToToolTip( self, repitems[ id ] )
- end
- end)
- GameTooltip:HookScript("OnTooltipSetItem", function(self)
- local link = select(2, self:GetItem())
- if link then
- local id = string.match(link, "item:(%d*)")
- if id and repitems[ id ] then
- addRepToToolTip( self, repitems[ id ] )
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement