function split(szFullString, szSeparator) local nFindStartIndex = 1 local nSplitIndex = 1 local nSplitArray = {} while true do local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex) if not nFindLastIndex then nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString)) break end nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1) nFindStartIndex = nFindLastIndex + string.len(szSeparator) nSplitIndex = nSplitIndex + 1 end return nSplitArray end function xgxc(szpy, qmxg) for x = 1, #(qmxg) do xgpy = szpy + qmxg[x]["offset"] xglx = qmxg[x]["type"] xgsz = qmxg[x]["value"] gg.setValues({[1] = {address = xgpy, flags = xglx, value = xgsz}}) xgsl = xgsl + 1 end end function xqmnb(qmnb) gg.clearResults() gg.setRanges(qmnb[1]["memory"]) gg.searchNumber(qmnb[3]["value"], qmnb[3]["type"]) if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) if gg.getResultCount() == 0 then gg.toast(qmnb[2]["name"] .. "开启失败") else sl = gg.getResults(999999) sz = gg.getResultCount() xgsl = 0 if sz > 999999 then sz = 999999 end for i = 1, sz do pdsz = true for v = 4, #(qmnb) do if pdsz == true then pysz = {} pysz[1] = {} pysz[1].address = sl[i].address + qmnb[v]["offset"] pysz[1].flags = qmnb[v]["type"] szpy = gg.getValues(pysz) pdpd = qmnb[v]["lv"] .. ";" .. szpy[1].value szpd = split(pdpd, ";") tzszpd = szpd[1] pyszpd = szpd[2] if tzszpd == pyszpd then pdjg = true pdsz = true else pdjg = false pdsz = false end end end if pdjg == true then szpy = sl[i].address xgxc(szpy, qmxg) xgjg = true end end if xgjg == true then gg.toast(qmnb[2]["name"] .. "开启成功,共修改" .. xgsl .. "条数据") else gg.toast(qmnb[2]["name"] .. "开启失败") end end end end gg.toast("记忆闪帧 我再也不相信永远.") function Main() SN = gg.choice({ "轻飘双喷", "锁胎集气", "吴迪飘冲", "无限氮气", "局内小喷", "全车加速", "悬浮专用", "Exit" }, 2024, "北澈飞车体验服科技") if SN == 1 then a() end if SN == 2 then b() end if SN == 3 then c() end if SN == 4 then d() end if SN == 5 then e() end if SN == 6 then f() end if SN == 7 then g() end if SN == 8 then Exit() end XGCK = -1 end function a() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("35.0;1.39999997616:512", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("35.0", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) gg.editAll("0", gg.TYPE_FLOAT) gg.clearResults() gg.toast("轻飘双喷已开启") end function b() gg.clearResults() gg.setRanges(32) gg.searchNumber("50;0.5;0.4", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("0.4", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) gg.editAll("0.1", gg.TYPE_FLOAT) gg.toast("锁胎已开启") gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("4.4;0;256D::50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("0", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(20) gg.editAll("1", gg.TYPE_FLOAT) gg.clearResults() gg.toast("集气已开启") end function c() gg.clearResults() gg.setRanges(8) gg.searchNumber("3.59999990463;0.27777779102::50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("3.59999990463", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(2) gg.editAll("-50.12345", gg.TYPE_FLOAT) gg.clearResults() gg.setRanges(8) gg.searchNumber("-50.12345;0.27777779102::50", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("0.27777779102", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(2) gg.editAll("5.12345", gg.TYPE_FLOAT) gg.toast("漂冲已开启") function d() editData( { {["memory"] = gg.REGION_ANONYMOUS}, {["name"] = "无限氮气"}, {["value"] = 1082969293, ["type"] = D}, {["lv"] = 256,["offset"] =24, ["type"] = D}, {["lv"] = 0,["offset"] =20, ["type"] = D}, }, { {["value"] = 9,["offset"] =8, ["type"] = F,["freeze"] = false}, {["value"] = 9,["offset"] =12, ["type"] = F,["freeze"] = false}, {["value"] = 9,["offset"] =16, ["type"] = F,["freeze"] = false}, {["value"] = 9,["offset"] =20, ["type"] = F,["freeze"] = false}, } ) gg.clearResults() end gg.toast("无限氮气开启") end function e() gg.clearResults() gg.setRanges(32) gg.searchNumber("1,068,708,659;1,108,082,688", 4, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1,068,708,659", 4, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) gg.editAll("1,143,373,824", 4) gg.clearResults() gg.toast("开启成功") end function f() gg.clearResults() gg.setRanges(gg.REGION_C_ALLOC) gg.searchNumber("20D;248D;0;95D;416D::40", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("0", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(2) gg.editAll("98", gg.TYPE_FLOAT) gg.clearResults() gg.toast(os.date("现在奔放时间为:\n%Y年%m月%d日%H时%M分%S秒")) end function g() gg.clearResults() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("1;0.5;0.30000001192;0.1000000049::20", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.searchNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.getResults(100) gg.editAll("2.50", gg.TYPE_FLOAT) gg.toast("悬浮加速") end function Exit() print("北澈.") os.exit() end cs = "作者QQ:2756675086" while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end end