Quantcast
A list of friendshipRepIDs? - WoWInterface
Thread Tools Display Modes
02-18-22, 07:17 PM   #1
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
A list of friendshipRepIDs?

I went looking through Wowpedia and Wowhead and couldn't find the friendshipRepIDs for factions that are friends. Searching Wowpedia for 'factionid' returned the expected factionIDs, but those are not the same numbers.

The best I could do was this search on WoW.tools with the ID column, but I can't confirm the results. Plus, that is awkward to crawl through if I only want a list.

I can write a quick and dirty addon to parse my reputation panel, but I don't have every friend discovered and the results would be incomplete.

What I'd like is 'name' = friendshipRepID or even factionID = friendshipRepID. Did I miss something in the online tools?
  Reply With Quote
02-18-22, 07:50 PM   #2
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 302
Not sure if either of these are of any help...

https://wowpedia.fandom.com/wiki/API...shipReputation
https://wowpedia.fandom.com/wiki/API...eputationRanks
__________________
AddOns: Tim @ WoWInterface
Characters: Hunter, Mage, Priest, Monk, DH,
Battle Tag: Tim#11172
Current PC Setup: PCPartPicker List
  Reply With Quote
02-18-22, 10:28 PM   #3
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
If I build a quick and dirty addon, the first API will be useful. Sadly, the second does not work. https://wowpedia.fandom.com/wiki/API...eputationRanks returns 0, 0, probably because Blizzard added friends that have different maximum ranks.

Garrison bodyguards have 3 ranks, others have 5, some have 6, a few have 7, and the Naz'jatar trio by the campfire have 30, plus a few oddballs in between.

I don't actually need the friendshipRepIDs for my main project; knowing those would be convenient. This was more of a curiosity question.
  Reply With Quote
02-22-22, 04:45 AM   #4
arkayenro
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 12
Originally Posted by myrroddin View Post
Sadly, the second does not work.
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.

Last edited by arkayenro : 02-22-22 at 05:00 AM.
  Reply With Quote
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,203
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
02-22-22, 08:37 PM   #6
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,016
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.
[...]
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.

To me it looks like both refer to the same ID. Also I could swear it was bugged, and Blizzard fixed it some point in time. Anyway it's a wiki, the point is that anyone can fix wrong documentation...
  Reply With Quote
02-22-22, 08:37 PM   #7
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,016
Originally Posted by myrroddin View Post
I will test it later today. If you are correct, that's brilliant!
Yeah, just iterate up to a high ID and if its a friendship then GetFriendshipReputation() will return valid information. Otherwise look it up on:
Originally Posted by myrroddin View Post
The best I could do was this search on WoW.tools with the ID column, but I can't confirm the results. Plus, that is awkward to crawl through if I only want a list.
[...]
What I'd like is 'name' = friendshipRepID or even factionID = friendshipRepID. Did I miss something in the online tools?
It shouldn't be "awkward to crawl through" if you have a CSV reader in your preferred language or even in excel / google sheets

Last edited by Ketho : 02-22-22 at 08:59 PM.
  Reply With Quote
02-22-22, 09:49 PM   #8
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
Originally Posted by Ketho View Post
It shouldn't be "awkward to crawl through" if you have a CSV reader in your preferred language or even in excel / google sheets
I don't have such a thing, and wouldn't know how to create one. Anyway, my question is answered, problems are solved. I just need to finish coding the update to my addon. Better late than never, I suppose
  Reply With Quote
02-22-22, 11:00 PM   #9
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 615
Originally Posted by arkayenro View Post
just call it with the friendid, not the factionid and youll be fine. that api page needs to be fixed.
The only difference between the two IDs is whether or not the friendship functions return data. A friend is a type of faction. Factions and friends aren't like 1-10 for one then 1-10 for another, it's more like factions 1-20 but 6, 8, 14, 15, and 19 are friends. The friendship functions will only return data for a faction labeled as a friend, but all the faction functions return data for them all.
  Reply With Quote
02-23-22, 10:06 AM   #10
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,203
o_O that explains all the gaps in the factionIDs list. The friends are the "hidden" or "missing" numbers. Suddenly it all makes sense.

Incidentally, with all of your help, I got my ElvUI plugin updated last night without hard-coding maximum ranks. Thank you everybody!
  Reply With Quote
02-25-22, 07:57 AM   #11
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,016
Originally Posted by myrroddin View Post
o_O that explains all the gaps in the factionIDs list. The friends are the "hidden" or "missing" numbers. Suddenly it all makes sense.

Well I'll be fixing https://wowpedia.fandom.com/wiki/API...eputationRanks again because a friendshipID technically only exists in the DB2, I hope you understand now that they are a subset / the same ID

Last edited by Ketho : 02-25-22 at 11:39 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » A list of friendshipRepIDs?

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