function xqmnb(Search,Modification) gg.clearResults() gg.setRanges(Search[1].memory) gg.searchNumber(Search[3].value,Search[3].type,false,536870912,0,-1) if gg.getResultCount()==0 then gg.toast(Search[2].name..'开启失败') return end local Result=gg.getResults(gg.getResultCount()) local sum for index=4,#Search do sum=0 for i=1,#Result do if gg.getValues({{address=Result[i].address+Search[index].offset,flags=Search[index].type}})[1].value~=Search[index].lv then Result[i].Usable=true sum=sum+1 end end if sum==#Result then gg.toast(Search[2].name..'开启失败') return end end local Data,Freeze,Freezes={},{},0 sum=0 for index,value in ipairs(Modification)do for index=1,#Result do if not Result[index].Usable then local Value={address=Result[index].address+value.offset,flags=value.type,value=value.value,freeze=true} if value.freeze then Freeze[#Freeze+1]=Value Freezes=Freezes+1 else Data[#Data+1]=Value end sum=sum+1 end end end gg.setValues(Data) gg.addListItems(Freeze) if Freezes==0 then gg.toast(Search[2].name..'开启成功,共修改'..sum..'条数据') else gg.toast(Search[2].name..'开启成功,共修改'..sum..'条数据,冻结'..Freezes..'条数据') end gg.clearResults() end function Main() menu = gg.choice({ '植物僵尸类', '功能类', '退出脚本'}, 2018,'这里可以填QQ号') if menu == 1 then A() end if menu == 2 then B() end if menu == 3 then Exit() end XGCK=-1 end function A() menu1 = gg.multiChoice({ '植物(无阳光,无冷却,大招时间增加,阶数增加)', '副功能名称2', '副功能名称3', '副功能名称4', '副功能名称5', '副功能名称6', '返回上一页'}, nil,'这里也可以随便填') if menu1 == nil then else if menu1[1] == true then a1() end if menu1[2] == true then a2() end if menu1[3] == true then a3() end if menu1[4] == true then a4() end if menu1[5] == true then a5() end if menu1[6] == true then a6() end if menu1[7] == true then HOME() end end GLWW=-1 end function B() menu1 = gg.multiChoice({ '星星数量', '能量豆不减', '双人对站阳光', '加速', '神器大阶', '副功能名称6', '返回上一页'}, nil,'这里也可以随便填') if menu1 == nil then else if menu1[1] == true then b1() end if menu1[2] == true then b2() end if menu1[3] == true then b3() end if menu1[4] == true then b4() end if menu1[5] == true then b5() end if menu1[6] == true then b6() end if menu1[7] == true then HOME() end end GLWW=-1 end function a1() local qmnb= { {['memory']=16384}, {['name']='阳光'}, {['value']=186188055, ['type']=4}, {['lv']=-350485665,['offset']=8, ['type']=4}, {['lv']=922747124,['offset']=280, ['type']=4}, } local qmxg= { {['value']=-721215457,['offset']=300,['type']=4}, } xqmnb(qmnb,qmxg) local qmnb= { {['memory']=16384}, {['name']='冷却'}, {['value']=-251720536, ['type']=4}, {['lv']=-1325461911,['offset']=256, ['type']=4}, {['lv']=923270888,['offset']=656, ['type']=4}, } local qmxg= { {['value']=-721215457,['offset']=880,['type']=4}, } xqmnb(qmnb,qmxg) local qmnb= { {['memory']=16384}, {['name']='大招'}, {['value']=-268367640, ['type']=4}, {['lv']=872416023,['offset']=-120, ['type']=4}, {['lv']=524419104,['offset']=-36, ['type']=4}, } local qmxg= { {['value']=1384198944,['offset']=36,['type']=4}, } xqmnb(qmnb,qmxg) local qmnb= { {['memory']=16384}, {['name']='阶数'}, {['value']=-788586487, ['type']=4}, {['lv']=505481224,['offset']=104, ['type']=4}, {['lv']=-46136480,['offset']=224, ['type']=4}, } local qmxg= { {['value']=1384121376,['offset']=292,['type']=4}, } xqmnb(qmnb,qmxg) end function a2() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值",gg.TYPE_FLOAT) gg.toast("开启成功") end function a3() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值", gg.TYPE_FLOAT) gg.toast("开启成功") end function a4() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值",gg.TYPE_FLOAT) gg.toast("开启成功") end function a5() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值",gg.TYPE_FLOAT) gg.toast("开启成功") end function a6() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值",gg.TYPE_FLOAT) gg.toast("开启成功") end function b1() local qmnb= { {['memory']=-2080896}, {['name']='星星数量'}, {['value']=-48041511, ['type']=4}, {['lv']=130337,['offset']=-36, ['type']=4}, {['lv']=373761,['offset']=148, ['type']=4}, } local qmxg= { {['value']=1105921,['offset']=-384,['type']=4}, } xqmnb(qmnb,qmxg) gg.toast("开启成功") end function b2() menu1 = gg.multiChoice({ '①开启(断点能量豆全局)', '②关闭', '返回上一页'}, nil,'祝你们能天天稳定') if menu1 == nil then else if menu1[1] == true then b01() end if menu1[2] == true then b02() end if menu1[3] == true then HOME() end end GLWW=-1 end function b3() local qmnb= { {['memory']=16384}, {['name']='测试'}, {['value']=-268328952, ['type']=4}, {['lv']=-268328960,['offset']=-180, ['type']=4}, {['lv']=-268328960,['offset']=16, ['type']=4}, } local qmxg= { {['value']=-721215457,['offset']=84,['type']=4}, } xqmnb(qmnb,qmxg) end function b4() PPP = gg.prompt({ '自改\n推荐3\n推荐7' }, {[1] = '3'}, {[1] = 'number'})[1] local qmnb= { {['memory']=-2080896}, {['name']='测试'}, {['value']=1689976239554560, ['type']=32}, {['lv']=4715268813069746176,['offset']=-4, ['type']=32}, } local qmxg= { {['value']=PPP,['offset']=-44,['type']=16}, } xqmnb(qmnb,qmxg) end function b5() local qmnb= { {['memory']=16384}, {['name']='测试'}, {['value']=-268322688, ['type']=4}, {['lv']=402653026,['offset']=52, ['type']=4}, {['lv']=-351731382,['offset']=188, ['type']=4}, } local qmxg= { {['value']=1384198952,['offset']=296,['type']=4}, } xqmnb(qmnb,qmxg) end function b6() gg.clearResults() gg.setRanges(gg.REGION_BAD) gg.searchNumber("搜索数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.searchNumber("改善数值", gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1) gg.getResults(10) gg.editAll("修改数值",gg.TYPE_FLOAT) gg.toast("开启成功") end function b01() local qmnb= { {['memory']=16384}, {['name']='开'}, {['value']=-1119764888, ['type']=4}, {['lv']=-46136352,['offset']=-100, ['type']=4}, {['lv']=-1123959200,['offset']=76, ['type']=4}, } local qmxg= { {['value']=-721215457,['offset']=296,['type']=4}, } xqmnb(qmnb,qmxg) end function b02() local qmnb= { {['memory']=16384}, {['name']='关'}, {['value']=-1119764888, ['type']=4}, {['lv']=-46136352,['offset']=-100, ['type']=4}, {['lv']=-1123959200,['offset']=76, ['type']=4}, } local qmxg= { {['value']=-1191086079,['offset']=296,['type']=4}, } xqmnb(qmnb,qmxg) end function Exit() print("这里是退出脚本后的提示文字") os.exit() end function HOME() lw=1 Main() end cs = '这里可以填QQ' while(true)do if gg.isVisible(true) then XGCK=1 gg.setVisible(false) end gg.clearResults() if XGCK==1 then Main() end end