protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
 {
     CheatCmdRef.stChgRewardMatchInfo             = new CSDT_CHEAT_CHG_REWARDMATCH_INFO();
     CheatCmdRef.stChgRewardMatchInfo.dwMapId     = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
     CheatCmdRef.stChgRewardMatchInfo.iWinCnt     = CheatCommandBase.SmartConvert <int>(InArguments[1]);
     CheatCmdRef.stChgRewardMatchInfo.iLossCnt    = CheatCommandBase.SmartConvert <int>(InArguments[2]);
     CheatCmdRef.stChgRewardMatchInfo.iMatchCnt   = CheatCommandBase.SmartConvert <int>(InArguments[3]);
     CheatCmdRef.stChgRewardMatchInfo.iPerfectCnt = CheatCommandBase.SmartConvert <int>(InArguments[4]);
     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.stSetHeroLvl          = new CSDT_CHEAT_HEROVAL();
        CheatCmdRef.stSetHeroLvl.dwHeroID = (uint)num;
        CheatCmdRef.stSetHeroLvl.iValue   = num2;
        return(CheatCommandBase.Done);
    }
Exemple #3
0
 protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
 {
     CheatCmdRef.stSetMasterHero               = new CSDT_CHEAT_SET_MASTERHERO();
     CheatCmdRef.stSetMasterHero.dwHeroID      = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
     CheatCmdRef.stSetMasterHero.dwWinCnt      = CheatCommandBase.SmartConvert <uint>(InArguments[1]);
     CheatCmdRef.stSetMasterHero.dwGameCnt     = CheatCommandBase.SmartConvert <uint>(InArguments[2]);
     CheatCmdRef.stSetMasterHero.ullAcntID     = CheatCommandBase.SmartConvert <ulong>(InArguments[3]);
     CheatCmdRef.stSetMasterHero.iWorldLogicId = 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)
    {
        int dwHeroID = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int dwStar   = CheatCommandBase.SmartConvert <int>(InArguments[1]);

        CheatCmdRef.set_stSetHeroStar(new CSDT_CHEAT_SETHEROSTAR());
        CheatCmdRef.get_stSetHeroStar().dwHeroID = (uint)dwHeroID;
        CheatCmdRef.get_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.set_stChgHonorInfo(new CSDT_CHEAT_CHG_HONORINFO());
        CheatCmdRef.get_stChgHonorInfo().iHonorID  = (int)iHonorID;
        CheatCmdRef.get_stChgHonorInfo().iAddValue = iAddValue;
        return(CheatCommandBase.Done);
    }
Exemple #7
0
    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.stDelCreditByType        = new CSDT_CHEAT_DELCREDIT();
        CheatCmdRef.stDelCreditByType.dwType = (uint)dwType;
        CheatCmdRef.stDelCreditByType.iValue = iValue;
        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 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);
 }
Exemple #11
0
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        string outMessage = string.Empty;

        if (this.CheckArguments(InArguments, out outMessage))
        {
            CheatCmdRef.stUnlockHeroPVPMask          = new CSDT_CHEAT_UNLOCK_HEROPVPMASK();
            CheatCmdRef.stUnlockHeroPVPMask.dwHeroID = CheatCommandBase.SmartConvert <int>(InArguments[0]);
            return(CheatCommandBase.Done);
        }
        return(outMessage);
    }
    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.stGearAdvAll             = new CSDT_CHEAT_GEARADV_ALL();
        CheatCmdRef.stGearAdvAll.dwHeroID    = (uint)num;
        CheatCmdRef.stGearAdvAll.iQuality    = num2;
        CheatCmdRef.stGearAdvAll.iSubQuality = num3;
        return(CheatCommandBase.Done);
    }
Exemple #13
0
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        int num      = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int dwItemID = CheatCommandBase.SmartConvert <int>(InArguments[1]);
        int num2     = CheatCommandBase.SmartConvert <int>(InArguments[2]);

        CheatCmdRef.set_stAddItem(new CSDT_CHEAT_ITEMINFO());
        CheatCmdRef.get_stAddItem().wItemType = (ushort)num;
        CheatCmdRef.get_stAddItem().dwItemID  = (uint)dwItemID;
        CheatCmdRef.get_stAddItem().wItemCnt  = (ushort)num2;
        return(CheatCommandBase.Done);
    }
Exemple #14
0
    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);
    }
