protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int num = CheatCommandBase.StringToEnum(InArguments[0], typeof(GMMailAccessCount)); CheatCmdRef.set_stSendMail(new CSDT_CHEAT_SENDMAIL()); CheatCmdRef.get_stSendMail().bMailType = 1; CheatCmdRef.get_stSendMail().bMailsubType = 2; CheatCmdRef.get_stSendMail().bAccessCnt = (byte)num; CheatCmdRef.get_stSendMail().astAccess = new COMDT_MAILACCESS[num]; for (int i = 0; i < num; i++) { CheatCmdRef.get_stSendMail().astAccess[i] = new COMDT_MAILACCESS(); CheatCmdRef.get_stSendMail().astAccess[i].bGeted = 1; CheatCmdRef.get_stSendMail().astAccess[i].bAccessType = 1; CheatCmdRef.get_stSendMail().astAccess[i].stAccessInfo = new COMDT_MAILACCESS_INFO(); CheatCmdRef.get_stSendMail().astAccess[i].stAccessInfo.set_stProp(new COMDT_MAILACCESS_PROP()); CheatCmdRef.get_stSendMail().astAccess[i].stAccessInfo.get_stProp().wPropType = (ushort)CheatCommandBase.SmartConvert <int>(InArguments[i * 3 + 1]); CheatCmdRef.get_stSendMail().astAccess[i].stAccessInfo.get_stProp().dwPropID = (uint)CheatCommandBase.SmartConvert <int>(InArguments[i * 3 + 2]); CheatCmdRef.get_stSendMail().astAccess[i].stAccessInfo.get_stProp().iPropNum = CheatCommandBase.SmartConvert <int>(InArguments[i * 3 + 3]); } return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { GMMailAccessType gMMailAccessType = (GMMailAccessType)CheatCommandBase.StringToEnum(InArguments[0], typeof(GMMailAccessType)); CheatCmdRef.set_stSendMail(new CSDT_CHEAT_SENDMAIL()); if (gMMailAccessType == GMMailAccessType.金币) { CheatCmdRef.get_stSendMail().bMailType = 1; CheatCmdRef.get_stSendMail().bMailsubType = 2; CheatCmdRef.get_stSendMail().bAccessCnt = 1; CheatCmdRef.get_stSendMail().astAccess = new COMDT_MAILACCESS[1]; CheatCmdRef.get_stSendMail().astAccess[0] = new COMDT_MAILACCESS(); CheatCmdRef.get_stSendMail().astAccess[0].bGeted = 1; CheatCmdRef.get_stSendMail().astAccess[0].bAccessType = 4; CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo = new COMDT_MAILACCESS_INFO(); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.set_stRongYu(new COMDT_MAILACCESS_RONGYU()); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.get_stRongYu().dwRongYuPoint = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]); } else if (gMMailAccessType == GMMailAccessType.钻石) { CheatCmdRef.get_stSendMail().bMailType = 1; CheatCmdRef.get_stSendMail().bMailsubType = 2; CheatCmdRef.get_stSendMail().bAccessCnt = 1; CheatCmdRef.get_stSendMail().astAccess = new COMDT_MAILACCESS[1]; CheatCmdRef.get_stSendMail().astAccess[0] = new COMDT_MAILACCESS(); CheatCmdRef.get_stSendMail().astAccess[0].bGeted = 1; CheatCmdRef.get_stSendMail().astAccess[0].bAccessType = 2; CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo = new COMDT_MAILACCESS_INFO(); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.set_stMoney(new COMDT_MAILACCESS_MONEY()); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.get_stMoney().bType = 7; CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.get_stMoney().dwMoney = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]); } else if (gMMailAccessType == GMMailAccessType.心) { DebugHelper.Assert(this.CachedFriendInfo != null); CheatCmdRef.get_stSendMail().szTo = this.CachedFriendInfo.szUserName; CheatCmdRef.get_stSendMail().ullToUid = this.CachedFriendInfo.stUin.ullUid; CheatCmdRef.get_stSendMail().dwToLogicWorld = this.CachedFriendInfo.stUin.dwLogicWorldId; CheatCmdRef.get_stSendMail().bMailType = 2; CheatCmdRef.get_stSendMail().bMailsubType = 2; CheatCmdRef.get_stSendMail().bAccessCnt = 1; CheatCmdRef.get_stSendMail().astAccess = new COMDT_MAILACCESS[1]; CheatCmdRef.get_stSendMail().astAccess[0] = new COMDT_MAILACCESS(); CheatCmdRef.get_stSendMail().astAccess[0].bGeted = 1; CheatCmdRef.get_stSendMail().astAccess[0].bAccessType = 3; CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo = new COMDT_MAILACCESS_INFO(); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.set_stHeart(new COMDT_MAILACCESS_HEART()); CheatCmdRef.get_stSendMail().astAccess[0].stAccessInfo.get_stHeart().dwHeart = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]); } return(CheatCommandBase.Done); }