-- ================= 配置 ================ local RANGE_NUM = 16384 -- Xa内存 local TYPE_NUM = 16 -- F类型 local ORIGIN_VAL = 1.20000004768 -- ==================================================== local addressCache = {} -- 缓存所有真实抓地力地址(关键!) -- ============= 核心函数:全量修改(不管现在是几) ============= function findAndSet(targetVal) -- 第一步:如果缓存为空 → 先一次性搜 1.2,把地址存下来(以后永远用缓存) if #addressCache == 0 then gg.clearResults() gg.setRanges(RANGE_NUM) gg.searchNumber(tostring(ORIGIN_VAL), TYPE_NUM) local results = gg.getResults(500) if not results or #results == 0 then gg.toast("❌ 未找到原始值") gg.clearResults() return end -- addressCache = {} for i = 1, #results do table.insert(addressCache, results[i].address) end end -- QH local editList = {} for i = 1, #addressCache do table.insert(editList, { address = addressCache[i], flags = TYPE_NUM, value = targetVal }) end gg.setValues(editList) gg.toast("✅ 已修改所有地址为:"..targetVal) gg.clearResults() end -- ============= 还原函数(永远能用,不会找不到) ============= function revertAll() if #addressCache == 0 then gg.toast("⚠️ 暂无地址可还原") return end local editList = {} for i = 1, #addressCache do table.insert(editList, { address = addressCache[i], flags = TYPE_NUM, value = ORIGIN_VAL }) end gg.setValues(editList) gg.toast("✅ 已全部还原为抓地力") gg.clearResults() end --[[Welcome to Dluae]]function Main() SN = gg.choice({ "选择游戏进程", "🚗抓地力6🚀", "🚎抓地力10🚀", "🚕抓地力20🚀", "🚙抓地力999🚀", "🛠还原抓地", "退出脚本" }, 2018, "🌐工艺只看QH⚠️") 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 Exit() end XGCK = -1 end --选择游戏进程 function a() gg.setProcessX() gg.toast("选择进程") end -- 抓地力6点 function b() findAndSet(6.0) gg.alert("已修改抓地力6👌🏻") end -- 抓地力10点 function c() findAndSet(10.0) gg.alert("已修改抓地力10👌") end -- 抓地力20点 function d() findAndSet(20.0) gg.alert("已修改抓地力20👌") end -- 抓地力999点 function e() findAndSet(999.0) gg.alert("已修改抓地力999👌") end -- 还原抓地 function f() findAndSet(1.20000004768) gg.alert("已还原抓地,没效果大退重进") end function Exit() print("QH牛逼") os.exit() end cs = "Qh工艺抓地脚本" while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end end