Thread Tools Display Modes
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
11-22-16, 04:03 AM   #2
Eternal_Lynx
An Aku'mai Servant
 
Eternal_Lynx's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 31
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).
__________________
Moo'. Are you happy now?
  Reply With Quote

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

Thread Tools
Display Modes

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