public bool ProcessCmdTalentAddEffect(GameClient client, int nID, byte[] bytes, string[] cmdParams) { try { if (!CheckHelper.CheckCmdLengthAndRole(client, nID, cmdParams, 3)) { return(false); } int effectId = int.Parse(cmdParams[1]); int count = int.Parse(cmdParams[2]); int state = TalentManager.TalentAddEffect(client, effectId, count); TalentData talentData = TalentManager.GetTalentData(client); talentData.State = state; client.sendCmd <TalentData>(1003, talentData, false); return(true); } catch (Exception ex) { DataHelper.WriteFormatExceptionLog(ex, Global.GetDebugHelperInfo(client.ClientSocket), false, false); } return(false); }