----------------------------添加Cheat命令说明---------------------------------------- --[[ 说明文档:http://confluence.taiyouxi.net/pages/viewpage.action?pageId=35985565 1、table嵌套,其中key为简写的命令,用于在命令行中方便输入 eg:以道具 additem: 该名字是方便在命令行中简写执行命令,格式:additem 1 10 protoType: pb协议名称,和服务器通信。如果是正常功能就使用相对应功能的协议,如果是特殊功能,需要服务器添加相应的特殊协议 des: 命令说明描述 ViewGroupType: 分类,后期用于分类显示相同命令 clientOnly: 仅客户端执行的命令,如果仅是客户端执行命令时,需要在相应的table中写一个执行函数,参考:设置命令中的stopgame dependLogin : 是否依赖登录数据 可选参数 当前页签设置依赖登录数据时 可不设置 params: 执行参数,可以输入多个,目前用到的Cheat命令中基本都是两个 optionalParams:可选参数,可以当做默认值使用 后面添加Cheat命令时,参照已实现的命令就行 【注意】如果仅是客户端执行命令时,需要在相应的table中写一个执行函数,参考:设置命令中的stopgame ]]-- local CheatConfig = {}; local ArgParser = require("Tools/ArgParser") CheatConfig.DESC_CONTENT = [[ 1、点击空白处关闭界面,在编辑器中按F2可快速打开该界面 2、Cheat页签下,将纯客户端和服务器的Cheat命令分成几大类,后续会将GUI和网页的Cheat整合进来 3、Cheat页签下,带参数的命令,直接在输入框中输入参数,多个参数用空格分隔 4、Console页签下,可直接输入Lua代码段进行执行,并且支持输入命令行进行执行,格式为:#命令名 参数1 参数2 .. 所有命令可通过Cheat页签内查看,命令名一般是个简短的缩写,参数名不重要,以空格分隔直接输入所有参数 5、回放页签下,支持特定玩法的回放功能。进入战斗后,按F3隐藏回放界面并设置假数据,按右键切换看人,左键看上一个 6、勾选“自动关闭”选项时,可以执行一次Cheat或命令后自动关闭本界面,方便进行观察 ]] CheatConfig.ViewGroupTypeIndex = { [1] = "Basic", [2] = "Level", [3] = "Dev", [4] = "Task", [5] = "Time", [6] = "Others", [7] = "Battle", [8] = "GameBase", [9] = "PCCheat", [10] = "Scene", [11] = "Performance", [12] = "Programmer", [13] = "Market", [14] = "ViewAssets", } CheatConfig.ViewGroupType = { GameBase = "通用", Others = "其他", Dev = "养成", Level = "关卡", Battle = "战斗", Task = "任务", Time = "时间", Basic = "基础", PCCheat = "PC-Cheat"; Scene = "场景", Performance = "性能", Programmer = "程序", Market = "龙脉300定制", ViewAssets = "查看资源", } -- 页签是否依赖登录状态 CheatConfig.ViewGroupTypeDependLogin = { [CheatConfig.ViewGroupType.PCCheat] = false, [CheatConfig.ViewGroupType.Dev] = true, [CheatConfig.ViewGroupType.Level] = true, [CheatConfig.ViewGroupType.Battle] = true, [CheatConfig.ViewGroupType.Task] = true, [CheatConfig.ViewGroupType.Time] = true, [CheatConfig.ViewGroupType.Scene] = true, [CheatConfig.ViewGroupType.Basic] = true, [CheatConfig.ViewGroupType.Programmer] = false, [CheatConfig.ViewGroupType.Market] = false, [CheatConfig.ViewGroupType.ViewAssets] = false, } CheatConfig.ShowType = { InputField = 1, -- 输入框 DropDown = 2, -- 下拉列表 } local RegistClientCommand = function(viewGroupType, desc, params, optionalParams, sort, context) return { clientOnly = true, viewGroupType = viewGroupType, desc = desc, params = params, optionalParams = optionalParams, sort = sort or 1 , context = context} end local RegistServerCommand = function(protoType, viewGroupType, desc, params, optionalParams, sort) return { clientOnly = false, protoType = protoType, viewGroupType = viewGroupType, desc = desc, params = params, optionalParams = optionalParams , sort = sort or 1 } end --[[ CheatCmdArgsData:每一个参数对应一个table 必须包括showType dropdown需提供:getDropDownValuesFunc, 获取下拉列表显示值。一个参数一个dropdown参考fetchGuildEscort(通用GetCheatDataDict),一个参数多个dropdown可参考addItem(需定制)。 getArgCmdValueFunc, 获取参数实际发送服务器的命令值。drowDownValue-显示值, drowDownData-包含数据, drowDownIndex-特指该参数的最后一个下拉列表的index。 inputfield无需提供 CheatCmdArgsData不填,默认长输入框或无参数 ]]-- function CheatConfig.InitCheatCmdArgsData() local DragonPlayerCheatCmdArgsData = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetDragonPlayerGsTable, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return CTL.Cheat.GetDragonPlayerDrowDownValue(drowDownValue) end}, {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetDragonPlayerNameTable, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return CTL.Cheat.GetDragonPlayerDrowDownValue(drowDownValue) end}, } local heroCheatCmdArgsData ={ {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetCheatDataDict(DataSheetManager.HeroNum, "ID", "NameIDS") end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, } CheatConfig.CheatCmdArgsData = { addItem = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetItemDict, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData.id end}, {showType = CheatConfig.ShowType.InputField}, }, addMonsterFactory = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetMonsterFactoryKeys, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return string.match(drowDownValue, "^(.*)-") end}, {showType = CheatConfig.ShowType.InputField}, }, marketCamp1Player = DragonPlayerCheatCmdArgsData, marketCamp2Player = DragonPlayerCheatCmdArgsData, marketCamp3Player = DragonPlayerCheatCmdArgsData, marketCamp4Player = DragonPlayerCheatCmdArgsData, breakMagicWeapon = heroCheatCmdArgsData, activeHeroMagicWeapon = heroCheatCmdArgsData, switchHero = heroCheatCmdArgsData, fetchGuildEscort = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetCheatDataDict(DataSheetManager.GuildEscortData, "ID", "NameDes") end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, }, setNationTowerLv = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetCheatDataDict(DataSheetManager.NationClimbTowerData, "ID", "ClimbTower", "TowerLevelCountry") end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, {showType = CheatConfig.ShowType.InputField}, }, changeAttribute = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetCheatDataDict(DataSheetManager.AttrData, "ID", "Name") end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, {showType = CheatConfig.ShowType.InputField}, }, onOroffHorse = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetCheatDataDict(DataSheetManager.HorseData, "HorseID", "HorseName") end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, }, SetExchangeRateType = { { showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetExchangeRateTable, getArgCmdValueFunc = function(drowDownValue, drowDownData, drowDownIndex) return drowDownData end }, }, SetGameSence = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = function () return CTL.Cheat.GetGameSenceDrowDownValue() end, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return drowDownData end}, }, SetTestBossAttr = { {showType = CheatConfig.ShowType.DropDown, getDropDownValuesFunc = CTL.Cheat.GetTestBossAttrKeys, getArgCmdValueFunc = function (drowDownValue, drowDownData, drowDownIndex) return CTL.Cheat.GetTestBossAttrDrowDownValue(drowDownValue) end}, {showType = CheatConfig.ShowType.InputField}, }, } end CheatConfig.CheatCommands = { --纯客戶端的命令 --PC-Cheat SetGreenBgShow = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "绿幕展示武将、战骑、神兵、宝物、神兽、灵宠(需打开界面后再执行)",nil, { {"color", "00FF00", "绿幕背景色设置,填写HEX色号"}, {"clearEffect", 1, "显示特效(显示--0,不显示--1)"}, }); convertHeroShowMode = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换主将展示界面模式"); oneKeySwitchTimeLine = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "一键切换场景、天气、TL", { {"timelineId", ArgParser.TypeString, "播放Id(示例: 全部--0,单个--1,组--g1, 以ID为起始--h1)"} }); switchHero = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换武将", { {"heroId", ArgParser.TypeNumber, "武将Id"} }); switchLevel = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换场景", { {"levelId", ArgParser.TypeNumber, "关卡Id"} }); switchCombinationLevel = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换组合场景", { {"combineId", ArgParser.TypeNumber, "组合关卡Id"} }); setOnlyShowDamageUI = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "只显示伤害UI", { {"isEnter", ArgParser.TypeNumber, "0,1(退出/进入)"} }); showOrHideDamageUI = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "隐藏或者显示伤害UI", { {"isShow", ArgParser.TypeNumber, "0,1(隐藏/显示)"} }); switchCameraModel = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换相机模式", { {"model", ArgParser.TypeNumber, "模式"} }); setPlayerMove = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "玩家持续移动", { {"moveDirType", ArgParser.TypeNumber, "-1(停止),1(移动)"} }); addPlayerBuff = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "玩家添加Buff", { {"buffID", ArgParser.TypeNumber, "BuffID"} }); deletePlayerBuff = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "玩家删除Buff", { {"buffID", ArgParser.TypeNumber, "BuffID"} }); playerReleaseSkill = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "玩家释放技能", { {"releaseType", ArgParser.TypeNumber, "-1,0,1(循环,停止,1次)"}, {"keyPos", ArgParser.TypeString, "技能按键id,时间,格式(1,时间,2,时间,3,时间,8,时间,9,时间,99999,时间)"}, }); replacePlayerAnim = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "替换动画", { {"from", ArgParser.TypeString, "原始动画"}, {"to", ArgParser.TypeString, "替换动画"}, }); switchWeather = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "切换天气", { {"weatherId", ArgParser.TypeNumber, "天气id"}, {"duration", ArgParser.TypeNumber, "持续时间"} }); playNotice = RegistClientCommand(CheatConfig.ViewGroupType.Basic, "播放功能解锁表现", { {"functionPredictionID", ArgParser.TypeNumber, "功能预告ID"}, }, nil, -1); stopNotice = RegistClientCommand(CheatConfig.ViewGroupType.Basic, "停止功能解锁表现", nil, nil, 99); addMonsterFactory = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "添加怪物工厂",nil, { {"layoutId", 101, "LevelLayoutID"}, {"monsterId", 0, "怪物ID"}, }); playTimeLine = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "播放场景timeline", { {"timelineType", ArgParser.TypeNumber, "0,1(主城,关卡)"}, {"timelineIds", ArgParser.TypeString, "剧情动画名字,分割"}, }); playAllTimeLine = RegistClientCommand(CheatConfig.ViewGroupType.Others, "播放全timeline"); setCameraMove = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "设置相机运动", { {"isMainRoleTarget", ArgParser.TypeNumber, "0,1(主角,非主角)"}, }, { {"speedX", 0, "X速度"}, {"speedY", 0, "Y速度"}, {"speedZ", 0, "Z速度"}, {"rotateSpeedX", 0, "X角度"}, {"rotateSpeedY", 0, "Y角度"}, }); autoRotCamera = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "自动相机旋转(神兽+宝物)", nil, { {"enable", 1, "0,1(关,开)"}, }), setAIEnable = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "开关测试怪AI", { {"enable", ArgParser.TypeNumber, "0,1(关,开)"}, }); showDebugViewData = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "显隐DebugView数据"); setScreenResolution = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "设置分辨率", { {"width", ArgParser.TypeNumber, "宽"}, {"height", ArgParser.TypeNumber, "高"}, }); isShowNarrationContent = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "是否显示timeline字幕", { {"enable", ArgParser.TypeNumber, "0,1(关,开)"}, }); stopAllCheat = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "一键停止所有"); onOroffHorse = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "上下马", { {"horseId", ArgParser.TypeNumber, "坐骑id"}, }); changeEntitySpeed = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "增减移动速度", { {"speed", ArgParser.TypeNumber, "速度"}, }); showTextIDS = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "显隐界面IDS"); isHangUpEnabled = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "开关自动挂机"); SetGameSence = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "设置玩法地图场景", { {"levelID", ArgParser.TypeNumber, "关卡ID"}, },nil,-1); CreateTestBoss = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "创建测试boss", { {"mosterId", ArgParser.TypeNumber, "怪物ID"}, },nil,0); SetTestBossAttr = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "设置测试boss属性系数", { {"attrName", ArgParser.TypeString, "属性名(atk)"}, {"attrValueFactor", ArgParser.TypeNumber, "属性值系数n(当前属性值*n)"}, },nil,0); PauseOrStartTestBossAI = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "暂停或开始测试bossAI", nil,nil,0); --通用操作 passLoginFreeLevel = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "跳过体验关"); openStage2Tips = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "打开分包2提示",{ {"isFinish", ArgParser.TypeNumber, "0未完成 1完成"}, }); pauseDownload = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "暂停下载"); resumeDownload = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "恢复下载"); switchMirror = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "切换镜像服"); deleteStage = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "删除分包资源", { {"stage", ArgParser.TypeNumber, "1,2..(分包1,2..)删后本地分包状态变为前一个"}, }); changeTimeScale = RegistClientCommand(CheatConfig.ViewGroupType.GameBase, "设置游戏速度", { {"speed", ArgParser.TypeNumber, "1为正常速"}, }); --关卡 enterLevel = RegistClientCommand(CheatConfig.ViewGroupType.Level, "进战斗", nil, { { "levelID", 159, "关卡ID" } }); leaveGuide = RegistClientCommand(CheatConfig.ViewGroupType.Level, "退出新手关", nil, nil, 100); toName = RegistClientCommand(CheatConfig.ViewGroupType.Level, "一键跳到起名"); enterSyncTestLevel = RegistServerCommand("EnterSyncTestLevel", CheatConfig.ViewGroupType.Level, "进入同步测试关卡", nil, {{"CampID", 1, "阵营ID"},{"LevelId", 203, "关卡ID"}}); passLevel = RegistClientCommand(CheatConfig.ViewGroupType.Level, "通关当前单人剧情副本"); escortEnter = RegistServerCommand("Escort_Enter", CheatConfig.ViewGroupType.Level, "进入地图", { {"mapId", ArgParser.TypeNumber, "地图id"} }); --战斗 getAttr = RegistClientCommand(CheatConfig.ViewGroupType.Battle, "武将信息"); killself = RegistClientCommand(CheatConfig.ViewGroupType.Battle, "自杀"); setBuff = RegistClientCommand(CheatConfig.ViewGroupType.Battle, "显示buff"); serverBattleAction = RegistServerCommand("ServerBattleAction", CheatConfig.ViewGroupType.Battle, "服务器插帧", {{"ServerBattleActionId", ArgParser.TypeNumber, "插帧ID"}}); showWinPose = RegistClientCommand(CheatConfig.ViewGroupType.Battle, "展示胜利动作"); --时间 getGameTime = RegistClientCommand(CheatConfig.ViewGroupType.Time, "获取当前时间"); RefreshGameTime = RegistClientCommand(CheatConfig.ViewGroupType.Time, "模拟断线重连 刷新客户端时间"); --性能 startNetStatic = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "开启TCP协议统计"); recordElectricity = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "统计电流+功率"); vculldist = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "设置不同的优先级剔除距离", { { "near", ArgParser.TypeNumber, "优先级最高的距离[0, near]" }, { "far", ArgParser.TypeNumber, "优先级中等的距离[near, far]" }, { "max", ArgParser.TypeNumber, "优先级最低的距离[far, max],超过max则直接不剔除不显示" } }); vcullcap = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "角色剔除系统使用的容量值", { {"capacity", ArgParser.TypeNumber, "分数容量"} }); pscullcap = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "特效剔除容量因子", { { "near", ArgParser.TypeNumber, "近距离影响容量因子" }, { "medium", ArgParser.TypeNumber, "中距离影响容量因子" }, { "far", ArgParser.TypeNumber, "远距离影响容量因子" }, }); frCheckSensitivity = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "帧率检测灵敏度", { { "dtThreshold", ArgParser.TypeNumber, "DT阈值" }, { "totalCount", ArgParser.TypeNumber, "检测总帧数" }, { "frameCount", ArgParser.TypeNumber, "DT超出阈值帧数" }, { "tolerateTimes", ArgParser.TypeNumber, "帧率不达标容忍次数"}, }); fps60 = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "帧率切换", { {"quality", ArgParser.TypeNumber, "帧率切换(正常/高:0/1)"} }); waterLevel = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "水面效果", { {"quality", ArgParser.TypeNumber, "水面质量(低/高:0/1)"} }); textureLevel = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "贴图质量", { {"quality", ArgParser.TypeNumber, "贴图质量(HalfRes/FullRes:0/1)"} }); lodBiasLevel = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "LodBias距离", { {"quality", ArgParser.TypeNumber, "LodBias剔除距离(低/中/高:0/1/2)"} }); debugSkipTimeline= RegistClientCommand(CheatConfig.ViewGroupType.Performance, "跳过剧情",{ {"enable", ArgParser.TypeNumber, "0,1(不跳,跳)"}, }); profiler = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "Profiler"); setBloom = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "设置Bloom开关", { {"enable", ArgParser.TypeNumber, "开关(1/0)"} }); setLodLevel = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "设置lodlevel", { {"lodLevel", ArgParser.TypeNumber, "低端级别,中端级别,顶配专属,更高(0,1,2,3)"} }); onLowMemory = RegistClientCommand(CheatConfig.ViewGroupType.Performance, "模拟低内存事件"); sdkPay = RegistClientCommand(CheatConfig.ViewGroupType.Dev, "SDK支付", { {"IAPIndex", ArgParser.TypeNumber, "IAP"} }); dailyGiftPay = RegistServerCommand("PayDailyGift", CheatConfig.ViewGroupType.Dev, "每日礼包充值", { {"DailyGiftID", ArgParser.TypeNumber, "套票档位填0"}, }); addToken = RegistServerCommand("AddAccRechargeDragonJade", CheatConfig.ViewGroupType.Dev, "累充代币(龙玉)", { {"TokenAmount", ArgParser.TypeNumber, "累充数额"}, }); pushGiftOnPush = RegistServerCommand("PushGiftOnPush", CheatConfig.ViewGroupType.Dev, "触发定向礼包", { {"activityId", ArgParser.TypeNumber, "活动id"}, {"id", ArgParser.TypeNumber, "礼包id"}, }); addTypeItem = RegistClientCommand(CheatConfig.ViewGroupType.Basic, "获得指定类型道具", { {"type", ArgParser.TypeNumber, "道具类型"},{"num", ArgParser.TypeNumber, "道具数量"} }, nil, 60); --其他 fightingShowPingList = RegistClientCommand(CheatConfig.ViewGroupType.Others, "展示战斗代理服链接"); setShowBattleAgentPing = RegistClientCommand(CheatConfig.ViewGroupType.Others, "设置战斗代理服ip值", { {"index", ArgParser.TypeNumber, "第几个战斗代理服"},{"ping", ArgParser.TypeNumber, "ping值"} }); stopGame = RegistClientCommand(CheatConfig.ViewGroupType.Others, "暂停游戏"); reloadGame = RegistClientCommand(CheatConfig.ViewGroupType.Others, "重新连接游戏"); skipTimeLine = RegistClientCommand(CheatConfig.ViewGroupType.Others, "跳过timeline"); showPay = RegistClientCommand(CheatConfig.ViewGroupType.Others, "显示充值"); buildAccount = RegistServerCommand("BuildAccount", CheatConfig.ViewGroupType.Others, "一键大号", nil, nil, 9999); deltaFontSize = RegistClientCommand(CheatConfig.ViewGroupType.Others, "本地化字号差值", { {"DeltaFontSize", ArgParser.TypeNumber,"中英文字号差值"} }); playTimeLine = RegistClientCommand(CheatConfig.ViewGroupType.Others, "播放timeline", { {"TimeLineID", ArgParser.TypeString, "TimeLine名称"} }); gaChaGetPV = RegistClientCommand(CheatConfig.ViewGroupType.Others, "预览抽卡界面武将显示"); goldenHeroBossFindPV = RegistClientCommand(CheatConfig.ViewGroupType.Others, "预览金将武将显示"); ForceNewGuideLevel = RegistClientCommand(CheatConfig.ViewGroupType.Others, "设置是否有新的新手关。切换值之后需要换新号测试", nil, { { "hasNewLevel", 1, "设置新手关开关,1为开启,0为关闭" } }); --场景 addNPC = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "测试添加NPC", { {"NpcType", ArgParser.TypeNumber, "NPC类型 1:普通NPC 2:无特效NPC"} }); setCulling = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "遮挡剔除"); setLod = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "打开LOD"); setSceneState = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐场景"); setPlayerState = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐角色"); setPS = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐特效"); addEnemy = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "开启敌兵", { {"EnemyCount", ArgParser.TypeNumber, "敌兵数量"} }); soloScene = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "公平1v1换场景"); setGrass = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐草"); setDynamic = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐动态物体"); setTree = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐树"); setShadow = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐影子"); setObjects = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐场景物体"); setItem = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐场景item"); setShader = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "替换Shader"); setActorHP = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐主角HP"); setCombo = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐Combo"); setPsInstance = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐特效素材"); setZhangBao = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "使用张宝"); addHorse = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "骑马"); useSameActor = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "演员使用同一人"); setAllShow = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "显隐所有"); addMonster = RegistClientCommand(CheatConfig.ViewGroupType.Scene, "加怪", { {"EnemyType", ArgParser.TypeNumber, "类型 1:无AI 2:霸体"}, {"EnemyCount", ArgParser.TypeNumber, "数量"} }); --和服務器交互 --关卡 passBattle = RegistServerCommand("PassBattle", CheatConfig.ViewGroupType.Level, "通关单个关卡", { {"LevelId", ArgParser.TypeNumber, "关卡ID"} }); passAllBattle = RegistServerCommand("PassAllBattle", CheatConfig.ViewGroupType.Level, "通关所有关卡",nil,nil,999); roleLeaveFuben = RegistServerCommand("RoleLeaveFuben", CheatConfig.ViewGroupType.Level, "离开副本"); --时间 setGameTime = RegistServerCommand("SetGameTime", CheatConfig.ViewGroupType.Time, "设置全大区时间", { {"time", ArgParser.TypeString, "时间格式"} }); setGlobeTime = RegistServerCommand("SetGlobeTime", CheatConfig.ViewGroupType.Time, "设置服务器时间", { {"time", ArgParser.TypeString, "时间格式"} }); --养成 activeHeroMagicWeapon = RegistServerCommand("ActiveHeroMagicWeapon", CheatConfig.ViewGroupType.Dev, "激活武将", { {"roleId", ArgParser.TypeNumber, "武将ID"} }); breakMagicWeapon = RegistServerCommand("BreakMagicWeapon", CheatConfig.ViewGroupType.Dev, "神兵突破", { {"roleId", ArgParser.TypeNumber, "武将ID"} }); acquireAdvanceMaterial = RegistServerCommand("AcquireAdvanceMaterial", CheatConfig.ViewGroupType.Dev, "获取进阶材料"); horseRearFeed = RegistClientCommand(CheatConfig.ViewGroupType.Dev, "饲育喂养", { { "activityId", ArgParser.TypeNumber, "活动id" }, { "times", ArgParser.TypeNumber, "喂养次数" } }); --基础 printPlayerAcid = RegistClientCommand(CheatConfig.ViewGroupType.Basic, "打印自身Acid", nil, nil, 50); roleAddTeamExp = RegistServerCommand("RoleAddTeamExp", CheatConfig.ViewGroupType.Basic, "角色经验", { {"teamLev", ArgParser.TypeNumber, "等级" }, {"promoteLev", ArgParser.TypeNumber, "爵位" } }); roleSetTeamLevel = RegistServerCommand("RoleSetTeamLevel", CheatConfig.ViewGroupType.Basic, "角色等级", { {"teamLev", ArgParser.TypeNumber, "等级" }, {"promoteLev", ArgParser.TypeNumber, "爵位" } }, nil, 200); FundBuy = RegistServerCommand("FundBuy", CheatConfig.ViewGroupType.Basic, "购买基金", { {"fundID", ArgParser.TypeNumber, "基金ID" }, {"state", ArgParser.TypeNumber, "是否购买,1购买,0删除" } }); ResetHonerOrder = RegistServerCommand("HonorOrderInit", CheatConfig.ViewGroupType.Basic, "重置战令数据"), allGuideFinish = RegistServerCommand("SetGuideALLFinish", CheatConfig.ViewGroupType.Basic, "跳过引导",nil,nil,100); resetOfficialOptNum = RegistServerCommand("ResetOfficialOptNum", CheatConfig.ViewGroupType.Dev, "重置官职特权次数", { {"optType", ArgParser.TypeNumber, "操作类型"} }, nil, 100); addResonanceScore = RegistServerCommand("AddResonanceScore", CheatConfig.ViewGroupType.Dev, "增加共鸣积分", { {"point", ArgParser.TypeNumber, "积分"} }, nil, 100); addItem = RegistServerCommand("AddItem", CheatConfig.ViewGroupType.Basic, "获得道具", { {"id", ArgParser.TypeString, "道具ID"} }, { {"num", 1, "道具数量"} }, 190); changeAttribute = RegistServerCommand("ChangeAttribute", CheatConfig.ViewGroupType.Basic, "修改属性", { {"AttrId", ArgParser.TypeNumber, "属性ID"}, {"AttrValue", ArgParser.TypeNumber, "属性值"} }, nil, -1); nobilitySetStage = RegistServerCommand("NobilitySetStage", CheatConfig.ViewGroupType.Basic, "设置到指定的爵位、阶段", { {"rangkID", ArgParser.TypeNumber, "爵位"}, {"stage", ArgParser.TypeNumber, "阶段"} }, nil, 150); nobilitySetTriggerCount = RegistServerCommand("NobilitySetTriggerCount", CheatConfig.ViewGroupType.Basic, "设置阶段Trigger的任务计数", { {"triggertype", ArgParser.TypeNumber, "类型"}, {"count", ArgParser.TypeNumber, "数量"} }); setHideGoldenEnd = RegistServerCommand("SetHideGoldenEnd", CheatConfig.ViewGroupType.Basic, "结束金将活动"); setNationTowerLv = RegistServerCommand("NationTowerPassLv", CheatConfig.ViewGroupType.Basic, "设置四国爬塔通关层数", { {"towerType", ArgParser.TypeNumber, "国别塔类型(1234)"}, {"towerLv", ArgParser.TypeNumber, "设置通关层数"} } ); SetExchangeRateType = RegistClientCommand(CheatConfig.ViewGroupType.Basic, "设置地区货币(国服不适用)", { { "ExchangeRateType", ArgParser.TypeNumber, "货币索引" } }); --任务 getTask = RegistServerCommand("GetTask", CheatConfig.ViewGroupType.Task, "查看任务", { {"taskFatherId", ArgParser.TypeNumber, "主ID"} }); commitTask = RegistServerCommand("CommitTask", CheatConfig.ViewGroupType.Task, "提交任务", { {"taskFatherId", ArgParser.TypeNumber, "主ID"}, {"taskChildId", ArgParser.TypeNumber, "子ID"} }); recTask = RegistServerCommand("RecTask", CheatConfig.ViewGroupType.Task, "接取任务", { {"taskFatherId", ArgParser.TypeNumber, "主ID"} }); commitTaskAll = RegistServerCommand("CommitAllTaskBeforeCurTask", CheatConfig.ViewGroupType.Task, "提交之前任务", { {"taskFatherId", ArgParser.TypeNumber, "主ID"}, {"taskChildId", ArgParser.TypeNumber, "子ID"} }); isShowNarrationContent = RegistClientCommand(CheatConfig.ViewGroupType.PCCheat, "是否显示timeline字幕", { {"enable", ArgParser.TypeNumber, "0,1(关,开)"}, }); fetchGuildEscort = RegistClientCommand(CheatConfig.ViewGroupType.Task, "接去押镖任务", { {"quality", ArgParser.TypeNumber, "自身镖车品质"}, }); frameStatistic = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "在BattleCheck中frame2cmd(-pc)生成统计文件frameStatistic(-pc)"); openStageDownload = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "打开分包下载界面,下载所有资源"); exportSLGGrid = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "导出地块数据"); openSLGEdit = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "打开SLG编辑器"); enterHeroTestLevel = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "进入武将实验室关卡", nil, { {"heroID", 1, "武将ID"}, }); enterBattleTestLevel = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "进入战斗性能测试关卡", nil, { {"levelID", 220, "关卡ID"}, {"playerID", 1, "主视角玩家ID"}, {"playerCount", 0, "玩家数量:0表示使用默认玩家数量,大于0则表示指定包含前多少名玩家"}, }); replayBattleLevel = RegistClientCommand(CheatConfig.ViewGroupType.Programmer, "开始战斗回放", nil, { {"dataFilePath", "ReplayData/replaydata", "回放文件路径"}, {"playerID", 1, "主视角玩家ID"}, {"startFrame", 0, "播放起始帧号"}, }); -- 市场(龙脉300定制) marketBattleProp23 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得变身阿修罗", nil, nil, 100); marketBattleProp24 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得轩辕剑", nil, nil, 99); marketBattleProp25 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得观月耙", nil, nil, 98); marketBattleProp26 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得混沌锤", nil, nil, 97); marketBattleProp27 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得刑天盾", nil, nil, 96); marketBattleProp28 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "获得盘龙手", nil, nil, 95); marketBattleProp2122 = RegistClientCommand(CheatConfig.ViewGroupType.Market, "自己获得图腾", nil, nil, 94); marketEnemyGetDragon = RegistClientCommand(CheatConfig.ViewGroupType.Market, "敌方获得图腾", nil, nil, 94); marketCamp1Player = RegistClientCommand(CheatConfig.ViewGroupType.Market, "刷出阵营1的武将", {{"gsLevel", ArgParser.TypeString, "属性强弱"},{"hasName", ArgParser.TypeString, "有无名字"}}, nil, 93); marketCamp2Player = RegistClientCommand(CheatConfig.ViewGroupType.Market, "刷出阵营2的武将", {{"gsLevel", ArgParser.TypeString, "属性强弱"},{"hasName", ArgParser.TypeString, "有无名字"}}, nil, 92); marketCamp3Player = RegistClientCommand(CheatConfig.ViewGroupType.Market, "输出阵营3的武将", {{"gsLevel", ArgParser.TypeString, "属性强弱"},{"hasName", ArgParser.TypeString, "有无名字"}}, nil, 91); marketCamp4Player = RegistClientCommand(CheatConfig.ViewGroupType.Market, "输出阵营4的武将", {{"gsLevel", ArgParser.TypeString, "属性强弱"},{"hasName", ArgParser.TypeString, "有无名字"}}, nil, 90); marketAllSnakeBoss = RegistClientCommand(CheatConfig.ViewGroupType.Market, "出生所有大蛇", nil, nil, 89); marketAllBattlePropMonster = RegistClientCommand(CheatConfig.ViewGroupType.Market, "出生所有神器", nil, nil, 88); marketZhuyanBoss = RegistClientCommand(CheatConfig.ViewGroupType.Market, "出生 朱厌 boss", nil, nil, 88); marketDragonIndex = RegistClientCommand(CheatConfig.ViewGroupType.Market, "设置第 n 只死亡的大蛇出图腾", {{"index", ArgParser.TypeNumber, "索引"}}, nil, 87) } --region replay CheatConfig.ReplayGroupIndex = { [1] = "SyncSolo", [2] = "Battle3V3", [3] = "GuildWar", [4] = "DragonArtery", } CheatConfig.ReplayGroupType = { SyncSolo = "1v1\n谁与争锋", Battle3V3 = "3v3\n三军争霸", GuildWar = "势力争霸", DragonArtery = "龙脉争夺", } --endregion return CheatConfig;