Exemple #15
0
    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)
    {
        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);
    }
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        int dwHeroID    = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int iQuality    = CheatCommandBase.SmartConvert <int>(InArguments[1]);
        int iSubQuality = CheatCommandBase.SmartConvert <int>(InArguments[2]);

        CheatCmdRef.set_stGearAdvAll(new CSDT_CHEAT_GEARADV_ALL());
        CheatCmdRef.get_stGearAdvAll().dwHeroID    = (uint)dwHeroID;
        CheatCmdRef.get_stGearAdvAll().iQuality    = iQuality;
        CheatCmdRef.get_stGearAdvAll().iSubQuality = iSubQuality;
        return(CheatCommandBase.Done);
    }
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        GMMailAccessType gMMailAccessType = (GMMailAccessType)CheatCommandBase.StringToEnum(InArguments[0], typeof(GMMailAccessType));

        CheatCmdRef.stSendMail = new CSDT_CHEAT_SENDMAIL();
        if (gMMailAccessType == GMMailAccessType.金币)
        {
            CheatCmdRef.stSendMail.bMailType                          = 1;
            CheatCmdRef.stSendMail.bMailsubType                       = 2;
            CheatCmdRef.stSendMail.bAccessCnt                         = 1;
            CheatCmdRef.stSendMail.astAccess                          = new COMDT_MAILACCESS[1];
            CheatCmdRef.stSendMail.astAccess[0]                       = new COMDT_MAILACCESS();
            CheatCmdRef.stSendMail.astAccess[0].bGeted                = 1;
            CheatCmdRef.stSendMail.astAccess[0].bAccessType           = 4;
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo          = new COMDT_MAILACCESS_INFO();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stRongYu = new COMDT_MAILACCESS_RONGYU();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stRongYu.dwRongYuPoint = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]);
        }
        else if (gMMailAccessType == GMMailAccessType.钻石)
        {
            CheatCmdRef.stSendMail.bMailType                                 = 1;
            CheatCmdRef.stSendMail.bMailsubType                              = 2;
            CheatCmdRef.stSendMail.bAccessCnt                                = 1;
            CheatCmdRef.stSendMail.astAccess                                 = new COMDT_MAILACCESS[1];
            CheatCmdRef.stSendMail.astAccess[0]                              = new COMDT_MAILACCESS();
            CheatCmdRef.stSendMail.astAccess[0].bGeted                       = 1;
            CheatCmdRef.stSendMail.astAccess[0].bAccessType                  = 2;
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo                 = new COMDT_MAILACCESS_INFO();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stMoney         = new COMDT_MAILACCESS_MONEY();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stMoney.bType   = 7;
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stMoney.dwMoney = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]);
        }
        else if (gMMailAccessType == GMMailAccessType.心)
        {
            DebugHelper.Assert(this.CachedFriendInfo != null);
            CheatCmdRef.stSendMail.szTo                                      = this.CachedFriendInfo.szUserName;
            CheatCmdRef.stSendMail.ullToUid                                  = this.CachedFriendInfo.stUin.ullUid;
            CheatCmdRef.stSendMail.dwToLogicWorld                            = this.CachedFriendInfo.stUin.dwLogicWorldId;
            CheatCmdRef.stSendMail.bMailType                                 = 2;
            CheatCmdRef.stSendMail.bMailsubType                              = 2;
            CheatCmdRef.stSendMail.bAccessCnt                                = 1;
            CheatCmdRef.stSendMail.astAccess                                 = new COMDT_MAILACCESS[1];
            CheatCmdRef.stSendMail.astAccess[0]                              = new COMDT_MAILACCESS();
            CheatCmdRef.stSendMail.astAccess[0].bGeted                       = 1;
            CheatCmdRef.stSendMail.astAccess[0].bAccessType                  = 3;
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo                 = new COMDT_MAILACCESS_INFO();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stHeart         = new COMDT_MAILACCESS_HEART();
            CheatCmdRef.stSendMail.astAccess[0].stAccessInfo.stHeart.dwHeart = (uint)CheatCommandBase.SmartConvert <int>(InArguments[1]);
        }
        return(CheatCommandBase.Done);
    }
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

        if (masterRoleInfo != null && Singleton <LobbyLogic> .GetInstance().isLogin)
        {
            CheatCmdRef.stDyeNewbieBit = new CSDT_CHEAT_DYE_NEWBIE_BIT();
            CheatCmdRef.stDyeNewbieBit.bOpenOrClose = CheatCommandBase.SmartConvert <byte>(InArguments[1]);
            CheatCmdRef.stDyeNewbieBit.bIsAll       = 0;
            CheatCmdRef.stDyeNewbieBit.dwApntBit    = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
            masterRoleInfo.SetGuidedStateSet((int)CheatCommandBase.SmartConvert <uint>(InArguments[0]), CheatCommandBase.SmartConvert <byte>(InArguments[1]) != 0);
            return(CheatCommandBase.Done);
        }
        return("undone");
    }
