function mian() menu = gg.multiChoice({ "开启加速", "关闭加速", "退出脚本"}, nil,"晴天也会突然下暴雨 温柔的人也会不开心.") if menu == nil then else if menu[1] == true then a1() end if menu[2] == true then a2() end if menu[3] == true then gg.toast("你妈死了") os.exit() end end XGCK=-1 end function a1() function Alie(Search, Write,Neicun,Mingcg,Shuzhiliang) gg.clearResults() gg.setRanges(Neicun) gg.setVisible(false) gg.searchNumber(Search[1][1], Search[1][3]) count = gg.getResultCount() result = gg.getResults(count) gg.clearResults() data = {} base = Search[1][2] if (count > 0) then for i, v in ipairs(result) do v.isUseful = true end for k=2, #Search do tmp = {} offset = Search[k][2] - base num = Search[k][1] for i, v in ipairs(result) do tmp[#tmp+1] = {} tmp[#tmp].address = v.address + offset tmp[#tmp].flags = Search[k][3] 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 gg.toast(Mingcg.."搜索到"..#data.."条数据") t = {} base = Search[1][2] if Shuzhiliang == "" and Shuzhiliang > 0 and Shuzhiliang < #data then Shuzhiliang=Shuzhiliang else Shuzhiliang=#data end for i=1, Shuzhiliang do for k, w in ipairs(Write) do offset = w[2] - base t[#t+1] = {} t[#t].address = data[i] + offset t[#t].flags = w[3] t[#t].value = w[1] if (w[4] == true) then item = {} item[#item+1] = t[#t] item[#item].freeze = true gg.addListItems(item) end end end gg.setValues(t) gg.toast(Mingcg.."已修改"..#t.."条数据") gg.sleep(400) else gg.toast(Mingcg.."开启失败", false) return false end else gg.toast("搜索失败") return false end end Alie({{2500000000.0,0,16},{88.0,28,16},{60.0,32,16},},{{70,28,16},},32,"站浮",true) Alie({{150994944,0,4},{58,-4,4},{58,-8,4},{89,40,4},{1084227584,68,4}},{{70,16,16},{70,16,16}},32,"完美",true) Alie({{-1328550408728725571,0,32}},{{-1328550408576460390,0,32}},16384,"优化",true) Alie({{-1228926273201366461,0,32}},{{-1228926273126264269,0,32}},16384,"防拉",true) Alie({{-1901117039636905984,0,32}},{{-1901117038551420109,0,32}},16384,"慢动作",true) Alie({{268464131,0,4},{290914307,4,4}},{{0,24,16}},16384,"全局",true) Alie({{150994944,0,4},{58,-4,4},{58,-8,4},{89,40,4},{1084227584,68,4}},{{90.0,16,16},{90.0,20,16}},32,"全局",true) Alie({{-998965248,0,4},{1101004800,232,4}},{{0.055,236,16}},32,"压",true) Alie({{-998965248,0,4},{1101004800,232,4}},{{0.055,236,16}},32,"压",true) Alie({{-309327247,0,4},{-308340220,4,4}},{{0.285,-4,16}},16384,"爆",true) Alie({{-309327247,0,4},{-308340220,4,4}},{{0.285,-4,16}},16384,"爆",true) Alie({{-1296744149883614555,0,32}},{{-1296744149264269342,0,32}},16384,"全局",true) Alie({{4525216907414147695,0,32}},{{4525216907473673257,0,32}},32,"人物",true) Alie({{-1901117039636905984,0,32}},{{-1901117038551420109,0,32}},16384,"稳",true) Alie({{-1328550408728725571,0,32}},{{-1328550408576460390,0,32}},16384,"刷",true) Alie({{-1228926273201366461,0,32}},{{-1228926273126264269,0,32}},16384,"定",true) Alie({{20000,0,4},{10000,-8,4},{10000,-4,4},},{{10000000000,-8,4},{10000000000,-4,4},},32,"完美",true) Alie({{479.5,0,16},{1.0,-12,16},{1.0,-8,16},{1.0,-4,16},},{{2000,-12,16},{2000,-8,16},{2000,-4,16},},32,"趴下加速",true) end function a2() function Alie(Search,Get,Type,Range,Name) gg.clearResults() gg.setRanges(Range) gg.setVisible(false) if Search[1][1]~=false then gg.searchAddress(Search[1][1],0xFFFFFFFF,Search[1][4] or Type,gg.SIGN_EQUAL,Search[1][5] or 1,Search[1][6] or -1) end gg.searchNumber(Search[1][2],Search[1][4] or Type,false,gg.SIGN_EQUAL,Search[1][5] or 1,Search[1][6] or -1) local count=gg.getResultCount() local result=gg.getResults(count) gg.clearResults() local data={} local base=Search[1][3] 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=Search[k][3] or Type end tmp=gg.getValues(tmp) for i,v in ipairs(tmp) do if v.flags==16 or v.flags==64 then values=tostring(v.value):sub(1,6) num=tostring(num):sub(1,6) else values=v.value end if tostring(values)~=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,t_={},{} local base=Search[1][3] for i=1,#data do for k,w in ipairs(Get) do offset=w[2] - base if w[1]==false then t_[#t_+1]={} t_[#t_].address=data[i]+offset t_[#t_].flags=Type th_=(th_) and th_+1 or 1 else t[#t+1]={} t[#t].address=data[i]+offset t[#t].flags=w[3] or Type t[#t].value=w[1] tg_=(tg_) and tg_+1 or 1 if (w[4]==true) then local item={} item[#item+1]=t[#t] item[#item].freeze=w[4] gg.addListItems(item) end end end end tg=(tg_) and "\n📥修改"..tg_.."数据" or "" th=(th_) and "" or "" gg.setValues(t) t_=gg.getValues(t_) gg.loadResults(t_) gg.toast("\n"..Name..tg) tg_,th_=nil,nil else gg.toast("❌搜索不到",false) return false end else gg.toast("❌搜索不到") return false end end Alie({{false,268464131,0,4,nil,nil},{290914307,4,4}},{{-6.15262313e27,24,16,false}},4,16384,"关闭") Alie({{false,-637534134,0,4,nil,nil},{-309061114,-12,4}},{{-5.10801854e27,-16,16,false}},4,16384,"关闭") Alie({{false,-998965248,0,4,nil,nil},{1101004800,232,4}},{{0.0005,236,16,false}},4,32,"关闭") Alie({{false,-309327247,0,4,nil,nil},{-308340220,4,4}},{{9.99999997e-7,-4,16,false}},4,16384,"关闭") Alie({{false,1198153728,0,4,nil,nil},{1,20,4},{1,24,4}},{{1.0,100,16,false}},4,32,"关闭") Alie({{false,-1088801054,0,4,nil,nil}},{{10.90734863281,-8,16,false}},4,16384,"关闭") Alie({{false,-1359975840,0,4,nil,nil}},{{-1228926276669014016,-12,32,false}},4,16384,"关闭") Alie({{false,1139785728,0,4,nil,nil},{1065353216,-12,4},{1065353216,-8,4},{1065353216,-4,4}},{{1.0,-12,16,false},{1.0,-8,16,false},{1.0,-4,16,false}},4,32,"关闭") end while(true)do if gg.isVisible(true) then XGCK=1 gg.setVisible(false) end gg.clearResults() if XGCK==1 then mian() end end