do if type(getrlyunyz) ~= 'function' then gg.alert('请使用RLGG执行') os.exit() return end local info = { example_version = '1.0.3', name = '内置2.0', appid = '101760', appkey = '4yfYFeKA2265fy28', rc4key = 'zy1MXAVlLAM6mlCi', version = '2.0', mi_type = '3' } local rlyunyz = getrlyunyz(info) local ret = rlyunyz.start() if not ret or not isTable(ret) or ret.sign ~= '759dc7ad511d2957a0589f60926643d9' then os.exit() return end end function Main() SN = gg.choice({ "①选择进程¹♞", "②自动改车牌²♞", "③修改金币³♞", "④自改速度⁴♞", "⑤自改广角⁵♞", "⑥保持Q弹⁶♞", "退出脚本" }, 2018, "购买会员联系作者") 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 function b() function main() while true do local prompt = gg.prompt( {"请输入旧车牌:", "请输入新车牌:"}, {[1] = "", [2] = ""}, {[1] = "text", [2] = "text"} ) if prompt == nil then gg.toast("脚本已退出") return end local oldText = prompt[1] local newText = prompt[2] if oldText == "" or newText == "" then gg.toast("文本不能为空,请重新输入") else gg.setVisible(false) gg.setRanges( gg.REGION_JAVA_HEAP | gg.REGION_C_HEAP | gg.REGION_C_ALLOC | gg.REGION_C_DATA | gg.REGION_C_BSS | gg.REGION_PPSSPP | gg.REGION_ANONYMOUS ) gg.clearResults() gg.searchNumber(";" .. oldText, gg.TYPE_UNICODE) local count = gg.getResultsCount() if count == 0 then gg.toast("未找到: " .. oldText) else gg.getResults(count) gg.editAll(";" .. newText, gg.TYPE_UNICODE) gg.toast("成功替换 " .. count .. " 处") end gg.clearResults() gg.setVisible(true) end end end main() gg.toast("取消") end function c() local input = gg.prompt( {"剩余金币数量:", "替换成的数量:"}, {[1] = "0", [2] = "0"}, {[1] = "number", [2] = "number"} ) if input == nil then gg.toast("已取消") return end local searchVal = tonumber(input[1]) local replaceVal = tonumber(input[2]) if not searchVal or not replaceVal then gg.toast("错误:请输入有效的数字") return end searchVal = searchVal & 0xFFFFFFFF replaceVal = replaceVal & 0xFFFFFFFF gg.toast("正在扫描内存,请稍候...") gg.setRanges( gg.REGION_JAVA_HEAP | gg.REGION_C_HEAP | gg.REGION_C_ALLOC | gg.REGION_C_DATA | gg.REGION_C_BSS | gg.REGION_PPSSPP | gg.REGION_ANONYMOUS ) gg.clearResults() gg.searchNumber(searchVal, gg.TYPE_DWORD) local count = gg.getResultsCount() if count == 0 then gg.toast("未找到匹配的内存") return end gg.getResults(count) gg.editAll(replaceVal, gg.TYPE_DWORD) gg.toast(string.format("完成!成功替换 %d 个地址", count)) gg.clearResults() end function d() gg.toast("不是会员用户") end function e() gg.toast("不是会员用户") end function f() gg.toast("不是会员用户") end function Exit() print("结束脚本") os.exit() end cs = "作者QQ:2518579189" while true do if gg.isVisible(true) then XGCK = 1 gg.setVisible(false) end gg.clearResults() if XGCK == 1 then Main() end gg.sleep(100) end