GG修改王牌竞速加速lua开源脚本代码


function a1()
B = gg.prompt({"平跑加速"},{"原值为:1"},{'number'})
function PS() 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
-- print("\xE7\xBE\xA4\x3A".._Q)
end
return _S
end
Temp = Get_Address(t_So, t_Offset, _bit)
if Temp == nil then
return -1
end
local _A = string.format('0x%X', Temp)
return _A
end

local t = {"libGame.so:bss", "Cb"}
local tt = {0x1EB5C8, 0x10, 0x98, 0x10}
local ttt = S_Pointer(t, tt, true)
gg.setValues({{address = ttt, flags = 64, value = B[1],freeze = true}})
gg.toast("平跑加速开启")
end

这个是自定义的

标签

发表评论

评论列表(2)

  • 小 龙女

    2022.4.24 10:04

    这源代码第28行有误啊

    • 147258369

      2022.7.9 19:07

      他这人就直接从别人完整的脚本里面截取一部分。