Factionizer - A faction reputation management tool
--------------------------------------------------

History
-------
On August 10 2007 john.ra reported in alt.games.warcraft the URL of
the following reputation calculator.

	http://reputation.mygamesonline.org/

I thought it was awseome. Unfortunately it went offline for quite some time
due to over-traffic and during that time I had the idea that it would be
very neat to have something like this, especially considering that the
information to calculate everything was more or less available from the
WoWWiki faction pages.

Urbin, Dun-Morogh (EU)


Features
--------
This addon displays how many reputation points are missing to the next
reputation level in your reputation window. In addition, it extends the
reputation detail window by showing how many points you need for your
next reputation level and how you can best gain this reputation.


Thanks
------
To Shanti, Luidor/Dougi and Milamber of <Hter des weien Feuers>,
Syrenia of <Orden des Blutraben> and Tattoo of <Dark Desire> of
EU-Dun Morogh for their help on localising the faction names.

To Catriona from alt.games.warcraft for helping me test the guild
reputation cap feature.


Sources
-------
All information regarding the reputation gained for each faction comes
from http://www.wowwiki.com/Faction. German localisation of quests, mobs
and items come from http://www.buffed.de/


Slash commands
--------------
/fz help	Show supported slash commands
/fz about	Show version info
/fz urbin	List all addons by Urbin
/fz status	Show configuration status
/fz enable | disable | toggle <setting>
	<setting>	Enable/Disable/Toggle showing of
				mobs
				items
				quests
				instances | dungeons
			that give reputationg ains
	<setting>
	missing		Missing reputation text in reputation frame
	details		Extended reputation detail frame
	chat		Extended reputation gain chat message
	suppress	Suppress original reputation gain chat message
	cap		Show guild reputation cap in chat
	all		Include all <settings> in enable/disable/toggle
/fz list		Show list of all factions grouped by standing
/fz list <standing>	Show list of all factions with wich you have
			the given standing
/fz cap			Show your current guild reputation cap
/fz cap reset		Manually reset the guild reputation cap counter

/fz phase [1-4 | all | clear ]	Define which phase the Shattered Sun Offensive
				is currently in. All sets all phases and sub-
				phases to completed
/fz sso [1-4 | all | clear ]	same as /fz phase <command>
/fz phase2b [ 0-2 ]		Define subphase 2b (Sanctum)
/fz phase3b [ 0-2 ]		Define subphase 3b (Portal)
/fz phase4b [ 0-2 ]		Define subphase 4b (Anvil & Forge)
/fz phase4c [ 0-2 ]		Define subphase 4c (Sanctum)


Todo list
---------
- add item tooltips to show what they can be used for [low prio]
- add about, history, todo frames [low prio]
- add limit numbers for timbermaw, aldor, sha'tar rep
- use Ace for localisation (suggested by Chaoslux) [low prio]
- 4 digit numbers in last column are cut off:
  http://img205.imageshack.us/img205/4896/ishot0803061gp6.jpg
  (reported by anavolver)
