WoWInterface (
-   Lua/XML Help (
-   -   Reputation data incorrect - Fixed! (

Mayron 11-18-16 05:50 PM

Reputation data incorrect - Fixed!
EDIT: I FIXED THE PROBLEM!: I'm stupid. I need to use the minimum value and minus it from the value and max value. I have no idea why the minimum value is not 0. I'm sure there is a good reason..

I'm not sure why this is but running this in-game:

/run for i = 1, 50 do print(GetFactionInfo(i)) end

will print all of the wrong min and max values for reputations; they do not match the values of reputations found in the Reputation Frame.
Does anyone know how to get the correct information for reputations (especially for the Watched Reputation)?

Also this prints the wrong information as well! Event if I run it after the event: "UPDATE_FACTION"
Lua Code:
  1. local name, standingID, barMin, barMax, barValue = GetWatchedFactionInfo()
I am not sure if it is all reputations, but a lot of them don't work. The min, max, and value numbers are usually always too high. Thank you for reading.

Eternal_Lynx 11-22-16 04:03 AM

If you have exact 0 reputation, you're at 0/3000 Neutral (0~3000).
So 3326 reputation means 3326-3000 = 326 /6000 Friendly (so now that bar is from 3000~9000).

All times are GMT -6. The time now is 01:39 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI