Exemplo n.º 1
0
    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.set_stChgIntimacy(new CSDT_CHEAT_CHG_INTIMACY());
        CheatCmdRef.get_stChgIntimacy().stUin.ullUid = ((num != 0uL) ? num : masterRoleInfo.playerUllUID);
        CheatCmdRef.get_stChgIntimacy().stUin.dwLogicWorldId = ((num2 != 0u) ? num2 : ((uint)masterRoleInfo.logicWorldID));
        CheatCmdRef.get_stChgIntimacy().wIntimacyValue = CheatCommandBase.SmartConvert <ushort>(InArguments[2]);
        return(CheatCommandBase.Done);
    }