AgentIdentifiers agentIDs = entity.get(AgentIdentifiers.class);
NPCData npc = entity.get(NPCData.class);
CharData charData = entity.get(CharData.class);
// send the messages...
P074_NPCGeneral genStats = new P074_NPCGeneral();
genStats.init(channel);
genStats.setLocalID(agentIDs.localID);
genStats.setNPCFile(npc.fileID);
genStats.setScale(npc.scale << 24);
genStats.setFlags(npc.flags);
genStats.setProfession((byte) charData.primary.ordinal());
genStats.setLevel((byte) charData.level);
genStats.setTexture(npc.texture);
genStats.setName(npc.hashedName);
genStats.setUnknown1(0);
channel.writeAndFlush(genStats);
// prepare NPC model file hash
P075_NPCModel.NestedModelFile[] modelFile = new P075_NPCModel.NestedModelFile[npc.modelHashes.length];