妄想山海北玄飞天加速范围多功能gg脚本lua开源代码

function search(ss, lx, nc, dz1, dz2)
	if ss ~= nil then
		if lx ~= nil then
			if nc == nil then
				nc = 32
			end
			gg.setRanges(nc)
			if dz1 == nil then
				dz1 = "-1"
			end
			if dz2 == nil then
				dz1 = "0"
			end
			gg.searchNumber(ss, lx, false, gg.SIGN_EQUAL, dz1, dz2)
			sl = gg.getResultCount()
			if sl ~= 0 then
				sj = gg.getResults(sl)
				gg.toast("搜索到 " .. sl .. " 个结果")
				gg.clearResults()
			else
				gg.toast("未搜索到结果")
			end
		else
			gg.toast("无搜索值类型")
		end
	else
		gg.toast("无需搜索值")
	end
end
function py1(value, lx, py)
	if #sj ~= nil then
		z1 = {}
		z2 = {}
		for i = 1, #sj do
			z1[i] = {}
			z1[i].address = sj[i].address + py
			z1[i].flags = lx
		end
		z1 = gg.getValues(z1)
		for i = 1, #sj do
			if z1[i].value == value then
				z2[#z2 + 1] = {}
				z2[#z2] = sj[i]
			end
		end
		sj = z2
		z1 = {}
		z2 = {}
		gg.toast("共偏移 " .. #sj .. " 个数据")
	else
		gg.toast("没有搜索数据")
	end
end
function py2(value, lx, py)
	if #sj ~= nil then
		z1 = {}
		z2 = {}
		for i = 1, #sj do
			z1[i] = {}
			z1[i].address = sj[i].address + py
			z1[i].flags = lx
		end
		z1 = gg.getValues(z1)
		for i = 1, #sj do
			if z1[i].value ~= value then
				z2[#z2 + 1] = {}
				z2[#z2] = sj[i]
			end
		end
		sj = z2
		z1 = {}
		z2 = {}
		gg.toast("共偏移 " .. #sj .. " 个数据")
	else
		gg.toast("没有搜索数据")
	end
end
function xg1(value, lx, py, dj)
	if #sj ~= nil then
		z = {}
		for i = 1, #sj do
			z[i] = {}
			z[i].address = sj[i].address + py
			z[i].flags = lx
			z[i].value = value
			if dj == true then
				z[i].freeze = true
			end
		end
		if dj == true then
			gg.addListItems(z)
		else
			gg.clearList()
			gg.setValues(z)
		end
		gg.toast("共修改 " .. #z .. " 个数据")
	else
		gg.toast("没有搜索数据")
	end
end
function xg2(bz, value, lx, py, dj)
	if #bz ~= nil then
		z = {}
		for i = 1, #bz do
			z[i] = {}
			z[i].address = bz[i].address + py
			z[i].flags = lx
			z[i].value = value
			if dj == true then
				z[i].freeze = true
			end
		end
		if dj == true then
			gg.addListItems(z)
		else
			gg.clearList()
			gg.setValues(z)
		end
		gg.toast("共修改 " .. #z .. " 个数据")
	else
		gg.toast("没有搜索数据")
	end
end
function bc(bz)
	if sj ~= nil then
		_ENV[bz] = sj
	else
		gg.toast("无数据")
	end
end
function BaAdd(add)
	if gg.getTargetInfo().x64 == true then
		t = gg.getValues({
			[1] = {
				address = add,
				flags = 32
			}
		})
		return t[1].value
	else
		t = gg.getValues({
			[1] = {
				address = add,
				flags = 4
			}
		})
		return t[1].value & 0xFFFFFFFF
	end
end
function set(dz, xg, lx, dj)
	if dj == "true" then
		gg.addListItems({{
			address = dz,
			flags = lx,
			value = xg,
			freeze = true
		}})
	else
		gg.setValues({{
			address = dz,
			flags = lx,
			value = xg
		}})
	end
	gg.toast("已修改完成~")
end


Memory_offset=function(Search,Write,nc,Type,name) gg.clearResults() gg.setRanges(nc) gg.setVisible(false) lx=Search[1][2] gg.searchNumber(Search[1][1], lx) local count = gg.getResultCount() local result = gg.getResults(count) gg.clearResults() local data = {} if (count > 0) then gg.toast("搜索到"..count.."条数据") for i, v in ipairs(result) do v.isUseful=true end for k=2,#Search do local tmp = {} local num = Search[k][1] if Search[k][3]~= nil then lx=Search[k][3] else lx=Type end for i, v in ipairs(result) do tmp[#tmp+1] = {} tmp[#tmp].address = v.address + Search[k][2] tmp[#tmp].flags = lx 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 = {} for i=1, #data do for k, w in ipairs(Write) do if w[3] ~= nil then lx = w[3] else lx=Type end t[#t+1] = {} t[#t].address = data[i] + w[2] t[#t].flags = lx if (w[1]~=nil) and (w[1]~=false) then t[#t].value = w[1] if (w[4] == true) then local item = {} item[#item+1] = t[#t] item[#item].freeze = true gg.addListItems(item) else gg.setValues(t) end end end end gg.loadResults(t) gg.toast(name.."成功,共修改了"..#t.."个数值") else gg.toast(name.."开启失败") end else gg.toast(name.."搜索失败") end gg.clearResults() end
onclick = function()--一个变量
gg.setVisible(false)
repeat until gg.isVisible(true)
gg.setVisible(false)
end
readPointer = function(name, offset, i)
  local re=gg.getRangesList(name)
  local x64=gg.getTargetInfo().x64
  local va={[true]=32,[false]=4}
  if re[i or 1] then
    local addr=re[i or 1].start+offset[1]
    for i = 2,#offset do
      addr = gg.getValues({{address=addr,flags=va[x64]}})
      if not x64 then
        addr[1].value = addr[1].value & 0xFFFFFFFF
      end
      addr = addr[1].value + offset[i]
    end
    return addr
  end
end

function gg.edits(addr, Table, name)
  local Table1 = {{}, {}}
  for k, v in ipairs(Table) do
    local value = {address = addr+v[3], value = v[1], flags = v[2], freeze = v[4]}
    if v[4] then
      Table1[2][#Table1[2]+1] = value
    else
      Table1[1][#Table1[1]+1] = value
    end    
  end
  gg.addListItems(Table1[2])
  gg.setValues(Table1[1])
  gg.toast((name or "") .. "开启成功, 共修改"..#Table.."个值")
end



function Main0()
	SN = gg.choice({"内存防封","无限子弹","悬浮加速", "攻击范围[西南]", "攻击范围[关闭]", "人物移速","无限体力", "超音速", "人物遁地[开启]", "人物遁地[开启]",  "人物踏空[开启]", "人物踏空[关闭]",  "人物穿墙[开启]","人物穿墙[关闭]","传送采集",}, nil, "by北玄 本脚本只提供交流学习 切勿利用脚本从事其他非法行为 ")
    if SN == 1 then
	  HS000()
	  end
	if SN == 2 then
		HS80()
	end
	if SN == 3 then
		HS666()
	end
	if SN == 4 then
		HS6()
	end
	if SN == 5 then
		HS7()
	end
	if SN == 6 then
		gn2222()
	end
	if SN == 7 then
		WXHS5()
	end
	if SN == 8 then
		HS11()
	end
	if SN == 9 then
		HS111()
	end
	if SN == 10 then
		HS222()
	end
	if SN == 11 then
		HS99()
	end
	if SN == 12 then
		HS999()
	end
	if SN == 13 then
		HS3()
	end
	if SN == 14 then
		HS4()
	end
	if SN == 15 then
	  HS911()
	  end
	FX1 = 0
end

function HS80()
local SN = gg.choice({
	 "无限子弹射速1",
     "无限子弹射速2",
     "无限子弹射速3",
     "无限子弹射速4",
     "无限子弹射速5",
     "无限子弹射速6",
     "无限子弹射速7",
     "无限子弹射速(幻境)",
     "无限子弹射速(国际服)",
     "人物遁地(改回用遁地飞天)",
     "飞天遁地(人物高度)"
}, nil, "如果开无限子弹1出现负数 则开无限子弹2 射速1往下开 住:没效果退出重进")
if SN==1 then
	 b00()
end
if SN==2 then
	 b5()
end
if SN==3 then
	 b7()
end
if SN==4 then
	 b9()
end
if SN==5 then
	 b11()
end
if SN==6 then
	 b13()
end
if SN==7 then
	 b15()
end
if SN==8 then
	b16()
end
if SN==9 then
	b17()
end
if SN==10 then
    b19()
    end
if SN==11 then
    b20()
    end
    
FX=0
end

function b19()
	local num = gg.prompt({"遁地 改回用第2个遁地飞天:"}, {5}, {"number"})
	if not num then
		return gg.alert("请勿取消")
	elseif not tonumber(num[1]) then
		return gg.alert("数据格式错误")
	end
	search(1035174360, 4, 4)
		py1(1060320051, 4, 188)
		py1(1053609164, 4, 192)
		py1(105, 4, -312)
xg1(num[1],16,88,true)
end
function b20()
	local num = gg.prompt({"人物高度自定义 回平原改1就行:"}, {5}, {"number"})
	if not num then
		return gg.alert("请勿取消")
	elseif not tonumber(num[1]) then
		return gg.alert("数据格式错误")
	end
	search(1035174360, 4, 4)
		py1(1060320051, 4, 188)
		py1(1053609164, 4, 192)
		py1(105, 4, -312)
xg1(num[1],16,88,true)
end


function b00()
gg.clearList()
 gg.clearResults() 
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=100,260 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end
function b4()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=200,500 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b5()
gg.clearList()
gg.clearResults()
gg.clearList()
 gg.clearResults() 
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=400,660 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b6()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=400,600 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b7()
gg.clearList()
gg.clearResults()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=260,400 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end
function b8()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=200,400 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end


function b9()
gg.clearList()
gg.clearResults()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=660,800 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end
function b10()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=50,200 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end


function b11()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=800,1000 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b12()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=600,1000 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end


function b13()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=1000,1500 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b14()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 480
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=1000,1500 do
t[#t+1]={
address=addr-i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b15()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=1500,2500 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*10000
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b16()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{}
}
for i=3300,3400,4 do
offset[#offset][#offset[#offset]+1]=i
end
for i=4300,4500,4 do
offset[#offset][#offset[#offset]+1]=i
end
local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=1,2 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*1000
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{3300,4300}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=100,260 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*1000
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{3300,4300}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=400,700 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*1000
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{3300,4300}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=260,400 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*1000
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end


function HS000()

end




function b1()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-5
else
add[i].value=add[i].value+5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b2()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{
420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value+5
else
add[i].value=add[i].value-5
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b3()
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=100,260 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
39068528,
0,
{ 420
}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=4}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+0
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address
for i=260,380 do
t[#t+1]={
address=addr+i*4,
flags=16
}
end
end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function b17()

end





function HS666()
search(0.19999998807907104,16,4)
py1(0.19999998807907104,16,40)
py1(3.5,16,84)
py1(3.5,16,124)
py1(3.5,16,164)
py1(6.0,16,436)
xg1(60,16,-4,false)
xg1(0,16,12,false)
xg1(60,16,20,false)
xg1(20,16,-12,false)
end

function HS911()
	function tp(address, coordinate)
		gg.setValues({{
			address = address + 4,
			flags = 16,
			value = -1
		}})
		local getValues = gg.getValues({{
			address = address,
			flags = 16
		}, {
			address = address + 8,
			flags = 16
		}})
		local num = 0.006 -- 每次改变量大小
		local time = 100 -- 每次改变间隔,毫秒
		local x, y = getValues[1].value, getValues[2].value
		if x >= coordinate[1] then
			while (true) do -- 先改x 减
				local x = x - num
				if x <= coordinate[1] then
					gg.setValues({{
						address = address,
						flags = 16,
						value = coordinate[1]
					}})
					break
				else
					gg.setValues({{
						address = address,
						flags = 16,
						value = x
					}})
				end
				gg.sleep(time)
			end
		else
			while (true) do -- 先改x 加
				x = x + num
				if x >= coordinate[1] then
					gg.setValues({{
						address = address,
						flags = 16,
						value = coordinate[1]
					}})
					break
				else
					gg.setValues({{
						address = address,
						flags = 16,
						value = x
					}})
				end
				gg.sleep(time)
			end
		end
		if y >= coordinate[2] then
			while (true) do -- 后改y 减
				y = y - num
				if y <= coordinate[2] then
					gg.setValues({{
						address = address + 8,
						flags = 16,
						value = coordinate[2]
					}})
					break
				else
					gg.setValues({{
						address = address + 8,
						flags = 16,
						value = y
					}})
				end
				gg.sleep(time)
			end
		else
			while (true) do -- 后改y 加
				y = y + num
				if y >= coordinate[2] then
					gg.setValues({{
						address = address + 8,
						flags = 16,
						value = coordinate[2]
					}})
					break
				else
					gg.setValues({{
						address = address + 8,
						flags = 16,
						value = y
					}})
				end
				gg.sleep(time)
			end
		end
	end
	function jm(nr, key)
		local s = {string.byte(nr, 1, -1)}
		local k = {string.byte(key, 1, -1)}
		local str = {}
		local kk = 0
		for i = 1, #s do
			kk = kk + 1
			str[i] = ((s[i]) ~ (k[kk]))
			if kk == #k then
				kk = 0
			end
		end
		return string.char(table.unpack(str))
	end
	gg.clearResults()
	sj = {}
	xgz = {}
	gg.toast("千然偏移v1.2")
	function search(ss, lx, nc, dz1, dz2)
		if ss ~= nil then
			if lx ~= nil then
				if nc == nil then
					nc = 32
				end
				gg.setRanges(nc)
				if dz1 == nil then
					dz1 = "-1"
				end
				if dz2 == nil then
					dz1 = "0"
				end
				gg.searchNumber(ss, lx, false, gg.SIGN_EQUAL, dz1, dz2)
				sl = gg.getResultCount()
				if sl ~= 0 then
					sj = gg.getResults(sl)
					gg.toast("搜索到 " .. sl .. " 个结果")
					gg.clearResults()
				else
					gg.toast("未搜索到结果")
				end
			else
				gg.toast("无搜索值类型")
			end
		else
			gg.toast("无需搜索值")
		end
	end
	function py1(value, lx, py)
		if #sj ~= nil then
			z1 = {}
			z2 = {}
			for i = 1, #sj do
				z1[i] = {}
				z1[i].address = sj[i].address + py
				z1[i].flags = lx
			end
			z1 = gg.getValues(z1)
			for i = 1, #sj do
				if z1[i].value == value then
					z2[#z2 + 1] = {}
					z2[#z2] = sj[i]
				end
			end
			sj = z2
			z1 = {}
			z2 = {}
			gg.toast("共偏移 " .. #sj .. " 个数据")
		else
			gg.toast("没有搜索数据")
		end
	end
	function py2(value, lx, py)
		if #sj ~= nil then
			z1 = {}
			z2 = {}
			for i = 1, #sj do
				z1[i] = {}
				z1[i].address = sj[i].address + py
				z1[i].flags = lx
			end
			z1 = gg.getValues(z1)
			for i = 1, #sj do
				if z1[i].value ~= value then
					z2[#z2 + 1] = {}
					z2[#z2] = sj[i]
				end
			end
			sj = z2
			z1 = {}
			z2 = {}
			gg.toast("共偏移 " .. #sj .. " 个数据")
		else
			gg.toast("没有搜索数据")
		end
	end
	function xg1(value, lx, py, dj)
		if #sj ~= nil then
			z = {}
			for i = 1, #sj do
				z[i] = {}
				z[i].address = sj[i].address + py
				z[i].flags = lx
				z[i].value = value
				if dj == true then
					z[i].freeze = true
				end
			end
			if dj == true then
				gg.addListItems(z)
			else
				gg.clearList()
				gg.setValues(z)
			end
			gg.toast("共修改 " .. #z .. " 个数据")
		else
			gg.toast("没有搜索数据")
		end
	end
	function xg2(bz, value, lx, py, dj)
		if #bz ~= nil then
			z = {}
			for i = 1, #bz do
				z[i] = {}
				z[i].address = bz[i].address + py
				z[i].flags = lx
				z[i].value = value
				if dj == true then
					z[i].freeze = true
				end
			end
			if dj == true then
				gg.addListItems(z)
			else
				gg.clearList()
				gg.setValues(z)
			end
			gg.toast("共修改 " .. #z .. " 个数据")
		else
			gg.toast("没有搜索数据")
		end
	end
	function bc(bz)
		if sj ~= nil then
			_ENV[bz] = sj
		else
			gg.toast("无数据")
		end
	end
	function BaAdd(add)
		if gg.getTargetInfo().x64 == true then
			t = gg.getValues({
				[1] = {
					address = add,
					flags = 32
				}
			})
			return t[1].value
		else
			t = gg.getValues({
				[1] = {
					address = add,
					flags = 4
				}
			})
			return t[1].value & 0xFFFFFFFF
		end
	end
	function set(dz, xg, lx, dj)
		if dj == "true" then
			gg.addListItems({{
				address = dz,
				flags = lx,
				value = xg,
				freeze = true
			}})
		else
			gg.setValues({{
				address = dz,
				flags = lx,
				value = xg
			}})
		end
		gg.toast("已修改完成~")
	end
	function analytic(x_y0, x_y1)
		local x = x_y0[1] - x_y1[1]
		local y = x_y0[3] - x_y1[3]
		return y / x
	end
	
	function tp(x_address, coordinate, distance)
		local distance = distance or 0.000024
		local xyz = gg.getValues({{
			address = x_address,
			flags = 16
		}, {
			address = x_address + 8,
			flags = 16
		}, {
			address = x_address + 16,
			flags = 16
		}})
		xyz_value = {xyz[1].value, xyz[2].value, xyz[3].value}
		local add = analytic(xyz_value, coordinate)
		if math.abs(xyz_value[1] - coordinate[1]) <= math.abs(xyz_value[3] - coordinate[3]) then -- 判断以x或y为基础增量
			if xyz_value[3] - coordinate[3] <= 0 then
				local y_add, x_add = distance, (1.0 / add) * distance
				local num = math.floor(math.abs(xyz_value[3] - coordinate[3]) / distance)
				for i = 1, num do
					xyz[1].value, xyz[2].value, xyz[3].value = xyz[1].value + x_add, 5, xyz[3].value + y_add
					gg.setValues(xyz)
				end
				xyz[1].value, xyz[2].value, xyz[3].value = coordinate[1], -2, coordinate[3]
				gg.setValues(xyz)
				gg.sleep(1200)
				xyz[2].value = coordinate[2]
				gg.setValues(xyz)
				gg.toast("本次传送已完成")
			else -- y的减
				local y_add, x_add = -distance, (1.0 / add) * -distance
				local num = math.floor(math.abs(xyz_value[3] - coordinate[3]) / distance)
				for i = 1, num do
					xyz[1].value, xyz[2].value, xyz[3].value = xyz[1].value + x_add, 5, xyz[3].value + y_add
					gg.setValues(xyz)
				end
				xyz[1].value, xyz[2].value, xyz[3].value = coordinate[1], -2, coordinate[3]
				gg.setValues(xyz)
				gg.sleep(1200)
				xyz[2].value = coordinate[2]
				gg.setValues(xyz)
				gg.toast("本次传送已完成")
			end
		else -- 以下为以x为增量
			if xyz_value[1] - coordinate[1] <= 0 then
				local x_add, y_add = distance, add * distance
				local num = math.floor(math.abs(xyz_value[1] - coordinate[1]) / distance)
				for i = 1, num do
					xyz[1].value, xyz[2].value, xyz[3].value = xyz[1].value + x_add, 5, xyz[3].value + y_add
					gg.setValues(xyz)
				end
				xyz[1].value, xyz[2].value, xyz[3].value = coordinate[1], -2, coordinate[3]
				gg.setValues(xyz)
				gg.sleep(1200)
				xyz[2].value = coordinate[2]
				gg.setValues(xyz)
				gg.toast("本次传送已完成")
			else -- x的减
				local x_add, y_add = -distance, add * -distance
				local num = math.floor(math.abs(xyz_value[1] - coordinate[1]) / distance)
				for i = 1, num do
					xyz[1].value, xyz[2].value, xyz[3].value = xyz[1].value + x_add, 5, xyz[3].value + y_add
					gg.setValues(xyz)
				end
				xyz[1].value, xyz[2].value, xyz[3].value = coordinate[1], -2, coordinate[3]
				gg.setValues(xyz)
				gg.sleep(1200)
				xyz[2].value = coordinate[2]
				gg.setValues(xyz)
				gg.toast("本次传送已完成")
			end
		end -- 结尾
	end
	--
	function get_address()
		gg.toast("正在获取人物坐标")
	search(1035174360, 4, 4)
		py1(1060320051, 4, 188)
		py1(1053609164, 4, 192)
		py1(105, 4, -312)
		if #sj >= 1 then
			Address = sj[1].address + 80
			gg.toast("获取完成")
		else
			while true do
				gg.alert("未获取到坐标地址")
				os.exit()
			end
		end
	end
	get_address()
	
	function Tp()
		speed = set_ * 0.0000008
		local tt = {}
		for i = 1, #t do
			tt[i] = i .. ". " .. t[i][1]
		end
		local _ = gg.choice(tt)
		if _ then
			tp(Address, t[_][2], speed)
		end
	end
	
	function main()
		local _b = {"X:  ", "Z:  ", "Y:  "}
		local xyz = get_xyz()
		for i = 1, 3 do
			if xyz[i] == 0 then
				gg.toast("当前坐标异常正在重新获取")
				get_address()
				return true
			else
				xyz[i] = _b[i] .. xyz[i]
			end
		end
	
		Zy = "main"
		local _ = gg.choice({"定点传送", "保存坐标", "导出坐标", "导入坐标", "速度调节[当前:" .. set_ .. "]", "退出"}, nil, "当前坐标:\n" .. table.concat(xyz, "\n"))
		if _ == 1 then
	
			if not (#t > 0) then
				return gg.alert("暂无记录")
			end
			Tp()
		elseif _ == 2 then
			local mr = get_xyz()
			table.insert(mr, 1, "")
			local xyz = gg.prompt({"名称:", "X(横坐标)", "Z(高度)", "Y(纵坐标)"}, mr, {"text"})
			if xyz and xyz[1] ~= "" then
				t[#t + 1] = {xyz[1], {tonumber(xyz[2]), tonumber(xyz[3]), tonumber(xyz[4])}}
				io.open(path, "w"):write("return " .. tostring(t))
				gg.alert("添加成功")
			end
		elseif _ == 3 then
			local nr = io.open(path, "r"):read("*a")
			nr = jm(nr, k)
			io.open("/storage/emulated/0/坐标文件.qr", "w"):write(nr)
			gg.alert("已导出到 /storage/emulated/0/坐标文件.qr")
		elseif _ == 4 then
			local ct = gg.choice({"追加模式", "覆盖模式"})
			if ct == 1 then
				local _ = gg.prompt({"导入坐标文件:"}, {gg.getFile()}, {"file"})
				if _ then
					local file = io.open(_[1], "r")
					if file then
						local nr = file:read("*a")
						nr = jm(nr, k)
						local tab = load(nr)()
						for i = 1, #tab do
							t[#t + 1] = tab[i]
						end
						io.open(path, "w"):write(nr)
						gg.alert("追加导入完成")
					end
				end
	
			elseif ct == 2 then
				local _ = gg.prompt({"导入坐标文件:"}, {gg.getFile()}, {"file"})
				if _ then
					local file = io.open(_[1], "r")
					if file then
						local nr = file:read("*a")
						nr = jm(nr, k)
						io.open(path, "w"):write(nr)
						t = load(nr)()
						gg.alert("覆盖导入完成")
					end
				end
			end
		elseif _ == 5 then
			local s = gg.prompt({"根据手机配置不同,拉回的速度不同\n\n速率[1;15]"}, {set_}, {"number"})
			if s then
				set_ = s[1]
			end
		elseif _ == 6 then
			ret = true
		end
	end
	
	function get_xyz()
		local ls = gg.getValues({{
			address = Address,
			flags = 16
		}, {
			address = Address + 8,
			flags = 16
		}, {
			address = Address + 16,
			flags = 16
		}})
		for i = 1, 3 do
			ls[i] = ls[i].value
		end
		return ls
	end
	
	path = gg.FILES_DIR .. "/Qr_KF"
	local path_file = io.open(path, "r")
	if not path_file then
		io.open(path, "w"):write("return {}")
	else
		t = loadfile(path)()
	end
	set_ = 6
	
	if t == nil then
		t = {}
	end
	Zy = "main"
	while true do
		if ret then
			ret = nil
			break
		elseif gg.isVisible(true) then
			gg.setVisible(false)
			_ENV[Zy]()
		end
	end	
end

function gn2222()
search(25.0,16,4)
py1(20.0,16,-4)
py1(10.0,16,132)
py1(50.0,16,136)
py1(100.0,16,140)
py1(20.0,16,228)
py1(25.0,16,232)
py1(50.0,16,312)
py1(4.5,16,324)
xg1(13,16,108,false)
xg1(15,16,144,false)
xg1(15,16,148,false)
xg1(15,16,156,false)
xg1(15,16,160,false)
xg1(15,16,164,false)
xg1(13,16,100,false)
end





function HS99()
	local num = gg.prompt({"一般修改为负数 改成正数可遁地 一丈大约2.5 不能开穿墙 掉水里请关闭飞回地面:"}, {-22}, {"number"})
	if not num then
		return gg.alert("请勿取消")
	elseif not tonumber(num[1]) then
		return gg.alert("数据格式错误")
	end
	search(0.3999999761581421, 16, 4)
	py1(0.8999999761581421, 16, -32)
	py1(0.699999988079071, 16, -4)
	xg1(0.08765000105, 16, -192, true)
	search(0.6427876353263855, 16, 4)
	py1(1.401298464324817E-45, 16, -376)
	py1(0.6427876353263855, 16, 0)
	py1(0.5, 16, 8)
	py1(1.3990563867818974E-41, 16, 56)
	xg1(num[1], 16, -336, true)
end

function HS999()
	search(0.6427876353263855, 16, 4)
	py1(1.401298464324817E-45, 16, -376)
	py1(0.6427876353263855, 16, 0)
	py1(0.5, 16, 8)
	py1(1.3990563867818974E-41, 16, 56)
	xg1(0.08765000105, 16, -336, false)
end



function HS3()
	search(0.08765000104904175, 16, 4)
	py1(2.3510604481259484E-38, 16, 20)
	py1(0.8999999761581421, 16, 500)
	py1(0.3999999761581421, 16, 532)
	xg1(-0.10000000149, 16, 528, true)
end

function HS4()
	search(0.08765000104904175, 16, 4)
	py1(2.3510604481259484E-38, 16, 20)
	py1(0.8999999761581421, 16, 500)
	py1(0.3999999761581421, 16, 532)
	xg1(0.69999998808, 16, 528, false)
end

function WXHS5()
	gg.clearResults()
	gg.setRanges(4)
	a = gg.prompt({'你的体力是多少就输入多少进去'}, nil, {"text"})
	gg.searchNumber(a[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
	gg.searchNumber(a[1], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
	jg = gg.getResults(100)
	sl = gg.getResultCount()
	if sl > 100 then
		sl = 100
	end
	for i = 1, sl do
		dzy = jg[i].address
		gg.addListItems({
			[1] = {
				address = dzy,
				flags = gg.TYPE_DOUBLE,
				freeze = true,
				value = a[1]
			}
		})
	end
	gg.toast("修改成功!")
	gg.clearResults()
end

function HS6()
	gg.clearResults()
	gg.setRanges(16384)
	gg.searchNumber("1.74999988079F;-1.55135936e20F;-5.82586743e24F;0.83887523413F", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	gg.searchNumber("0.83887523413", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	gg.getResults(100)
	gg.editAll("68888", gg.TYPE_FLOAT)
	gg.toast("修改成功!")
	gg.clearResults()
end

function HS7()
	gg.clearResults()
	gg.setRanges(16384)
	gg.searchNumber("1.74999988079F;-1.55135936e20F;-5.82586743e24F;66666F", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	gg.searchNumber("68888", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
	gg.getResults(100)
	gg.editAll("0.83887523413", gg.TYPE_FLOAT)
	gg.toast("修改成功!")
	gg.clearResults()
end

function HS11()
name='libSandbox.so:bss'
i=1
offset={
37855208,
0,
{1724}
}
local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=16}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+15
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
37855208,
0,
{1756}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=16}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+55
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
37855208,
0,
{1748}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=16}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+-2
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
name='libSandbox.so:bss'
i=1
offset={
37855208,
0,
{1740}
}

local re=gg.getRangesList(name)
local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4}
if re[i or 1] then 
addr=re[i or 1].start+offset[1]

for i = 2,#offset-1 do
addr = gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then
addr[1].value = addr[1].value & 0xFFFFFFFF
end
addr = addr[1].value + offset[i]
end
local add={}

addr=gg.getValues({{address=addr,flags=va[x64]}})
if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end

for i=1,#offset[#offset] do
 add[i] = {address=addr[1].value + offset[#offset][i],flags=16}
end

add=gg.getValues(add)

for i=1,#add do
if add[i].value<0 then
add[i].value=add[i].value-0
else
add[i].value=add[i].value+55
end
add[i].freeze=true
end
gg.addListItems(add)
local t={}
for i=1,#add do
local addr=add[i].address

end
t=gg.getValues(t)
for i=1,#t do
t[i].value=t[i].value*100
end
gg.setValues(t)
else
gg.alert("so或入口错误")
end
end

function HS111()
	search(0.6427876353263855, 16, 4)
	py1(5.605193857299268E-45, 16, -328)
	py1(2.3510604481259484E-38, 16, 24)
	py1(1.7095841264762768E-43, 16, 72)
	py1(1.5, 16, 372)
	xg1(5, 16, -8, false)
end

function HS222()
	search(0.6427876353263855, 16, 4)
	py1(5.605193857299268E-45, 16, -328)
	py1(2.3510604481259484E-38, 16, 24)
	py1(1.7095841264762768E-43, 16, 72)
	py1(1.5, 16, 372)
	xg1(1, 16, -8, false)
end

while true do
	if gg.isVisible(true) then
		FX1 = nil
		gg.setVisible(false)
	end
	if FX1 == nil then
		Main0()
	end
end                      

标签

发表评论