View Single Post
03-26-09, 01:22 PM   #7
Darthgnomer
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jun 2006
Posts: 7
GetFactionInfo(index) only returns data about the player, the character which I am logged in as. However, I am trying to get data about any given NPC such as a questgiver, city guard, or merchant which I am assumingly interacting with in the form or targeting, mousing over, or having their chat dialog open with such as the 'MERCHANT_SHOW' event has fired.

How do you find out a NPC's faction?

If I mouse over a NPC in the Scryer area of Shatt or one of the many mage looking NPCs in Dalaran my cursor tooltip will reveal their faction such as 'The Scryers' or 'Kirin Tor' for these examples respectively.

How can I find out this information for an addon? I've looked around the APIs on WoWWiki and tried to reverse engineer CowTip but I am lost. Any information or simple examples would be very appreciated.

Last edited by Darthgnomer : 03-26-09 at 01:26 PM.
  Reply With Quote