Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-18-16, 05:50 PM   #1
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
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.

Last edited by Mayron : 11-18-16 at 06:18 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Reputation data incorrect - Fixed!


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off