Mananing standing with non-standard factions
Hello,
How could I manage specials factions reputation, those which standing name or reputations not handled by FACTION_STANDING_LABEL, as described here: https://wowpedia.fandom.com/wiki/StandingId I currently use GetFactionInfo() to retreive factions standing but results are very strange with non-standard factions. Thank you. |
Do you mean 'friendships' with individuals? GetFriendshipReputation()
https://wowpedia.fandom.com/wiki/API...shipReputation |
Quote:
Lua Code:
What I would like to do is just to have correct values from GetFactionInfo() with some specials factions like Venari for instance. |
When are you running the above code?
|
Normally at LOGIN event.
For testing purpose, I ran the script manually (long time after LOGIN) with the same NIL result. |
Quote:
Even on a fresh login GetFriendshipReputation() returns valid information for me, without waiting for any events Lua Code:
|
GetFriendshipReputation(47) - Stormwind - returns nil, so it seems this function only returns values for "non-standard" factions standing.
|
Quote:
That's exactly what DahkCeles is saying. Quote:
|
Quote:
Can you elaborate? What in particular is strange about the results? This looks fine to me. Lua Code:
Lua Code:
|
Quote:
https://wowpedia.fandom.com/wiki/StandingId So I now understand these factions have to managed with GetFriendshipReputation(), as DahkCeles said. |
If I understand the question correctly, FACTION_STANDING_LABEL_n is a 0-8 table. While the names are "Unknown" through "Exalted", the 0-8 should map to friendship levels, even if the text isn't the same. In Ve'nari's case, there should be 9 (0-8) friendship levels, just as Chromie or Jogu the Drunk.
If you want the correct text, because "Unknown" through "Exalted" aren't applicable, you'll need the seventh return of GetFriendShipLevel(). AFAIK, all "friends" have the same 9 faction levels to be compatible with FACTION_STANDING_LABEL_n. You can also look into https://wowpedia.fandom.com/wiki/API...eputationRanks |
Oops, I had told you some incorrect information. Friendships do not have 9 levels; that wouldn't make sense. They have between 6 and 8 ranks of "standingID" just to be confusing.
The "standingID" of friends should map to FACTION_BAR_COLORS, which is what I was thinking about in my first post. Not all the values of FACTION_BAR_COLORS will work obviously. Update: Blizzard always defines friends as colour index 5, which is green, or FACTION_BAR_COLORS[5]. Look at lines 51-77 of https://www.townlong-yak.com/framexm...utationBar.lua |
Quote:
And thank you myrroddin for all these informations. Handling the reputations is not very convenient at this time. |
All times are GMT -6. The time now is 05:56 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI