/// <summary> /// 炼制系统命令处理 /// </summary> public bool processCmd(GameClient client, string[] cmdParams) { int nID = (int)CmdID; if (CmdID == TCPGameServerCmds.CMD_SPR_UPGRADE_CHENGJIU) { int nRoleID = Global.SafeConvertToInt32(cmdParams[0]); // 角色ID int nChengJiuLevel = Global.SafeConvertToInt32(cmdParams[1]); // 角色成就等级 int nRet = ChengJiuManager.TryToActiveNewChengJiuBuffer(client, true, nChengJiuLevel); String strCmd = string.Format("{0}:{1}", nRoleID, nRet); client.sendCmd(nID, strCmd); return(true); } return(false); }
public bool processCmd(GameClient client, string[] cmdParams) { int nID = (int)this.CmdID; bool result; if (this.CmdID == TCPGameServerCmds.CMD_SPR_UPGRADE_CHENGJIU) { int nRoleID = Global.SafeConvertToInt32(cmdParams[0]); int nChengJiuLevel = Global.SafeConvertToInt32(cmdParams[1]); int nRet = ChengJiuManager.TryToActiveNewChengJiuBuffer(client, true, nChengJiuLevel); string strCmd = string.Format("{0}:{1}", nRoleID, nRet); client.sendCmd(nID, strCmd, false); result = true; } else { result = false; } return(result); }