creature_template 对应的 npcflag 说明
 
    UNIT_NPC_FLAG_NONE                  = 1,         
    UNIT_NPC_FLAG_GOSSIP                = 2,                //有菜单的NPC 100%
    UNIT_NPC_FLAG_QUESTGIVER            = 4,                //任务给予者 100%
    UNIT_NPC_FLAG_UNK1                  = 8,         
    UNIT_NPC_FLAG_UNK2                  = 16,        
    UNIT_NPC_FLAG_TRAINER               = 32,               // 训练师100%
    UNIT_NPC_FLAG_TRAINER_CLASS         = 64,               // 职业训练师100%
    UNIT_NPC_FLAG_TRAINER_PROFESSION    = 128,              // 专业训练师100%
    UNIT_NPC_FLAG_VENDOR                = 256,              // 商店NPC100%
    UNIT_NPC_FLAG_VENDOR_AMMO           = 512,              // 商店NPC 普通物质商人100%, general goods vendor
    UNIT_NPC_FLAG_VENDOR_FOOD           = 1024,             // 食物商人100%
    UNIT_NPC_FLAG_VENDOR_POISON         = 2048,             // guessed
    UNIT_NPC_FLAG_VENDOR_REAGENT        = 4096,             // 100%
    UNIT_NPC_FLAG_REPAIR                = 8192,             // 修理商人100%
    UNIT_NPC_FLAG_FLIGHTMASTER          = 16384,            // 100%
    UNIT_NPC_FLAG_SPIRITHEALER          = 32768,            // guessed
    UNIT_NPC_FLAG_SPIRITGUIDE           = 65536,            // guessed
    UNIT_NPC_FLAG_INNKEEPER             = 131072,           // 旅店管理员?100%
    UNIT_NPC_FLAG_BANKER                = 262144,           // 银行100%
    UNIT_NPC_FLAG_PETITIONER            = 524288,           // 100% 0xC0000 = guild petitions, 0x40000 = arena team petitions
    UNIT_NPC_FLAG_TABARDDESIGNER        = 1048576,          // 100%
    UNIT_NPC_FLAG_BATTLEMASTER          = 2097152,          // 战场管理员100%
    UNIT_NPC_FLAG_AUCTIONEER            = 4194304,          // 100%
    UNIT_NPC_FLAG_STABLEMASTER          = 8388608,          // 100%
    UNIT_NPC_FLAG_GUILD_BANKER          = 16777216,         // cause client to send 997 opcode
    UNIT_NPC_FLAG_SPELLCLICK            = 33554432,         // cause client to send 1015 opcode (spell click)
    UNIT_NPC_FLAG_PLAYER_VEHICLE        = 67108864,         // players with mounts that have vehicle data should have it set
    UNIT_NPC_FLAG_REFORGER              = 134217728,        // reforging
    UNIT_NPC_FLAG_TRANSMOGRIFIER        = 268435456,        // transmogrification
    UNIT_NPC_FLAG_VAULTKEEPER           = 536870912,        // void storage
    UNIT_NPC_FLAG_PETBATTLE             = 1073741824,       // 战宠pet battle
    UNIT_NPC_FLAG_BLACK_MARKET          = -2147483648        // black market auction house
 
 
大概意思, 对应翻译一下
 
例如:
如果要配置一个训练师和商店集成的NPC,那么这个NPC的npcflag就应该是UNIT_NPC_FLAG_TRAINER + UNIT_NPC_FLAG_VENDOR = 32+256