I'm currently trying to figure out a way to figure out a character's faction NOT based on their race. My reason for this is because some players are on foreign clients where race names aren't going to be able to be matched up since they're in another language.
One way I'm pretty sure would work would to match their racial's based on spellId, the only thing with that would be it'd be a lot of wasted space in my opinion.
My other idea would be to use the command "GetDefaultLanguage()" WoWProgramming says that it:
Code:
Returns the name of the player character's default language.
This is the language used in the chat system (Common or Orcish, as opposed to Taurahe, Darnassian, etc),
not the real-world language of the client or server.
but I'm wondering if "Common" or "Orcish" would come through as something else if it were another language other than English.
Does anyone know if it always comes back as "Common" or something else? And does anyone have any other ideas how to figure out faction for all clients? Thanks in advance!