- "Aww, it appears Factionizer doesn't work with the Shattered Sun anymore.
  I'm using a German client and it always states there is no information on
  this reputation level/this faction :(" (reported by ckaotik)
- "Another thing I noticed: You can only earn Sha'tari reputation by giving in
  Aldor/Scryer Quests until one point before honored." (reported by ckaotik)
- add support for AddonLoader
  (http://wow.curse.com/downloads/wow-addons/details/acp.aspx,
  http://www.wowwiki.com/AddonLoader) (suggested by Xanobia)

Localisations
- get french, spanish and russian localisation for "Ashen Verdict" and Cata
  factions
- get russian localisation for the new hated to unfriendly Steamwheedle quests
- get russion localisation for various new quests and spillover dungeon entries
- add WotLK spillover reps for alliance/horde factions in russian localisation
- localisation for DE/RU for new cata stuff

Bugs/Features
-

From curse:

TalkingShotgun
1. A notice in chat if you have more rep in your bags than needed to gain the next reputation level. Maybe even if quests+bags>=repMissing a notice. That way people out grinding can know when it's okay to stop and head back without having to keep opening the windows to see.
2. Glamour support. Right now I currently use a separate rep addon just for the Glamour notifications when I hit new rep levels. I also think it would be nice to have a Glamour notification when you cap your guild rep for the week.

sykopat
Any chance of an update taking into account that the extra rep gained using the new guild tabards don't count against the cap?

-> Lin
Undercity rep is bigger


Version history
---------------
40200.1
- adjusted toc for patch 4.2.0
- guild perk (5% or 10%) and human racial (10%) now stack by adding, no longer
  by multiplying (reported by Gwalkmaur)
- updated Scale of the Sands rep for Hyjal full clear (reported by CatrionaR)
- adjusted steamwheedle rep gained from killing venture co mobs
- added first lot of Hyjal dailies (incomplete)
- added alliance commendation writs (horde still missing)
- added wintersaber dailies (incomplete)
- added Firelands rep gains (reported by Henrik H AKA Szereka <Vendredi>
  on Hellscream-EU)
- adjusted rep for Bring Down the High Shaman (reported by Tairbh/CatrionaR)

40100.1
- adjusted toc for patch 4.1.0

40000.16
- improved event handler filtering performance (suggested by orgevo)
- fixed normal cata instance rep for german localisation
- added heroic cata instance rep (thanks to Rawvegie)
- added normal & heroic cata instance mob/boss rep numbers

40000.15
- added German localisation for Cata faction names, so those that differ
  from the english names also work (reported by Axxaran)
- added German localisation for Cata quests

40000.14
- removed runecloth turnins for capital cities (reported by SilverShadow)
- updated Argent Dawn (reported by Rawveggie, miacara and Fuzzykiller)
- updated Steamwheedle information
- now listing Gaining Acceptance for Thorium Brotherhood till exalted
  (reported by reaper666735)
- fixed guild rep weekly cap to work with 4.0.6 again
- reduced normal cata dungeon run to 1000 rep (2500 was way too much)

40000.13
- added guild reputation base cap marker
- trying different (more reliable) way of calculating current guild rep of
  current cap period
- calculating "times to do" for weekly guild rep cap differently than other
  entries (using base for weekly cap and weekly cap)
- updated Timbermaw Hold, Thorium Brotherhood and the four Steamwheedle Cartel
  factions (reported by Axxaran)

40000.12
- fixed grammatical error in one of the confiugration textes (Ankhet is bugged
  by grammer issues a lot)
- no longer spamming chat frame being used for messages as much as it used to,
  only print to channel when it changes (reported by Gronzig)
- fixed guild events and rewards no longer being shown (reported by
  benjamij, Aoife, reaper666735)
  NOTE: if you are using GuildRosterShow, you need to upgrade it to 40000.2, too

40000.11
- averaged normal cata instances (83-85) to about 2500 rep
- general information (like guild cap) is now configurable
- tracking guild rep per week, showing it in reputation frame for guild,
  in guild frame where the rep bar is shown and to chat (requested by CatrionaR)

40000.10
- fixing string.lower() nil bug added with 40000.9 (reported by skelgaard,
  reaper666735 and diagofox)

40000.9
- fixed bug with guild name detection that caused not printing of guild rep gain
  not to work properly
- added information about weekly guild rep cap, still working on a way to find
  out how much guild rep a char has earned in the current week (requested
  by CatrionaR)

40000.8
- added option to not show when rep bar is switched (requested by Kethguard)

40000.7
- updated Therazane dailies
- added options to ignore GuildRep in chat and when switching bars (requested by
  Kethguard)
- added button to reset "gained this session" counter (requested by ash23)
- removed commendation signet quests for old factions (reported by TheRaven72)
- renamed Gnomeregan Exiles to Gnomeregan

40000.6
- hopefully fixing ChatFrameSlider:SetValue() error (reported by ecopsorn and
  Aoife)
- fixed bug so rep bar no longer switches to factions one *lost* rep with
  (reported by TalkingShotgun)
- added tabards for alliance/horde main factions
- added cataclysm factions (but rep levels/rep gain still shaky)
- takes into account guild perks at level 4 (5% bonus rep) and 12 (10% bonus rep)
- FIZ_AddItems() now shows green if completed

40000.5
- I realise a lot of the data may be off, now that the zones and questing
  has changed so much. If you find anything that is wrong, post a note on
  the addon's page at curse to let me know (or even better) update the
  faction pages at www.wowpedia.org.
- fixed Thorium Brotherhood (Fiery Flux via Heavy Leather) (reported by
  waycooler)
- Thorium Brotherhood: The turn-ins offered by Lokhtos Darkbargainer in
  BRD are now shown from neutral to exalted (reported by waycooler)
- Thorium Brotherhood: Added the quest Gaining Even More Acceptance
  (reported by waycooler)
- support added to automatically switch reputation bar to the last faction
  you gained rep for (requested by SilverShadow; not quite what Beorn
  requested (based on zone/area) but the closest I'm going to get without
  huge effort)
- limited spillover rep to friendly

40000.4
- tried another fix that hopefully stops the addon "forgetting" its settings

40000.3
- made some improvments that hopefully stop the addon "forgetting" its settings

40000.2
- added support for Blizzard Interface Options

40000.1
- adjusted toc for patch 4.0.1
- fixed to work with patch 4.0.1 again
- added weekly raid quest for Kirin Tor rep (reported by ashemedai)
- fixed cavern of time 1 rep (reported by rosimoto)
- added magister's terrace rep (suggested by rosimoto)
- fixed nil bug reported by Ihadurca
- adjusted rep for Bloodsail Bucaneers from revered to exalted (reported by
  Ihadurca)
- added coin details for Zul Gurub
- showing number of factions at each standing

30300.4
- fixed frFR and esES localisation of Ashen Verdict
- added info about ICC 25 to Marrowgar (reported by Choonster)
- fixed requirements for Thorium Brotherhood "Fiery Flux" quests (reported
  by MaxWilder)

30300.3
- cleaned up WotLK alliance and horde main factions including spillover
  250 rep for their own faction
  125 for their "umbrella factions"
  62.5 for their sister factions
- updated Steamwheedle rep gains to start at Hated (reported by Fudge)
- added Hated to Unfriendly quests for Steamwheedle Cartel
- updated Commendation Badges for patch 3.3
- updated Wyrmrest for patch 3.3
- updated Sons of Hodir for patch 3.3
- updated Knights of Ebon Blade for patch 3.3
- updated Argent Crusade for patch 3.3

30300.2
- added 4 Argent Tournament quest for the Frostborn and Explorer's League
  for 125/2 rep each
- Kirin Tor cooking daily updated (up to 195 from 150 rep)
- Kirin Tor jewelcrafting daily updated (up to 32 from 25 rep)
- added Ashtongue Deathsworn rep (8k for full clear) (reported by Choam)


30300.1
- adjusted toc for patch 3.3
- added "Sons of Hodir Commendation Badge" for 500 rep
- added "Waterlogged Recipe" for 250 Kirin Tor rep
- fixed Arathi Basin wins from 2000 to 1600 resources (reported by Choam)
- fixed Arathi Basin quest from 200 to 160 (reported Codex)
- added Ashen Verdict as Faction (not yet localised, details added yet)

30200.4
- moved the whole chat frame on event hook to the new chat filter system
  in the hope that this will solve the various issues with the chat hook
  (contributions by Wilgorix and Tandanu)

30200.3
- added esMX in parallel to esES
- really fixed arg12 passing to chat event handler (reported by funkydude)

30200.2
- added daily BC quests for consortium rep
- added russian quest text, fixed russian faction name encoding (thanks
  a huge bunch to Bagdad)

30200.1
- fixed faction name from "Silvermoon" to "Silvermoon City" and "Defilers"
  to "The Defilers" (reported by eworikum)
- spanish localisation of faction names (curtesy of Syldavia of Uldum)
- added arg12 to obsolete chat handler due to added coloured names in chat
- fixed toc for patch 3.2

30100.3
- russian localisation of faction names (curtesy of Alifar)

30100.2
- adjusted rep for Sethek Normal (reported by Skyfawn)
- adjusted rep for Twilight cultists (reported by Motoss)
- localised Argent Tournament quests
- fixed Pa'Troll (proper name Troll Patrol)
- added Commendation Badges that can be gotten for Champion's Writs (reported
  by Speeddymon)

30100.1
- fixed toc for patch 3.1
- added Dalaran fishing daily for Kirin tor

30008.4
- fixed lowest possible rep from 0 to 1 for Free Knot and Gordok Ogre Suit
  in order to properly show up (reported by Chaoslux)
- completed french faction names (thanks to the Armory)
- various corrections (reported by Motoss and athenalesa, elaborated
  excellently by Chaoslux):
  - fixed "The Mag'har", it was missing the article
  - fixed Bloodsail Bucaneers (now lists quests starting at hated instead of
    neutral)
  - fixed Syndicate (now lists quests starting at hated instead of
    neutral)
  - fixed Magram and Gelkis clan centaurs (now lists quests starting at hated
    instead of neutral)
  - added Horde Expedition and Alliance Vanguard

30008.3
- revised Brood of Nozdormu rep gains (reported by quantorsht)
- some more missing german localisation (reported by toxxic1975)
- added "Can't get Ear-Nough" which gives 150 Cenarion Exp rep (reported
  by Alisiya)

30008.2
- fixed name of "The Scales of the Sands" (reported by Chaoslux)
- changed "Thrusting Hodir's Spear" to give 500 rep instead of 350
- added championing gain (suggested by nintodne)
- Free Knot! the quest in Dire Maul gives 350 rep with all four goblins, from
  0 Hated to 999 Exalted, as well as Gordok Ogre Suit giving 75. (Chaoslux)
- Epic Darkmoon Decks gives 350 rep upon turn in, as well as the low level
  decks (Rogues,Mages,Swords,Demon) give 25 rep, till 999 exalted. (Chaoslux)
- localised WotLK entries for deDE
- fixed The Scale of the Sands for english localisation as well (german had
  been fixed earlier)
- fixed Explorer's league
- fixed various typos and quest names

30008.1
- added Commendetion Badges given for normal level 80 daily dungeon quests
  (reported by nintodne)
- added daily level 80 normal and heroic dungeon quests
- added Vrykul Bone quests for Ebon Blade (reported by nintodne)
- added "Shoot them up" for Ebon Blade (reported by RenScotson)
- removed distinction between grey/non-grey mobs as all mobs now give full
  rep (pointed out by mysticalos)

30003.2
- added scale of sands mobs (in addition to full clear) (suggested by Chaoslux)
- updated various northrend factions
- added field to show reputation needed until exalted

30003.1
- added first Northrend factions and daily quests for some of them
  (what I found on WoWWiki so far, still a bit shaky, I guess)

30002.2
- added command /fz sso all to bring all Shattered Sun phases to completed
  (suggested by SilverShadow)
- updated various reps (Timbermaw, Steamwheedle cartel, Sporegar, Argent
  Dawn)

30002.1
- adjusted toc for patch 3.0.2
- changed code to match all the API changes of patch 3.0.2
- fixed Shattari Skyguard quests in BEM
- fixed title of "The not-so-friendly skies..."
- fixed number of [Netherwing crystals] to 30

20400.8
- fixed heroic slave pens and underbog not being listed as giving rep for
  CE when revered in locales other than deDE (reported by CYPSYAN)
- reduced rep for Multiphase Survey from 250 to 150 (reported by Elvenblood)
- fixed heroic ramparts & blood furnace being available at honored
- fixed sethek halls and auchenai crypt availability
- fixed heroic shadow lab reputation

20400.7
- added Nagrand PvP Quests (reported by CYPSYAN)
- name of phase 4c fixed
- localised some phases in german
- added possibility to exclude some quests from the summary in order to better
  show how long it takes to the next reputation level if one does not do all
  daily quests (suggested by Tony M)

20400.6
- fixed some of the deDE localisations of faction names
  (based on data provided by Hatryn)
- full deDE localisation of all quest/mob/item data (using www.buffed.de)

20400.5
- now showing active quests in colour so it should be easier to
  estimate how much reputation you're likely to get when finishing
  them
- changed header in Blizzard's reputation window from "(Missing)"
  to "(to next)" (in the german localisation from "(Fehlend)" to
  "(zur nchsten)" as this caused a lot of confusion (people thought
  it was an error message
- made chat frame to which messages are printed configurable (suggested
  by dylanparry)

20400.4
- updated Shattari Skyguard reputation gains (reported by Samrec)

20400.3
- fixed bug when displaying status (reported by Linmaris)
- fixed german localisation (umlauts to UTF) (reported by Linmaris)

20400.2
- filtering quests for Shattered Sun Offensive based on phase
- fixed bug that disallowed expanding the "Inactive" reputation group

20400.1
- added Shattered Sun Offensive reputation
- "Uncataloged Species" now only listed to give Cenarion Expedition until
  honoured (reported by hohner)
- updated TOC for patch 2.4.0
- added possibility to list all addons by Urbin

20300.2
- fixed FIZ_Entries nil exception (reported by Eanon)

20300.2
- tooltip now shows how long a quest/instance/mob/item yields reputation
- updated frostsaber rep (reported by sir-markus)
- corrected incorrect help display (reported by Ken)
- reputation for WSG and AB wins (reported by Brutalisdk)
- added #Note keyword to TOC for WoWUiUpdater (suggested by Chmee)
- added "/fz de" command to show german standing names for people like
  me who are playing on a german speaking realm using an english client
- fixed spelling for various item names
- added Tanaris pirates who give steamwheedle cartel rep
- added coilfang reservoir instance rep gains
- added Sporeggar rep mobs
- added rep for various heroic instances

20300.1
- added new instances and mobs for some outland factions

20300.1
- fixed TOC for patch 2.3.0

20200.5
- added possibility to sort reputation frame by standing

20200.4
- doubled Timbermaw Hold, Cenarion Circle, Argent Dawn Reputation (patch 2.2)
- Fixed various typos in quest names
- added /fz list <standing> command to show all factions with which you have
  a certain standing

20200.3
- showing reputation in bags, bank and completed quests as a small grey bar
  in the reputation window
- fixed various quest names
- localised the options button
- completed tooltips for options

20200.2
- adjusted reputation from 250 to 350 of "The Relic's Emanation"
- added consideration of completed (non-item) quests
- added buttons to collapse / expand all entries
- added buttons to show / hide all types of reputation gain methods
- improved displayed list (showing items carried that can be used in list)
- added key binding to open reputation window and reputation detail window
  at the same time

20200.1
- fixed TOC for patch 2.2.0
- detail frame is now showing experience gained in the current session
- added slash commands to enable/disable settings
- fixed suppressing of original chat messages (works now)

20103.7
- now showing "preview" reputation available due to bag and bank contents
  (suggested by LoTekGuru and ASKF)
- added repeatable AV PvP and old world main faction quests
- added 10% bonus for Humans (reported by CatrionaR)
- added Scryer, Aldor and Sha'tar single mark turn-ins (reported by CatrionaR)
- extended tooltip to show details for each way to gain reputation

20103.6.1
- fixed typo in FIZ_DumpReputationChangesToChat()

20103.6
- added missing tooltips for option window
- removed dummy entries for Ironforge
- added key binding to open options

20103.5
- Showing spillover reputation (reputation gained for all factions), when
  any reputation is gained at all (suggested by CatrionaR)
- added configuration options

20103.4
- All Factions but "Syndicate" localised in deDE. The Addon will now work
  with the German client, even though the hints will contain the English
  names of quests, instances and items
- fixed some flaws in the German localisation.

20103.3
- added checkboxes to filter Q/D/M/I information
- added text to indicate if no information for a faction is available
- prepared code for localisation
- fixed a bug where the detail window was not updated when reputation
  values changed
- German localisation of output texts done (but still missing faction
  names, so the German version won't work; also, still missing German
  texts for all the data)

20103.2
- added items category
- added limits
- extended reputation window with missing reputation
- /fz displays selected or watched faction info if not faction name is
  specified


20103.1
- first version
