Lua Unit HasNPCFlag

Parameters

 * (flagID)


 * flagID
 * Integer value of an NPC flag (see known values).

Details

 * type
 * boolean


 * state
 * True if this unit has a specific NPC flag associated with it.

Known Values

 * None = 0x00000000
 * Gossip = 0x00000001
 * Questgiver = 0x00000002
 * UNK1 = 0x00000004
 * UNK2 = 0x00000008
 * CanTrain = 0x00000010
 * BattlePetTrainer = 0x00000020
 * DailyQuests = 0x00000040
 * CanSell = 0x00000080
 * SellsAmmo = 0x00000100
 * SellsFood = 0x00000200
 * VENDOR_POISON = 0x00000400
 * SellsReagents = 0x00000800
 * CanRepair = 0x00001000
 * Flightmaster = 0x00002000
 * Spirithealer = 0x00004000
 * Spiritguide = 0x00008000
 * Innkeeper = 0x00010000
 * Banker = 0x00020000
 * Petitioner = 0x00040000
 * Tabarddesigner = 0x00080000
 * Battlemaster = 0x00100000
 * Auctioneer = 0x00200000
 * Stablemaster = 0x00400000
 * GuildBanker = 0x00800000
 * SPELLCLICK = 0x01000000
 * MailInfo = 0x4000000
 * ForgeMaster = 0x8000000
 * Transmogrifier = 0x10000000
 * VoidStorageBanker = 0x20000000