View Single Post
02-22-22, 11:19 AM   #5
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
Originally Posted by arkayenro View Post
it should work but it doesnt take the factionid it takes the friendid from the first apis return, at least thats i have mine coded and it seems to work ok.

you should be able to loop through 1-5000 for the GetFriendshipReputation function and check if the first return is set, if it is a "friend" then you can call GetFriendshipReputationRanks with that value to get the current and max ranks.

just double checked and my code works fine, just call it with the friendid, not the factionid and youll be fine. that api page needs to be fixed.
I will test it later today. If you are correct, that's brilliant!
  Reply With Quote