function nc_offset(addr,tablex,tt) for i,v in ipairs(tablex) do if v[4]==true then gg.addListItems({{address=addr+v[3],flags=v[2],value=v[1],freeze=v[4]}})else gg.setValues({{address=addr+v[3],flags=v[2],value=v[1]}}) end end gg.toast((tt or "").."开启成功,祝您游戏愉快") end function getso(So_name) return gg.getRangesList(So_name)[1].start end function S_Pointer(t_So, t_Offset, _bit) local function getRanges() local ranges = {} local t = gg.getRangesList('^/data/*.so*$') for i, v in pairs(t) do if v.type:sub(2, 2) == 'w' then table.insert(ranges, v) end end return ranges end local function Get_Address(N_So, Offset, ti_bit) local ti = gg.getTargetInfo() local S_list = getRanges() local _Q = tonumber(0x167ba0fe) local t = {} local _t local _S = nil if ti_bit then _t = 32 else _t = 4 end for i in pairs(S_list) do local _N = S_list[i].internalName:gsub('^.*/', '') if N_So[1] == _N and N_So[2] == S_list[i].state then _S = S_list[i] break end end if _S then t[#t + 1] = {} t[#t].address = _S.start + Offset[1] t[#t].flags = _t if #Offset ~= 1 then for i = 2, #Offset do local S = gg.getValues(t) t = {} for _ in pairs(S) do if not ti.x64 then S[_].value = S[_].value & 0xFFFFFFFF end t[#t + 1] = {} t[#t].address = S[_].value + Offset[i] t[#t].flags = _t end end end _S = t[#t].address end return _S end local _A = string.format('0x%X', Get_Address(t_So, t_Offset, _bit)) return _A end function fastsearch(search, write) gg.setVisible(false) gg.clearResults() gg.setRanges(search[1][3]) gg.searchNumber(search[1][1], search[1][2]) if gg.getResultsCount() == 0 then gg.toast("警告⚠️:没有值可修改") return false else local result = gg.getResults(gg.getResultsCount()) gg.clearResults() for i = 2, #search do local mtp = {} for w, r in ipairs(result) do mtp[#mtp + 1] = { address = r.address + search[i][2], flags = search[i][3] } end mtp = gg.getValues(mtp) local hook = {} for w, r in ipairs(mtp) do if r.value == search[i][1] then hook[#hook + 1] = result[w] end end result = hook end if #result > 0 then local tb = {{}, {}} for i, v in ipairs(result) do --- 遍历每个结果 for _, vv in ipairs(write) do local p = {address = v.address + vv[2], flags = vv[3], value = vv[1], freeze = vv[4]} if vv[4] then --- true 就是冻结 table.insert(tb[2], p) else table.insert(tb[1], p) end end end gg.addListItems(tb[2]) gg.setValues(tb[1]) gg.toast("已修改" .. (#tb[1] + #tb[2]) .. "个值,祝您游戏愉快!") else gg.toast("警告⚠️:没有值可修改") end end end function Main0() A = gg.choice({ "锁定抱摔", "技能无cd", "倒地结算", "击倒五十人", "个人伤害", "救人数量", "逃脱八人", "无视夹子", "退出脚本", }, 0,"") if A==1 then og1() end if A==2 then og2() end if A==3 then og3() end if A==4 then og4() end if A==5 then og5() end if A==6 then og6() end if A==7 then og7() end if A==8 then og8() end if A==9 then os.exit() end XGCK =-2 end function og1()--锁定抱摔 fastsearch({{4.300000190734863,16,32},{-1,-4,16},{1,-8,16},{3,-12,16}},{{1.40129846e-45,-268,16,true}}) end function og2()--技能无cd fastsearch({{-0.00048828369,16,16384},{-382907280,-360,4},{-494030832,-356,4},},{{-476053503,-360,4},{-516948194,-356,4,false}}) fastsearch({{-0.0004882816,16,16384},{-382908368,-536,4},{-494030840,-532,4},},{{-476053504,308,4},{-516948194,312,4},{-476050943,1652,4},{-516948194,1656,4},{-476053503,2344,4},{-516948194,2348,4},{-476053503,-536,4},{-516948194,-532,4,}}) end function og3()--全体倒地 fastsearch({{100.0,16,32},{0.30000001192092896,4,16},}, {{0, -4, 16, false}}) end function og4()--击倒五十 fastsearch({{-128.31251525879,16,16384},{-382908368,-756,4},{-494030840,-752,4},{167772164,-800,4}},{{-476053454,-756,4,true},{-516948194,-752,4,true}}) end function og5()--个人伤害 fastsearch({{0.20000000298,16,16384},{-527478779,-528,4},{-509591552,-532,4}},{{-486535200,-544,4,true},{-301987312,-540,4,true},{-289928512,-536,4,true},{-300938736,-532,4,true},{-516948194,-528,4,true}}) end function og6()--救人数量 fastsearch({{-128.31251525879,16,16384},{-382908368,1112,4},{-494030840,1116,4},{167772175,1028,4}},{{-476049917,1112,4,true},{-516948194,1116,4,true}}) end function og7()--逃生八人 fastsearch({{42569729,4,16384},{-494030820,212,4}},{{-486539256,208,4},{-516948194,212,4,}}) end function og8()--无视夹子 qmnb = { {["memory"] = 32}, {["name"] = "夹子"}, {["value"] = 2.5, ["type"] = 16}, {["lv"] = 0.5,["offset"] =4, ["type"] = 16}, {["lv"] = 1.0,["offset"] =8, ["type"] = 16}, {["lv"] = 25.0,["offset"] =12, ["type"] = 16}, } qmxg = { {["value"] = 0,["offset"] =8, ["type"] = 16}, } xqmnb(qmnb) end while true do if gg.isVisible(true) then XGCK = 2 gg.setVisible(false) end if XGCK == 2 then Main0() end end