send(channel, agentID, charData.primary.ordinal(), charData.secondary.ordinal(), true);
}
public static void send(Channel channel, int agentID, int primary, int secondary, boolean isPvP)
{
P171_UpdatePrivProfessions updatePrivateProfessions = new P171_UpdatePrivProfessions();
updatePrivateProfessions.init(channel);
updatePrivateProfessions.setAgentID(agentID);
updatePrivateProfessions.setPrimaryProf((byte) primary);
updatePrivateProfessions.setSecondaryProf((byte) secondary);
updatePrivateProfessions.setIsPvP((byte) (isPvP ? 1 : 0));
channel.writeAndFlush(updatePrivateProfessions);
}