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"] xgdj = qmxg[x]["freeze"] if xgdj == nil or xgdj == "" then gg.setValues({[1] = {address = xgpy, flags = xglx, value = xgsz}}) else gg.addListItems({[1] = {address = xgpy, flags = xglx, freeze = xgdj, value = xgsz}}) end xgsl = xgsl + 1 xgjg = true 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) end end if xgjg == true then gg.toast(qmnb[2]["name"] .. "开启成功,一共修改" .. xgsl .. "条数据") else gg.toast(qmnb[2]["name"] .. "未搜索到数据,开启失败") end end end end function SearchWrite(Search, Write, Type) gg.clearResults() gg.setVisible(false) gg.searchNumber(Search[1][1], Type) local count = gg.getResultCount() local result = gg.getResults(count) gg.clearResults() local data = {} local base = Search[1][2] if (count > 0) then for i, v in ipairs(result) do v.isUseful = true end for k=2, #Search do local tmp = {} local offset = Search[k][2] - base local num = Search[k][1] for i, v in ipairs(result) do tmp[#tmp+1] = {} tmp[#tmp].address = v.address + offset tmp[#tmp].flags = v.flags end tmp = gg.getValues(tmp) for i, v in ipairs(tmp) do if ( tostring(v.value) ~= tostring(num) ) then result[i].isUseful = false end end end for i, v in ipairs(result) do if (v.isUseful) then data[#data+1] = v.address end end if (#data > 0) then local t = {} local base = Search[1][2] for i=1, #data do for k, w in ipairs(Write) do offset = w[2] - base t[#t+1] = {} t[#t].address = data[i] + offset t[#t].flags = Type t[#t].value = w[1] if (w[3] == true) then local item = {} item[#item+1] = t[#t] item[#item].freeze = true gg.addListItems(item) end end end gg.setValues(t) gg.toast("开启成功,一共修改"..#t.."条数据") gg.addListItems(t) else gg.toast("未搜索到数据,开启失败", false) return false end else gg.toast("Not Found") return false end end qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--头部范围 {["value"] = 0.00015663955, ["type"] = 16}, {["lv"] = 15.75, ["offset"] = 8, ["type"] = 16}, } qmxg = { {["value"] = 90, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--身体范围 {["value"] = 4756927107518169088, ["type"] = 32}, {["lv"] = 33, ["offset"] = -4, ["type"] = 16}, {["lv"] = 69.5, ["offset"] = 4, ["type"] = 16}, } qmxg = { {["value"] = 700, ["offset"] = 4, ["type"] = 16}, {["value"] = 700, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--15.0 {["value"] = 4683743615731738036, ["type"] = 32}, {["lv"] = 88.15017700195, ["offset"] = -4, ["type"] = 16}, {["lv"] = 8.0, ["offset"] = 4, ["type"] = 16}, {["lv"] = 15.0, ["offset"] = 8, ["type"] = 16}, } qmxg = { {["value"] = -660, ["offset"] = 0, ["type"] = 16}, {["value"] = -660, ["offset"] = -4, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, {["value"] = -560, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--16.0 {["value"] = 4683743615731723540, ["type"] = 32}, {["lv"] = 90.77570343018, ["offset"] = -4, ["type"] = 16}, {["lv"] = 8.0, ["offset"] = 4, ["type"] = 16}, {["lv"] = 16.0, ["offset"] = 8, ["type"] = 16}, } qmxg = { {["value"] = -660, ["offset"] = 0, ["type"] = 16}, {["value"] = -660, ["offset"] = -4, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, {["value"] = -560, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--27.0 {["value"] = 4744542208533725184, ["type"] = 32}, {["lv"] = 27.0, ["offset"] = 4, ["type"] = 16}, } qmxg = { {["value"] = -560, ["offset"] = 0, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--28.0 {["value"] = 4724276012378061487, ["type"] = 32}, {["lv"] = 90.48510742188, ["offset"] = -4, ["type"] = 16}, {["lv"] = 18.0, ["offset"] = 4, ["type"] = 16}, {["lv"] = 28.0, ["offset"] = 8, ["type"] = 16} } qmxg = { {["value"] = -660, ["offset"] = 0, ["type"] = 16}, {["value"] = -660, ["offset"] = -4, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, {["value"] = -560, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--26.0 {["value"] = 4719772412750681353, ["type"] = 32}, {["lv"] = -86.45761108398, ["offset"] = -4, ["type"] = 16}, {["lv"] = 16.0, ["offset"] = 4, ["type"] = 16}, {["lv"] = 26.0, ["offset"] = 8, ["type"] = 16} } qmxg = { {["value"] = -660, ["offset"] = 0, ["type"] = 16}, {["value"] = -660, ["offset"] = -4, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, {["value"] = -560, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) qmnb = { {["memory"] = 32}, {["name"] = "小金库泛滥"},--27.5 {["value"] = 4724276012378324073, ["type"] = 32}, {["lv"] = 90.4850692749, ["offset"] = -4, ["type"] = 16}, {["lv"] = 18.0, ["offset"] = 4, ["type"] = 16}, {["lv"] = 27.5, ["offset"] = 8, ["type"] = 16} } qmxg = { {["value"] = -660, ["offset"] = 0, ["type"] = 16}, {["value"] = -660, ["offset"] = -4, ["type"] = 16}, {["value"] = -560, ["offset"] = 4, ["type"] = 16}, {["value"] = -560, ["offset"] = 8, ["type"] = 16}, } xqmnb(qmnb) --以上为自己整合的范围,以及房间上想做范围的拿去用😇 --泛滥范围频道 @XJKHZ