local gg = gg local TD, TF, RA = gg.TYPE_DWORD, gg.TYPE_FLOAT, gg.REGION_ANONYMOUS local function bv(a, b) b = b or ',' if not tostring(a):find(b) then return {a} end local tab, i = {}, 0 while true do local j = string.find(a, b, i + 1) if not j then table.insert(tab, a:sub(i + 1)) break end table.insert(tab, a:sub(i + 1, j - 1)) i = j end return tab end local function so(a, b, c) local csn = gg.getRanges() gg.setVisible(false) gg.setRanges(a[3]) gg.clearResults() gg.searchNumber(a[2], a[4]) local count = gg.getResults(gg.getResultCount()) gg.clearResults() if not count or #count == 0 then gg.setRanges(csn) return a[1] .. " 失败" end local lope, lobe = {}, {} for p = 1, #b do local lode = {} for i = 1, #count do lode[i] = {address = count[i].address + b[p][2], flags = b[p][3] or a[4]} end lode = gg.getValues(lode) local db = bv(b[p][1], '~') db[2] = db[2] or db[1] local tmp = {} for i = 1, #lode do local v = tonumber(lode[i].value) if v and v >= tonumber(db[1]) and v <= tonumber(db[2]) then tmp[#tmp + 1] = count[i] end end if #tmp == 0 then gg.setRanges(csn) return a[1] .. " 失败" end count = tmp end for i = 1, #c do for n = 1, #count do local item = { address = count[n].address + c[i][2], flags = c[i][3] or a[4], value = c[i][1] or gg.getValues({{address = count[n].address + c[i][2], flags = c[i][3] or a[4]}})[1].value } if c[i][4] then lobe[#lobe + 1] = item lobe[#lobe].freeze = (c[i][4] == 1) if c[i][5] then lobe[#lobe].name = c[i][5] end else lope[#lope + 1] = item end end end gg.setValues(lope) gg.addListItems(lobe) gg.setRanges(csn) return a[1] .. " 成功" end local function f1() gg.searchNumber("9.8", gg.TYPE_DOUBLE) local r = gg.getResults(999) for i = 1, #r do r[i].value = 70 end gg.setValues(r) gg.toast("AEC辅助:高跳激活") end local function f2() gg.toast("AEC辅助:" .. so({"无限子弹", 25600, RA, TD}, {{"4~500", -4, TD}}, {{1111100, -4, TD, false}})) end local function f3() gg.clearList() local res = so({"获取ID", 1200, RA, 4}, {{"10", -4, 4}, {"20202002~21204002", 4, 4}}, {{nil, 4, 4, 2}}) if not res or not res:find("成功") then return end for _, v in ipairs(gg.getListItems()) do so({"武器加速", v.value, RA, 4}, {{"200", 80, 4}, {"2", 20, 4}, {"2", 28, 4}, {"500", 64, 4}}, {{20, 20, 4, false}, {20, 28, 4, false}}) end gg.toast("AEC辅助:武器加速成功") end local function f4() gg.toast("AEC辅助:" .. so({"改刀", 10240, RA, TD}, {{"300~5000", -4, TD}}, {{2147483646, -4, TD, false}})) end local function f5() gg.toast("AEC辅助:" .. so({"上帝视角", "1.28", RA, TF}, {{1, -12, TF}, {1, 8, TF}}, {{20, 0, TF, false}})) end local function f6() gg.toast("AEC辅助:" .. so({"关闭上帝视角", "20", RA, TF}, {{1, -12, TF}, {1, 8, TF}}, {{1.28, 0, TF, false}})) end local function f7() gg.searchNumber("50~~20000", gg.TYPE_DOUBLE) local r = gg.getResults(999) for i = 1, #r do r[i].value = "9161646464646464646" end gg.setValues(r) gg.toast("AEC辅助:防崩溃启用") end local function f8() gg.clearResults() gg.setRanges(RA) gg.searchNumber("20202022", TD) gg.refineNumber("20202022", TD) gg.refineNumber("20202022", TD) gg.getResults(gg.getResultCount()) gg.editAll("20210030", TD) gg.clearResults() gg.toast("AEC辅助:AK双持修改完成") end local funcs = {f1, f2, f3, f4, f5, f6, f7, f8, function() gg.toast("你在想屁吃") end} local menu = {"1 高跳","2 无限子弹","3 武器加速","4 改刀","5 开启上帝视角","6 关闭上帝视角","7 防崩溃","8 AK改双持","9 无限金苹果","10 退出脚本"} while true do if gg.isVisible(true) then gg.setVisible(false) local s = gg.choice(menu, nil, "AEC辅助") if s and s ~= 10 and funcs[s] then funcs[s]() end end end