protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stUpdAcntInfo = new CSDT_CHEAT_UPDACNTINFO(); CheatCmdRef.stUpdAcntInfo.iUpdType = CheatCommandBase.StringToEnum(InArguments[0], typeof(AcntInfoUpdateType)); CheatCmdRef.stUpdAcntInfo.iUpdValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stAddRewardMatchPool = new CSDT_CHEAT_MATCHPOOL(); CheatCmdRef.stAddRewardMatchPool.iMapID = CheatCommandBase.SmartConvert <int>(InArguments[0]); CheatCmdRef.stAddRewardMatchPool.iValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stAddFightHistory = new CSDT_CHEAT_ADD_FIGHTHISTORY(); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CheatCmdRef.stAddFightHistory.stFightRecord.bGameType = 6; CheatCmdRef.stAddFightHistory.stFightRecord.bPlayerCnt = 4; CheatCmdRef.stAddFightHistory.stFightRecord.bWinCamp = 1; CheatCmdRef.stAddFightHistory.stFightRecord.dwGameStartTime = (uint)CRoleInfo.GetCurrentUTCTime(); CheatCmdRef.stAddFightHistory.stFightRecord.dwGameTime = 0x3e8; for (int i = 0; i < 4; i++) { CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].bHeroLv = 1; CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].bPlayerLv = 1; CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].bPlayerCamp = (i >= 2) ? ((byte)2) : ((byte)1); int id = UnityEngine.Random.Range(0, GameDataMgr.robotRookieHeroSkinDatabin.Count()); ResFakeAcntHero dataByIndex = GameDataMgr.robotRookieHeroSkinDatabin.GetDataByIndex(id); CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].dwHeroID = dataByIndex.dwHeroID; StringHelper.StringToUTF8Bytes(i.ToString(), ref CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].szPlayerName); if (i == 0) { CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].ullPlayerUid = masterRoleInfo.playerUllUID; CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].iPlayerLogicWorldID = MonoSingleton <TdirMgr> .GetInstance().SelectedTdir.logicWorldID; } else { CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].ullPlayerUid = (ulong)i; CheatCmdRef.stAddFightHistory.stFightRecord.astPlayerFightData[i].iPlayerLogicWorldID = i; } } Singleton <CPlayerPvpHistoryController> .GetInstance().AddSelfRecordData(CheatCmdRef.stAddFightHistory.stFightRecord); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.set_stWarmBattleCnt(new CSDT_CHEAT_WARMBATTLE_CNT()); CheatCmdRef.get_stWarmBattleCnt().bMapMemberNum = CheatCommandBase.SmartConvert <byte>(InArguments[0]); CheatCmdRef.get_stWarmBattleCnt().dwBattleNum = CheatCommandBase.SmartConvert <uint>(InArguments[1]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { DebugHelper.Assert(InArguments.Length > 0); int inValue = CheatCommandBase.SmartConvert <int>(InArguments[0]); this.FillMessageField(ref CheatCmdRef, inValue); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { uint dwAchieveID = CheatCommandBase.SmartConvert <uint>(InArguments[0]); CheatCmdRef.set_stDoneAchieve(new CSDT_CHEAT_DONE_ACHIEVE()); CheatCmdRef.get_stDoneAchieve().dwAchieveID = dwAchieveID; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stRecruitmentRelation = new CSDT_CHEAT_RECRUITMENTRELATION(); CheatCmdRef.stRecruitmentRelation.stUin.ullUid = CheatCommandBase.SmartConvert <ulong>(InArguments[0]); CheatCmdRef.stRecruitmentRelation.stUin.dwLogicWorldId = CheatCommandBase.SmartConvert <uint>(InArguments[1]); CheatCmdRef.stRecruitmentRelation.bRecruitmentType = CheatCommandBase.SmartConvert <byte>(InArguments[2]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int num = CheatCommandBase.SmartConvert <int>(InArguments[0]); CheatCmdRef.stSetSkillLvlMax = new CSDT_CHEAT_SET_SKILLLVL_MAX(); CheatCmdRef.stSetSkillLvlMax.dwHeroID = (uint)num; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stPassMultiGame = new CSDT_CHEAT_PASS_MULTI_GAME(); EWinOrLose eWinOrLose = (EWinOrLose)CheatCommandBase.StringToEnum(InArguments[0], typeof(EWinOrLose)); CheatCmdRef.stPassMultiGame.bGameResult = ((eWinOrLose == EWinOrLose.胜利) ? 1 : 2); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { uint dwAchieveID = CheatCommandBase.SmartConvert <uint>(InArguments[0]); CheatCmdRef.stResetAchieve = new CSDT_CHEAT_RESET_ACHIEVE(); CheatCmdRef.stResetAchieve.dwAchieveID = dwAchieveID; return(CheatCommandBase.Done); }
public override void OnRelease() { this.iCheatCmd = 0; if (this.stCheatCmdDetail != null) { this.stCheatCmdDetail.Release(); this.stCheatCmdDetail = null; } }
protected override void FillMessageField(ref CSDT_CHEATCMD_DETAIL CheatCmdRef, int InValue) { CheatCmdRef.stSetGuildInfo = new CSDT_CHEAT_SET_GUILD_INFO(); CheatCmdRef.stSetGuildInfo.iActive = -1; CheatCmdRef.stSetGuildInfo.iGuildMatchScore = InValue; CheatCmdRef.stSetGuildInfo.iGuildMatchWeekScore = -1; CheatCmdRef.stSetGuildInfo.iGuildMatchWeekRankNo = -1; CheatCmdRef.stSetGuildInfo.iGuildMatchSeasonRankNo = -1; }
protected override void FillMessageField(ref CSDT_CHEATCMD_DETAIL CheatCmdRef, int InValue) { CheatCmdRef.set_stSetGuildMemberInfo(new CSDT_CHEAT_SET_GUILD_MEMBER_INFO()); CheatCmdRef.get_stSetGuildMemberInfo().iGuildCoin = InValue; CheatCmdRef.get_stSetGuildMemberInfo().iGuildMatchScore = -1; CheatCmdRef.get_stSetGuildMemberInfo().iGuildMatchWeekScore = -1; CheatCmdRef.get_stSetGuildMemberInfo().iContinueWin = -1; CheatCmdRef.get_stSetGuildMemberInfo().iWeekMatchCnt = -1; }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stIntimacyRelation = new CSDT_CHEAT_INTIMACYRELATION(); CheatCmdRef.stIntimacyRelation.stUin.ullUid = CheatCommandBase.SmartConvert <ulong>(InArguments[0]); CheatCmdRef.stIntimacyRelation.stUin.dwLogicWorldId = CheatCommandBase.SmartConvert <uint>(InArguments[1]); CheatCmdRef.stIntimacyRelation.bIntimacyState = CheatCommandBase.SmartConvert <byte>(InArguments[2]); CheatCmdRef.stIntimacyRelation.dwTerminateTime = CheatCommandBase.SmartConvert <uint>(InArguments[3]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int num = CheatCommandBase.SmartConvert <int>(InArguments[0]); int num2 = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stAddHeroProficiency = new CSDT_CHEAT_HEROVAL(); CheatCmdRef.stAddHeroProficiency.dwHeroID = (uint)num; CheatCmdRef.stAddHeroProficiency.iValue = num2; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int dwHeroID = CheatCommandBase.SmartConvert <int>(InArguments[0]); int dwStar = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stSetHeroStar = new CSDT_CHEAT_SETHEROSTAR(); CheatCmdRef.stSetHeroStar.dwHeroID = (uint)dwHeroID; CheatCmdRef.stSetHeroStar.dwStar = (uint)dwStar; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { EHonorType iHonorID = CheatCommandBase.SmartConvert <EHonorType>(InArguments[0]); int iAddValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stChgHonorInfo = new CSDT_CHEAT_CHG_HONORINFO(); CheatCmdRef.stChgHonorInfo.iHonorID = (int)iHonorID; CheatCmdRef.stChgHonorInfo.iAddValue = iAddValue; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.set_stSetMasterHero(new CSDT_CHEAT_SET_MASTERHERO()); CheatCmdRef.get_stSetMasterHero().dwHeroID = CheatCommandBase.SmartConvert <uint>(InArguments[0]); CheatCmdRef.get_stSetMasterHero().dwWinCnt = CheatCommandBase.SmartConvert <uint>(InArguments[1]); CheatCmdRef.get_stSetMasterHero().dwGameCnt = CheatCommandBase.SmartConvert <uint>(InArguments[2]); CheatCmdRef.get_stSetMasterHero().ullAcntID = CheatCommandBase.SmartConvert <ulong>(InArguments[3]); CheatCmdRef.get_stSetMasterHero().iWorldLogicId = CheatCommandBase.SmartConvert <int>(InArguments[4]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.set_stChgRewardMatchInfo(new CSDT_CHEAT_CHG_REWARDMATCH_INFO()); CheatCmdRef.get_stChgRewardMatchInfo().dwMapId = CheatCommandBase.SmartConvert <uint>(InArguments[0]); CheatCmdRef.get_stChgRewardMatchInfo().iWinCnt = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.get_stChgRewardMatchInfo().iLossCnt = CheatCommandBase.SmartConvert <int>(InArguments[2]); CheatCmdRef.get_stChgRewardMatchInfo().iMatchCnt = CheatCommandBase.SmartConvert <int>(InArguments[3]); CheatCmdRef.get_stChgRewardMatchInfo().iPerfectCnt = CheatCommandBase.SmartConvert <int>(InArguments[4]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int dwHeroID = CheatCommandBase.SmartConvert <int>(InArguments[0]); int iValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.set_stAddHeroProficiency(new CSDT_CHEAT_HEROVAL()); CheatCmdRef.get_stAddHeroProficiency().dwHeroID = (uint)dwHeroID; CheatCmdRef.get_stAddHeroProficiency().iValue = iValue; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { EComplaintType dwType = CheatCommandBase.SmartConvert <EComplaintType>(InArguments[0]); int iValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.set_stDelCreditByType(new CSDT_CHEAT_DELCREDIT()); CheatCmdRef.get_stDelCreditByType().dwType = (uint)dwType; CheatCmdRef.get_stDelCreditByType().iValue = iValue; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int dwHeroID = CheatCommandBase.SmartConvert <int>(InArguments[0]); int iValue = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stSetHeroLvl = new CSDT_CHEAT_HEROVAL(); CheatCmdRef.stSetHeroLvl.dwHeroID = (uint)dwHeroID; CheatCmdRef.stSetHeroLvl.iValue = iValue; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stSetHeroCustomEquip = new CSDT_CHEAT_SET_HERO_CUSTOM_EQUIP(); CheatCmdRef.stSetHeroCustomEquip.dwHeroID = CheatCommandBase.SmartConvert <uint>(InArguments[0]); CheatCmdRef.stSetHeroCustomEquip.bForceRefresh = CheatCommandBase.SmartConvert <byte>(InArguments[7]); for (int i = 0; i < 6; i++) { CheatCmdRef.stSetHeroCustomEquip.EquipID[i] = CheatCommandBase.SmartConvert <uint>(InArguments[i + 1]); } return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stSetOffsetSec = new CSDT_CHEAT_SET_OFFSET_SEC(); CheatCmdRef.stSetOffsetSec.iYear = CheatCommandBase.SmartConvert <int>(InArguments[0]); CheatCmdRef.stSetOffsetSec.iMonth = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stSetOffsetSec.iDay = CheatCommandBase.SmartConvert <int>(InArguments[2]); CheatCmdRef.stSetOffsetSec.iHour = CheatCommandBase.SmartConvert <int>(InArguments[3]); CheatCmdRef.stSetOffsetSec.iMin = CheatCommandBase.SmartConvert <int>(InArguments[4]); CheatCmdRef.stSetOffsetSec.iSec = CheatCommandBase.SmartConvert <int>(InArguments[5]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { CheatCmdRef.stChgNewNormalMMR = new CSDT_CHEAT_CHG_NEW_NORMALMMR(); CheatCmdRef.stChgNewNormalMMR.bMMRType = CheatCommandBase.SmartConvert <byte>(InArguments[0]); CheatCmdRef.stChgNewNormalMMR.iMMR = CheatCommandBase.SmartConvert <int>(InArguments[1]); CheatCmdRef.stChgNewNormalMMR.dwWinNum = CheatCommandBase.SmartConvert <uint>(InArguments[2]); CheatCmdRef.stChgNewNormalMMR.dwTotalNum = CheatCommandBase.SmartConvert <uint>(InArguments[3]); CheatCmdRef.stChgNewNormalMMR.dwContinuousWin = CheatCommandBase.SmartConvert <uint>(InArguments[4]); CheatCmdRef.stChgNewNormalMMR.dwContinuousLose = CheatCommandBase.SmartConvert <uint>(InArguments[5]); return(CheatCommandBase.Done); }
protected override void FillMessageField(ref CSDT_CHEATCMD_DETAIL CheatCmdRef, int InValue) { CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo(); if (masterRoleInfo != null && (ulong)masterRoleInfo.UInt32ChgAdjust((uint)masterRoleInfo.DianQuan, InValue) > 2147483647uL) { DebugHelper.Assert(false, "超过点券最大值Int32.MaxValue!"); return; } CheatCmdRef.set_stGiveCoupons(new CSDT_CHEAT_COMVAL()); CheatCmdRef.get_stGiveCoupons().iValue = InValue; }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { int num = CheatCommandBase.SmartConvert <int>(InArguments[0]); int num2 = CheatCommandBase.SmartConvert <int>(InArguments[1]); int num3 = CheatCommandBase.SmartConvert <int>(InArguments[2]); CheatCmdRef.stSetHeroQuality = new CSDT_CHEAT_SETHEROQUALITY(); CheatCmdRef.stSetHeroQuality.dwHeroID = (uint)num; CheatCmdRef.stSetHeroQuality.stQuality.wQuality = (ushort)num2; CheatCmdRef.stSetHeroQuality.stQuality.wSubQuality = (ushort)num3; return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { string empty = string.Empty; if (this.CheckArguments(InArguments, out empty)) { CheatCmdRef.set_stUnlockHeroPVPMask(new CSDT_CHEAT_UNLOCK_HEROPVPMASK()); CheatCmdRef.get_stUnlockHeroPVPMask().dwHeroID = (uint)CheatCommandBase.SmartConvert <int>(InArguments[0]); return(CheatCommandBase.Done); } return(empty); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { ulong num = CheatCommandBase.SmartConvert <ulong>(InArguments[0]); uint num2 = CheatCommandBase.SmartConvert <uint>(InArguments[1]); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CheatCmdRef.stChgIntimacy = new CSDT_CHEAT_CHG_INTIMACY(); CheatCmdRef.stChgIntimacy.stUin.ullUid = ((num == 0uL) ? masterRoleInfo.playerUllUID : num); CheatCmdRef.stChgIntimacy.stUin.dwLogicWorldId = (uint)((num2 == 0u) ? masterRoleInfo.logicWorldID : ((int)num2)); CheatCmdRef.stChgIntimacy.wIntimacyValue = CheatCommandBase.SmartConvert <ushort>(InArguments[2]); return(CheatCommandBase.Done); }
protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef) { EPropTypeType type = CheatCommandBase.SmartConvert <EPropTypeType>(InArguments[0]); int num = CheatCommandBase.SmartConvert <int>(InArguments[1]); int num2 = CheatCommandBase.SmartConvert <int>(InArguments[2]); CheatCmdRef.stAddItem = new CSDT_CHEAT_ITEMINFO(); CheatCmdRef.stAddItem.wItemType = (ushort)type; CheatCmdRef.stAddItem.dwItemID = (uint)num; CheatCmdRef.stAddItem.wItemCnt = (ushort)num2; return(CheatCommandBase.Done); }