Quantcast WoWInterface - View Single Post - Faction from GetPlayerInfoByGUID()
View Single Post
12-02-12, 01:21 PM   #19
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by semlar View Post
Here'a a "quick" and dirty method for getting the faction from a unit's GUID using its tooltip:
Looks promising, though if you're going to make the ScanFaction function a global, I'd suggest giving a less generic name, like GetPlayerFactionFromGUID or something. Also not sure about speed of waiting for the server to send a tooltip vs. waiting for the server to tell you sending a message failed, but I guess it's faster than waiting on a timeout to assume a message succeeded.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote