_ENV["BaOaddress"]={} _ENV["nc"]={["A"]=32,["As"]=524288,["B"]=131072,["Xa"]=16384,["Xs"]=32768,["Ca"]=4,["Cb"]=16,["Cd"]=8,["Ch"]=1,["J"]=65536,["Jh"]=2,["O"]=-2080896,["Ps"]=262144,["S"]=64,["V"]=1048576} _ENV["lx"]={["A"]=127,["B"]=1,["E"]=64,["D"]=4,["F"]=16,["Q"]=32,["W"]=2,["X"]=8} _ENV["ui"]={} _ENV["ui"]["xh"]=function(x,buer) if buer~=nil then gg.setVisible(buer) end while true do gg.sleep(300) if gg.isVisible(true) then gg.setVisible(false) local x,_=pcall(function() assert(load(x)) end) if not x then os.exit() end end end end _ENV["ui"]["duoxuan"]=function(text,...) local xz=gg.multiChoice({...},nil,text) return xz end _ENV["ui"]["xuanxiang"]=function (text,xXs,...) if xXs == nil then xXs=0 end local xz=gg.choice({...},xXs,text) return xz end _ENV["ui"]["danxuan"]=function (text,...) local xz=gg.choice({...},nil,text) return xz end _ENV["lujingsfcz"]=function(lujing) local file=io.open(lujing,"r") if file == nil then return false else file:close() return true end end _ENV["sousuo"]=function (NC,S,Sx,X,Xx,sbtext,cgtext) gg.clearResults() gg.setRanges(NC) gg.searchNumber(S,Sx, false, gg.SIGN_EQUAL, 0, -1) if gg.getResultCount() == 0 then if sbtext ~= nil then gg.toast(sbtext) end else if X ~= nil then gg.searchNumber(X,Xx, false, gg.SIGN_EQUAL, 0, -1) end if cgtext ~= nil then gg.toast(cgtext) end end end _ENV["EXIT"]=function(text,buer) gg.setVisible(buer) if text~=nil then print(text) end os.exit() while true do end end _ENV["pianyiduibi"]=function (DE,lx,py,zhi,dzhi,duodeng) if(gg.getResultCount()==0)then else if(DE==true)then _ENV["BaOaddress"]=gg.getResults(gg.getResultCount()) end local BaOaddress1={} XLH=1 for k,v in pairs(_ENV["BaOaddress"]) do BaOaddress1[XLH]={} BaOaddress1[XLH].address=v.address+py BaOaddress1[XLH].flags=lx XLH=XLH+1 end huoquDz=gg.getValues(BaOaddress1) XLH=1 _ENV["BaOaddress"]={} for k,v in pairs(huoquDz) do if duodeng==nil then if dzhi~=nil then if (tonumber(v.value)<=tonumber(dzhi) and tonumber(v.value)>=tonumber(zhi)) then _ENV["BaOaddress"][XLH]={} _ENV["BaOaddress"][XLH].address=v.address-py _ENV["BaOaddress"][XLH].flags=lx XLH=XLH+1 end else if v.value==zhi then _ENV["BaOaddress"][XLH]={} _ENV["BaOaddress"][XLH].address=v.address-py _ENV["BaOaddress"][XLH].flags=lx XLH=XLH+1 end end else if v.value~=duodeng then _ENV["BaOaddress"][XLH]={} _ENV["BaOaddress"][XLH].address=v.address-py _ENV["BaOaddress"][XLH].flags=lx XLH=XLH+1 end end end _ENV["BaOaddress"]=gg.getValues(_ENV["BaOaddress"]) end end _ENV["pianyixg"]=function (zdy,lx,py,dj,zhi,shibaitishi,chenggongtishi,zdyalertstr) if(#_ENV["BaOaddress"]==0)then if(shibaitishi~=nil)then gg.toast(shibaitishi) end else if(zdy==true)then if zdyalertstr==nil then zdyalertstr="请输入你要修改的值!不填即为修改为当前自身值!" end zdy=gg.prompt({zdyalertstr,"是否冻结?"},{[1]=zhi,[2]=dj},{[1]="number",[2]="checkbox"}) if zdy ~= nil then zhi=zdy[1] dj=zdy[2] else zhi=nil end end if(zhi==nil)then gg.clearResults() gg.toast("你选择了取消!") gg.setVisible(true) else XGaddre={} for k,v in pairs(_ENV["BaOaddress"]) do XGaddre[k]={} XGaddre[k].address=v.address+py XGaddre[k].flags=lx if #zhi==0 then XGaddre[k].value=gg.getValues({{address=v.address+py,flags=lx}})[1]["value"] elseif zhi=="不修改" then XGaddre[k].value=gg.getValues({{address=v.address+py,flags=lx}})[1]["value"] else XGaddre[k].value=zhi end if(dj==true)then XGaddre[k].freeze=true end end if dj==true then gg.addListItems(XGaddre) if(chenggongtishi~=nil)then gg.toast(chenggongtishi) end else gg.removeListItems(XGaddre) gg.setValues(XGaddre) if(chenggongtishi~=nil)then gg.toast(chenggongtishi) end end end end end _ENV["yichujieguo"]=function (X,X1) if(gg.getResultCount()==0)then else shanchuaddress=gg.getResults(gg.getResultCount()) shanchuaddreSS={} XLH=1 for k,v in pairs(shanchuaddress) do if X1==nil then if k>=X then shanchuaddreSS[XLH]={} shanchuaddreSS[XLH].address=v.address shanchuaddreSS[XLH].flags=v.flags end else iSsc=not(k>=X1 or k<=X) if iSsc==false then shanchuaddreSS[XLH]={} shanchuaddreSS[XLH].address=v.address shanchuaddreSS[XLH].flags=v.flags end end XLH=XLH+1 end gg.removeResults(shanchuaddreSS) print(shanchuaddreSS) end end _ENV["huoquzhi"]=function (address,lx,py) return gg.getValues({[1]={address=address+py,flags=lx}})[1].value end _ENV["dizhihuoqu"]=function (address,lx,pyZ,pyF) local ZFaddress={} for i=4,pyZ,4 do ZFaddress[#ZFaddress+1]={} ZFaddress[#ZFaddress].address=address+i ZFaddress[#ZFaddress].flags=lx end for i=4,pyF,4 do ZFaddress[#ZFaddress+1]={} ZFaddress[#ZFaddress].address=address-pyF ZFaddress[#ZFaddress].flags=lx end ZFaddress[#ZFaddress+1]={} ZFaddress[#ZFaddress].address=address ZFaddress[#ZFaddress].flags=lx gg.loadResults(ZFaddress) end _ENV["addresspy"]=function (Dz,py,lx) local py=tonumber(py) local i={} for k,v in ipairs(Dz) do i[#i+1]={} i[#i].address=v.address+py i[#i].flags=lx end return gg.getValues(i) end _ENV["VPN"]=function() if gg.makeRequest("https://vpn.ytu.edu.cn").content==nil then return true else return false end end _ENV["getHex16"]=function(text,forMat,Py4) local i=nil local a="" local Hex16=string.format("%X",text) if not(8-#Hex16==8) then Hex16=string.rep("0",8-#Hex16)..Hex16 end if Py4 then local isadd=string.sub(Hex16,#Hex16,#Hex16) Hex16=string.match(Hex16,"(.+)"..isadd)..addZh[isadd] end if forMat then for i=#Hex16,1,-2 do a=a..string.sub(Hex16,i-1,i) end return a else return Hex16 end end _ENV["判断路径是否存在"]=function(path) local a,b=io.open(path) if not b then io.close(a) return true else local aa=string.find(b,"(Is a directory)") if aa then return "文件夹" else local aa=string.find(b,"(No such file or directory)") if aa then return false end end end end _ENV["位移加密与解密"]=function(YJ) local KH={} local k=gg.bytes(YJ,"UTF-8") for i=1,#k do if k[i]%2==0 then KH[i]=k[i]+1 else KH[i]=k[i]-1 end end return string.char(table.unpack(KH)) end _ENV["筛选结果修改"]=_ENV["pianyixg"] _ENV["偏移对比"]=_ENV["pianyiduibi"] _ENV["终止脚本"]=_ENV["EXIT"] _ENV["修改结果"]=_ENV["xiugai"] _ENV["操作界面循环"]=_ENV["ui"]["xh"] _ENV["搜索"]=_ENV["sousuo"]  
HM_A="[ 已关闭 ]" HM_B="[ 已关闭 ]" HM_C="[ 已关闭 ]"HM_D="[ 已关闭 ]"
function Main()
  SN = gg.choice({
  "💠 [ 全屏爆炸 ] 💠 - "..HM_A,
  "💠 [ 全屏横炸 ] 💠 - "..HM_B,
  "💠 [ 全屏竖炸 ] 💠 - "..HM_C,
  "💠 [ 弑神爆炸 ] 💠 - "..HM_D,
  "💠 [ 退出脚本 ] 💠 - [ 已开启 ]",
   },nil,os.date("ゞ﹎幻灭ヤ ( 工作室 )\n\n日期 : "..[[%Y]].. " 年 " ..[[%m]].. " 月 " ..[[%d]].. " 日 \n\n游戏 : 开 心 消 消 乐  [ 官方版 ]"    ))
 if SN == nil then  else
 if SN == 1 then  HS2()  end
 if SN == 2 then  HS3()  end
 if SN == 3 then  HS4()  end
 if SN == 4 then  HS5()  end
 if SN == 5 then  HS6()  end
end XGCK = -1 
end
function HS2()
if HM_A=="[ 已关闭 ]" then ------------- [ 开关 ] 
HM_A="[ 已开启 ]️" ------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 爆炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
if #BaOaddress~=0 then
local ssz=gg.getValues({{address=BaOaddress[1]["address"] +"-20",flags=lx.D}})
_ENV["搜索"](nc.A,ssz[1]["value"],4,nil,nil,nil,nil)
_ENV["BaOaddress"]=gg.getResults(gg.getResultCount())
_ENV["筛选结果修改"](false,lx.D,'0',false,'0','','开启成功 ]') 
else
gg.toast("失败")
end
else------------------------------------------------------ [ 无限魔力鸟 ] --- [ 无闪退 ] --- [ 无检测 ]
HM_A="[ 已关闭 ]" -------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 爆炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
_ENV["筛选结果修改"](false,lx.D,'-20',false,'88888888','','💠 [ 开启成功 ] 💠') --------- [ 状态 ] 
end ------------------------ [ 修改完成 ] 
end ------------------------ [ 修改完成 ]          
function HS3()
if HM_B=="[ 已关闭 ]" then ------------- [ 开关 ] 
HM_B="[ 已开启 ]️" ------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 横炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
if #BaOaddress~=0 then
local ssz=gg.getValues({{address=BaOaddress[1]["address"] +"-116",flags=lx.D}})
_ENV["搜索"](nc.A,ssz[1]["value"],4,nil,nil,nil,nil)
_ENV["BaOaddress"]=gg.getResults(gg.getResultCount())
_ENV["筛选结果修改"](false,lx.D,'0',false,'0','','开启成功 ]') 
else
gg.toast("失败")
end
else------------------------------------------------------ [ 无限魔力鸟 ] --- [ 无闪退 ] --- [ 无检测 ]
HM_B="[ 已关闭 ]" -------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 横炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
_ENV["筛选结果修改"](false,lx.D,'-116',false,'999999999','','💠 [ 开启成功 ] 💠') --------- [ 状态 ] 
end ------------------------ [ 修改完成 ] 
end ------------------------ [ 修改完成 ]          
function HS4()
if HM_C=="[ 已关闭 ]" then ------------- [ 开关 ] 
HM_C="[ 已开启 ]️" ------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 竖炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
if #BaOaddress~=0 then
local ssz=gg.getValues({{address=BaOaddress[1]["address"] +"-188",flags=lx.D}})
_ENV["搜索"](nc.A,ssz[1]["value"],4,nil,nil,nil,nil)
_ENV["BaOaddress"]=gg.getResults(gg.getResultCount())
_ENV["筛选结果修改"](false,lx.D,'0',false,'0','','开启成功 ]') 
else
gg.toast("失败")
end
else------------------------------------------------------ [ 无限魔力鸟 ] --- [ 无闪退 ] --- [ 无检测 ]
HM_C="[ 已关闭 ]" -------------- [ 开关 ] 
_ENV["搜索"](nc.A,'256',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'24','32') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 竖炸功能 ]
_ENV["偏移对比"](false,4,'20','114') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','65834') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-4','0') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-264','1024') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-260','0') -------------------- [ 偏移 ]
_ENV["筛选结果修改"](false,lx.D,'-188',false,'55555555','','💠 [ 开启成功 ] 💠') --------- [ 状态 ] 
end ------------------------ [ 修改完成 ] 
end ------------------------ [ 修改完成 ]       

function HS5()
if HM_D=="[ 已关闭 ]" then ------------- [ 开关 ] 
HM_D="[ 已开启 ]️" ------------- [ 开关 ] 
_ENV["搜索"](nc.A,'65537',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'-4','65834') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 弑神功能 ]
_ENV["偏移对比"](false,4,'-12','256') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-16','298') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-20','1369') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-24','114') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'8','301') -------------------- [ 偏移 ]
_ENV["筛选结果修改"](false,lx.D,'-12',false,'0','','💠 [ 开启成功 ] 💠') --------- [ 状态 ] 
else------------------------------------------------------ [ 无限魔力鸟 ] --- [ 无闪退 ] --- [ 无检测 ]
HM_D="[ 已关闭 ]" -------------- [ 开关 ] 
_ENV["搜索"](nc.A,'65537',4,nil,nil,nil,nil) ------------------------------- [ 特征码 ]
_ENV["偏移对比"](true,4,'-4','65834') -------------------- [ 偏移 ]
gg.clearResults()---------------------------- [ 弑神功能 ]
_ENV["偏移对比"](false,4,'-12','0') ------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-16','298') -------------------------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-20','1369') ---------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'-24','114') -------------------- [ 偏移 ]
_ENV["偏移对比"](false,4,'8','301') -------------------- [ 偏移 ]
_ENV["筛选结果修改"](false,lx.D,'-12',false,'256','','💠 [ 开启成功 ] 💠') --------- [ 状态 ] 
end ------------------------ [ 修改完成 ] 
end ------------------------ [ 修改完成 ]     
function HS6()
 os.exit()
end
while true do
    if gg.isVisible(true) then
        XGCK = 1
        gg.setVisible(false)
    end
    if XGCK == 1 then
        Main()
    end
end

 