Exemple #21
0
    protected override string Execute(string[] InArguments)
    {
        int       num            = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        bool      bOpen          = CheatCommandBase.SmartConvert <int>(InArguments[1]) == 1;
        CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

        if (masterRoleInfo != null && Singleton <LobbyLogic> .GetInstance().isLogin)
        {
            if (num <= 0 || num >= 300)
            {
                return("客户端位位ID");
            }
            masterRoleInfo.SetClientBits(num - 100, bOpen, true);
        }
        return(CheatCommandBase.Done);
    }
    protected override string Execute(string[] InArguments)
    {
        int       num            = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        bool      bOpen          = CheatCommandBase.SmartConvert <int>(InArguments[1]) == 1;
        CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

        if (masterRoleInfo != null && Singleton <LobbyLogic> .GetInstance().isLogin)
        {
            if (num <= 0 || num >= 128)
            {
                return("错误的引导位ID");
            }
            masterRoleInfo.SetNewbieAchieve(num, bOpen, true);
            MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieGuideState((uint)num, bOpen);
        }
        return(CheatCommandBase.Done);
    }
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        int           Chapter       = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int           No            = CheatCommandBase.SmartConvert <int>(InArguments[1]);
        ELevelTypeTag eLevelTypeTag = CheatCommandBase.SmartConvert <ELevelTypeTag>(InArguments[2]);

        CheatCmdRef.stUnlockLevel = new CSDT_CHEAT_UNLOCK_LEVEL();
        RES_LEVEL_DIFFICULTY_TYPE DiffType        = (eLevelTypeTag == ELevelTypeTag.普通) ? RES_LEVEL_DIFFICULTY_TYPE.RES_LEVEL_DIFFICULTY_TYPE_NORMAL : RES_LEVEL_DIFFICULTY_TYPE.RES_LEVEL_DIFFICULTY_TYPE_NIGHTMARE;
        ResLevelCfgInfo           resLevelCfgInfo = GameDataMgr.levelDatabin.FindIf((ResLevelCfgInfo x) => x.iChapterId == Chapter && (int)x.bLevelNo == No && x.bLevelDifficulty == (byte)DiffType);

        if (resLevelCfgInfo != null)
        {
            CheatCmdRef.stUnlockLevel.iLevelID = resLevelCfgInfo.iCfgID;
            return(CheatCommandBase.Done);
        }
        return(string.Format("未找到 {2} {0}-{1}对应地图配置", Chapter, No, eLevelTypeTag.ToString()));
    }
 protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
 {
     CheatCmdRef.stAddGameStatistic          = new CSDT_CHEAT_ADD_GAME_STATISTIC();
     CheatCmdRef.stAddGameStatistic.dwHeroID = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.bGameType         = (byte)CheatCommandBase.SmartConvert <EGameType>(InArguments[1]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwWinNum          = CheatCommandBase.SmartConvert <uint>(InArguments[2]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwLoseNum         = CheatCommandBase.SmartConvert <uint>(InArguments[3]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.ullKDAPct         = CheatCommandBase.SmartConvert <ulong>(InArguments[4]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.ullTotalHurt      = CheatCommandBase.SmartConvert <ulong>(InArguments[5]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.ullTotalBeHurt    = CheatCommandBase.SmartConvert <ulong>(InArguments[6]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.ullTotalHurtOrgan = CheatCommandBase.SmartConvert <ulong>(InArguments[7]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwTripleKill      = CheatCommandBase.SmartConvert <uint>(InArguments[8]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwUltraKill       = CheatCommandBase.SmartConvert <uint>(InArguments[9]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwRampage         = CheatCommandBase.SmartConvert <uint>(InArguments[10]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwMvp             = CheatCommandBase.SmartConvert <uint>(InArguments[11]);
     CheatCmdRef.stAddGameStatistic.stStatisticInfo.dwLoseSoul        = CheatCommandBase.SmartConvert <uint>(InArguments[12]);
     return(CheatCommandBase.Done);
 }
Exemple #25
0
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        string empty = string.Empty;

        if (this.CheckArguments(InArguments, out empty))
        {
            CheatCmdRef.stSetFreeHero       = new CSDT_CHEAT_SET_FREE_HERO();
            CheatCmdRef.stSetFreeHero.wYear = CheatCommandBase.SmartConvert <ushort>(InArguments[0]);
            EMonth eMonth = (EMonth)CheatCommandBase.StringToEnum(InArguments[1], typeof(EMonth));
            CheatCmdRef.stSetFreeHero.bMonth        = (byte)eMonth;
            CheatCmdRef.stSetFreeHero.bDay          = CheatCommandBase.SmartConvert <byte>(InArguments[2]);
            CheatCmdRef.stSetFreeHero.bHour         = CheatCommandBase.SmartConvert <byte>(InArguments[3]);
            CheatCmdRef.stSetFreeHero.dwHeroID      = CheatCommandBase.SmartConvert <uint>(InArguments[4]);
            CheatCmdRef.stSetFreeHero.dwCreditLevel = CheatCommandBase.SmartConvert <uint>(InArguments[5]);
            return(CheatCommandBase.Done);
        }
        return(empty);
    }
Exemple #26
0
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        CheatCmdRef.set_stSetMobaInfo(new CSDT_CHEAT_SET_MOBA_INFO());
        int num  = CheatCommandBase.SmartConvert <int>(InArguments[0]);
        int num2 = CheatCommandBase.SmartConvert <int>(InArguments[1]);
        int num3 = CheatCommandBase.SmartConvert <int>(InArguments[2]);
        int num4 = CheatCommandBase.SmartConvert <int>(InArguments[3]);

        CheatCmdRef.get_stSetMobaInfo().stMobaInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().acntMobaInfo;

        if (num != -2)
        {
            if (num < 0 || num > 4)
            {
                return("错误的mobaLevel");
            }
            CheatCmdRef.get_stSetMobaInfo().stMobaInfo.iMobaLevel = num;
        }
        if (num2 != -2)
        {
            if (num2 < -1 || num2 > 7)
            {
                return("错误的heroType");
            }
            CheatCmdRef.get_stSetMobaInfo().stMobaInfo.iSelectedHeroType = num2;
        }
        if (num3 != -2)
        {
            if (num3 < -1 || num3 > 7)
            {
                return("错误的heroType");
            }
            CheatCmdRef.get_stSetMobaInfo().stMobaInfo.iRecommendHeroType = num3;
        }
        if (num4 != -2)
        {
            if (num4 < 0 || num4 > 2)
            {
                return("错误的mobaUsedType");
            }
            CheatCmdRef.get_stSetMobaInfo().stMobaInfo.bMobaUsedType = (byte)num4;
        }
        return(CheatCommandBase.Done);
    }
    protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
    {
        int num = CheatCommandBase.StringToEnum(InArguments[0], typeof(GMMailAccessCount));

        CheatCmdRef.stSendMail              = new CSDT_CHEAT_SENDMAIL();
        CheatCmdRef.stSendMail.bMailType    = 1;
        CheatCmdRef.stSendMail.bMailsubType = 2;
        CheatCmdRef.stSendMail.bAccessCnt   = (byte)num;
        CheatCmdRef.stSendMail.astAccess    = new COMDT_MAILACCESS[num];
        for (int i = 0; i < num; i++)
        {
            CheatCmdRef.stSendMail.astAccess[i]                               = new COMDT_MAILACCESS();
            CheatCmdRef.stSendMail.astAccess[i].bGeted                        = 1;
            CheatCmdRef.stSendMail.astAccess[i].bAccessType                   = 1;
            CheatCmdRef.stSendMail.astAccess[i].stAccessInfo                  = new COMDT_MAILACCESS_INFO();
            CheatCmdRef.stSendMail.astAccess[i].stAccessInfo.stProp           = new COMDT_MAILACCESS_PROP();
            CheatCmdRef.stSendMail.astAccess[i].stAccessInfo.stProp.wPropType = (ushort)CheatCommandBase.SmartConvert <int>(InArguments[(i * 3) + 1]);
            CheatCmdRef.stSendMail.astAccess[i].stAccessInfo.stProp.dwPropID  = CheatCommandBase.SmartConvert <int>(InArguments[(i * 3) + 2]);
            CheatCmdRef.stSendMail.astAccess[i].stAccessInfo.stProp.iPropNum  = CheatCommandBase.SmartConvert <int>(InArguments[(i * 3) + 3]);
        }
        return(CheatCommandBase.Done);
    }
Exemple #28
0
 protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
 {
     CheatCmdRef.set_stDelHeadImage(new CSDT_CHEAT_HEADIMAGE_DEL());
     CheatCmdRef.get_stDelHeadImage().dwHeadImgID = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
     return(CheatCommandBase.Done);
 }
 protected override string Execute(string[] InArguments, ref CSDT_CHEATCMD_DETAIL CheatCmdRef)
 {
     CheatCmdRef.stAddHeadImage             = new CSDT_CHEAT_HEADIMAGE_ADD();
     CheatCmdRef.stAddHeadImage.dwHeadImgID = CheatCommandBase.SmartConvert <uint>(InArguments[0]);
     return(CheatCommandBase.Done);
 }