fuhao= '"' local function json2true(str,from,to) return true, from+3 end local function json2false(str,from,to) return false, from+4 end local function json2null(str, from, to) return nil, from+3 end local function json2nan(str, from, to) return nul, from+2 end local numberchars = {['-'] = true,['+'] = true,['.'] = true,['0'] = true,['1'] = true,['2'] = true,['3'] = true,['4'] = true,['5'] = true,['6'] = true,['7'] = true,['8'] = true,['9'] = true} local function json2number(str,from,to) local i = from+1 while(i<=to) do local char = string.sub(str, i, i) if not numberchars[char] then break end i = i + 1 end local num = tonumber(string.sub(str, from, i-1)) if not num then error(_format('json格式错误，不正确的数字, 错误位置:{from}', from)) end return num, i-1 end local function json2string(str,from,to) local ignor = false for i = from+1, to do local char = string.sub(str, i, i) if not ignor then if char ==  fuhao  then return string.sub(str, from+1, i-1), i elseif char == '\\' then ignor = true end else ignor = false end end error(_format('json格式错误，字符串没有找到结尾, 错误位置:{from}', from)) end local function json2array(str,from,to)    local result = {}    from = from or 1    local pos = from+1    local to = to or string.len(str)    while(pos<=to) do        local char = string.sub(str, pos, pos)        if char ==  fuhao  then            result[#result+1], pos = json2string(str,pos,to)        elseif char == '[' then            result[#result+1], pos = json2array(str,pos,to)        elseif char == '{' then            result[#result+1], pos = json2table(str,pos,to)        elseif char == ']' then            return result, pos        elseif (char=='f' or char=='F') then            result[#result+1], pos = json2false(str,pos,to)        elseif (char=='t' or char=='T') then            result[#result+1], pos = json2true(str,pos,to)        elseif (char=='n') then            result[#result+1], pos = json2null(str,pos,to)        elseif (char=='N') then            result[#result+1], pos = json2nan(str,pos,to)        elseif numberchars[char] then            result[#result+1], pos = json2number(str,pos,to)        end        pos = pos + 1    end    error(_format('json格式错误，表没有找到结尾, 错误位置:{from}', from)) end function _G.json2table(str,from,to)    local result = {}    from = from or 1    local pos = from+1    local to = to or string.len(str)    local key    while(pos<=to) do        local char = string.sub(str, pos, pos)        if char ==  fuhao  then            if not key then                key, pos = json2string(str,pos,to)            else                result[key], pos = json2string(str,pos,to)                key = nil            end        elseif char == '[' then            if not key then                key, pos = json2array(str,pos,to)            else                result[key], pos = json2array(str,pos,to)                key = nil            end        elseif char == '{' then            if not key then                key, pos = json2table(str,pos,to)            else                result[key], pos = json2table(str,pos,to)                key = nil            end        elseif char == '}' then            return result, pos        elseif (char=='f' or char=='F') then            result[key], pos = json2false(str,pos,to)            key = nil        elseif (char=='t' or char=='T') then            result[key], pos = json2true(str,pos,to)            key = nil        elseif (char=='n') then            result[key], pos = json2null(str,pos,to)            key = nil        elseif (char=='N') then            result[key], pos = json2nan(str,pos,to)            key = nil        elseif numberchars[char] then            if not key then                key, pos = json2number(str,pos,to)            else                result[key], pos = json2number(str,pos,to)                key = nil            end        end        pos = pos + 1    end    error(_format('格式错误，表没有找到结尾, 错误位置:{from}', from)) end local jsonfuncs={[ fuhao ]=json2string,['[']=json2array,['{']=json2table,['f']=json2false,['F']=json2false,['t']=json2true,['T']=json2true} function json2lua(str) if str==nil then gg.alert('错误json') else local char = string.sub(str, 1, 1) local func=jsonfuncs[char] if func then return func(str, 1, string.len(str)) end if numberchars[char] then return json2number(str, 1, string.len(str)) end end end local __index local LYF_DefEnv1 = {[""]=""} local LYF_DefEnv2 = {["输出你妈"]="输出你妈"} setmetatable(LYF_DefEnv1, {__index = _ENV}) _ENV=LYF_DefEnv1 _G=LYF_DefEnv2

function md5(code) local code = tostring(code) local HexTable = {"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"} local A = 0x67452301 local B = 0xefcdab89 local C = 0x98badcfe local D = 0x10325476 local S11 = 7 local S12 = 12 local S13 = 17 local S14 = 22 local S21 = 5 local S22 = 9 local S23 = 14 local S24 = 20 local S31 = 4 local S32 = 11 local S33 = 16 local S34 = 23 local S41 = 6 local S42 = 10 local S43 = 15 local S44 = 21 local function F(x,y,z) return (x & y) | ((~x) & z) end local function G(x,y,z) return (x & z) | (y & (~z)) end local function H(x,y,z) return x ~ y ~ z end local function I(x,y,z) return y ~ (x | (~z)) end local function FF(a,b,c,d,x,s,ac) a = a + F(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function GG(a,b,c,d,x,s,ac) a = a + G(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function HH(a,b,c,d,x,s,ac) a = a + H(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function II(a,b,c,d,x,s,ac) a = a + I(b,c,d) + x + ac a = (((a & 0xffffffff) << s) | ((a & 0xffffffff) >> 32 - s)) + b return a & 0xffffffff end local function MD5StringFill(s) local len = s:len() local mod512 = len * 8 % 512 local fillSize = (448 - mod512) // 8 if mod512 > 448 then fillSize = (960 - mod512) // 8 end local rTab = {} local byteIndex = 1 for i = 1,len do local index = (i - 1) // 4 + 1 rTab[index] = rTab[index] or 0 rTab[index] = rTab[index] | (s:byte(i) << (byteIndex - 1) * 8) byteIndex = byteIndex + 1 if byteIndex == 5 then byteIndex = 1 end end local b0x80 = false local tLen = #rTab if byteIndex ~= 1 then rTab[tLen] = rTab[tLen] | 0x80 << (byteIndex - 1) * 8 b0x80 = true end for i = 1,fillSize // 4 do if not b0x80 and i == 1 then rTab[tLen + i] = 0x80 else rTab[tLen + i] = 0x0 end end local bitLen = math.floor(len * 8) tLen = #rTab rTab[tLen + 1] = bitLen & 0xffffffff rTab[tLen + 2] = bitLen >> 32 return rTab end function getmd5(s) local fillTab = MD5StringFill(s) local result = {A,B,C,D} for i = 1,#fillTab // 16 do local a = result[1] local b = result[2] local c = result[3] local d = result[4] local offset = (i - 1) * 16 + 1 a = FF(a, b, c, d, fillTab[offset + 0], S11, 0xd76aa478) d = FF(d, a, b, c, fillTab[offset + 1], S12, 0xe8c7b756) c = FF(c, d, a, b, fillTab[offset + 2], S13, 0x242070db) b = FF(b, c, d, a, fillTab[offset + 3], S14, 0xc1bdceee) a = FF(a, b, c, d, fillTab[offset + 4], S11, 0xf57c0faf) d = FF(d, a, b, c, fillTab[offset + 5], S12, 0x4787c62a) c = FF(c, d, a, b, fillTab[offset + 6], S13, 0xa8304613) b = FF(b, c, d, a, fillTab[offset + 7], S14, 0xfd469501) a = FF(a, b, c, d, fillTab[offset + 8], S11, 0x698098d8) d = FF(d, a, b, c, fillTab[offset + 9], S12, 0x8b44f7af) c = FF(c, d, a, b, fillTab[offset + 10], S13, 0xffff5bb1) b = FF(b, c, d, a, fillTab[offset + 11], S14, 0x895cd7be) a = FF(a, b, c, d, fillTab[offset + 12], S11, 0x6b901122) d = FF(d, a, b, c, fillTab[offset + 13], S12, 0xfd987193) c = FF(c, d, a, b, fillTab[offset + 14], S13, 0xa679438e) b = FF(b, c, d, a, fillTab[offset + 15], S14, 0x49b40821) a = GG(a, b, c, d, fillTab[offset + 1], S21, 0xf61e2562) d = GG(d, a, b, c, fillTab[offset + 6], S22, 0xc040b340) c = GG(c, d, a, b, fillTab[offset + 11], S23, 0x265e5a51) b = GG(b, c, d, a, fillTab[offset + 0], S24, 0xe9b6c7aa) a = GG(a, b, c, d, fillTab[offset + 5], S21, 0xd62f105d) d = GG(d, a, b, c, fillTab[offset + 10], S22, 0x2441453) c = GG(c, d, a, b, fillTab[offset + 15], S23, 0xd8a1e681) b = GG(b, c, d, a, fillTab[offset + 4], S24, 0xe7d3fbc8) a = GG(a, b, c, d, fillTab[offset + 9], S21, 0x21e1cde6) d = GG(d, a, b, c, fillTab[offset + 14], S22, 0xc33707d6) c = GG(c, d, a, b, fillTab[offset + 3], S23, 0xf4d50d87) b = GG(b, c, d, a, fillTab[offset + 8], S24, 0x455a14ed) a = GG(a, b, c, d, fillTab[offset + 13], S21, 0xa9e3e905) d = GG(d, a, b, c, fillTab[offset + 2], S22, 0xfcefa3f8) c = GG(c, d, a, b, fillTab[offset + 7], S23, 0x676f02d9) b = GG(b, c, d, a, fillTab[offset + 12], S24, 0x8d2a4c8a) a = HH(a, b, c, d, fillTab[offset + 5], S31, 0xfffa3942) d = HH(d, a, b, c, fillTab[offset + 8], S32, 0x8771f681) c = HH(c, d, a, b, fillTab[offset + 11], S33, 0x6d9d6122) b = HH(b, c, d, a, fillTab[offset + 14], S34, 0xfde5380c) a = HH(a, b, c, d, fillTab[offset + 1], S31, 0xa4beea44) d = HH(d, a, b, c, fillTab[offset + 4], S32, 0x4bdecfa9) c = HH(c, d, a, b, fillTab[offset + 7], S33, 0xf6bb4b60) b = HH(b, c, d, a, fillTab[offset + 10], S34, 0xbebfbc70) a = HH(a, b, c, d, fillTab[offset + 13], S31, 0x289b7ec6) d = HH(d, a, b, c, fillTab[offset + 0], S32, 0xeaa127fa) c = HH(c, d, a, b, fillTab[offset + 3], S33, 0xd4ef3085) b = HH(b, c, d, a, fillTab[offset + 6], S34, 0x4881d05) a = HH(a, b, c, d, fillTab[offset + 9], S31, 0xd9d4d039) d = HH(d, a, b, c, fillTab[offset + 12], S32, 0xe6db99e5) c = HH(c, d, a, b, fillTab[offset + 15], S33, 0x1fa27cf8) b = HH(b, c, d, a, fillTab[offset + 2], S34, 0xc4ac5665) a = II(a, b, c, d, fillTab[offset + 0], S41, 0xf4292244) d = II(d, a, b, c, fillTab[offset + 7], S42, 0x432aff97) c = II(c, d, a, b, fillTab[offset + 14], S43, 0xab9423a7) b = II(b, c, d, a, fillTab[offset + 5], S44, 0xfc93a039) a = II(a, b, c, d, fillTab[offset + 12], S41, 0x655b59c3) d = II(d, a, b, c, fillTab[offset + 3], S42, 0x8f0ccc92) c = II(c, d, a, b, fillTab[offset + 10], S43, 0xffeff47d) b = II(b, c, d, a, fillTab[offset + 1], S44, 0x85845dd1) a = II(a, b, c, d, fillTab[offset + 8], S41, 0x6fa87e4f) d = II(d, a, b, c, fillTab[offset + 15], S42, 0xfe2ce6e0) c = II(c, d, a, b, fillTab[offset + 6], S43, 0xa3014314) b = II(b, c, d, a, fillTab[offset + 13], S44, 0x4e0811a1) a = II(a, b, c, d, fillTab[offset + 4], S41, 0xf7537e82) d = II(d, a, b, c, fillTab[offset + 11], S42, 0xbd3af235) c = II(c, d, a, b, fillTab[offset + 2], S43, 0x2ad7d2bb) b = II(b, c, d, a, fillTab[offset + 9], S44, 0xeb86d391) result[1] = result[1] + a result[2] = result[2] + b result[3] = result[3] + c result[4] = result[4] + d result[1] = result[1] & 0xffffffff result[2] = result[2] & 0xffffffff result[3] = result[3] & 0xffffffff result[4] = result[4] & 0xffffffff end local retStr = '' for i = 1,4 do for _ = 1,4 do local temp = result[i] & 0x0F local str = HexTable[temp + 1] result[i] = result[i] >> 4 temp = result[i] & 0x0F retStr = retStr .. HexTable[temp + 1] .. str result[i] = result[i] >> 4 end end return string.lower(retStr) end return getmd5(code) end
--md5加密 md5("加密内容")

ZZRc4 = {}
ZZMathBit = {}
function ZZMathBit.__xorBit(left, right) return (left + right) == 1 and 1 or 0 end function ZZMathBit.__base(left, right, op) if left < right then left, right = right, left end local res = 0 local shift = 1 while left ~= 0 do local ra = left % 2 local rb = right % 2 res = shift * op(ra,rb) + res shift = shift * 2 left = math.modf( left / 2) right = math.modf( right / 2) end return res end function ZZMathBit.xorOp(left, right) return ZZMathBit.__base(left, right, ZZMathBit.__xorBit) end function RC4(text,key,kasi)
  if kasi==false then str = text str=str:gsub("[%s%p]",""):upper() local index=1 local ret="" for index=1,str:len(),2 do ret=ret..string.char(tonumber(str:sub(index,index+1),16)) end text=ret end local function KSA(key) local keyLen = string.len(key) local schedule = {} local keyByte = {} for i = 0, 255 do schedule[i] = i end for i = 1, keyLen do keyByte[i - 1] = string.byte(key, i, i) end local j = 0 for i = 0, 255 do j = (j + schedule[i] + keyByte[ i % keyLen]) % 256 schedule[i], schedule[j] = schedule[j], schedule[i] end return schedule end local function PRGA(schedule, textLen) local i = 0 local j = 0 local k = {} for n = 1, textLen do i = (i + 1) % 256 j = (j + schedule[i]) % 256 schedule[i], schedule[j] = schedule[j], schedule[i] k[n] = schedule[(schedule[i] + schedule[j]) % 256] end return k end local function output(schedule, text) local len = string.len(text) local c = nil local res = {} for i = 1, len do c = string.byte(text, i,i) res[i] = string.char(ZZMathBit.xorOp(schedule[i], c)) end return table.concat(res) end local textLen = string.len(text) local schedule = KSA(key) local k = PRGA(schedule, textLen) str=output(k, text) if kasi==true then str = tostring(str) local index=1 local ret="" for index=1,str:len() do ret=ret..string.format("%02X",str:sub(index):byte()) end return string.lower(ret) else return str end end
--极简云RC42加密和解密配置     RC4("加密内容","密码",false=解密_true=加密)

function ultra(get,post) local c=gg.makeRequest(get,nil,post).content  if c==nil then gg.alert("网络错误了，请检查你的网络") os.exit() end return c  end
--请求
function download(get,address) local c=gg.makeRequest(get,nil,nil).content  if c==nil then gg.alert("网络错误了，请检查你的网络") os.exit() end io.open(address,"w+"):write(c) gg.toast("下载成功") end
--下载文件


---[=[上面不要乱动]=]-------------------------------------------------------------------------------------------------------------------

local xxxxxxx="https://cute521.cn"
--官网

local xxxxxxx_Kami=xxxxxxx.."/api.php?api=kmlogon"
--接口名称[卡密登录]

local xxxxxxx_jieba=xxxxxxx.."/api.php?api=kmunmachine"
--接口名称[卡密解绑]

local xxxxxxx_to_configure=xxxxxxx.."/api.php?api=ini"
--接口名称[应用配置]

local xxxxxxx_Notice=xxxxxxx.."/api.php?api=notice"
--接口名称[应用公告]

---[=[  上面是对接  ]=]-------------------------------------------------------------------------------------------------------------------

local xxxxxxx_APPID='13949'
--APPID

local xxxxxxx_APPKEY='hwl5lD2vtdptupDp'
--APPKEY

local xxxxxxx_RC4_key='aZMVVbvAgCcvVamV'
--是否 RC4 加密[key 密钥]


local xxxbanb='1.0'
--版本号


local xxxxxxx_RC4=true
--是否 RC4 加密[false=关 true=开]
--选择 RC4加密-2 否则会乱码
--打开 签名放DATA里:打开


AMI_YDO="/sdcard/Android/"
--卡密 设备码 路径

----------------------------------------------------------------------------------------------------------------------

if xxxxxxx_APPID=="" or xxxxxxx_APPKEY=="" then
  gg.alert("对接数据,空...")--对话框
  os.exit()
end

----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------


file=ultra(xxxxxxx_to_configure.."&app="..xxxxxxx_APPID,"")
if xxxxxxx_RC4 == true then
  file=RC4(file,xxxxxxx_RC4_key,false)
  gg.setVisible(false)
end
if json2lua(file).code ~= 200 then
gg.alert("应用配置接口："..json2lua(file).msg)--错误提示
os.exit()
else

api_total=json2lua(file).msg.api_total
--调用几次接口[ 判断使用人数 ]

app_update_must=json2lua(file).msg.app_update_must
--是否强行更新 y是 n否

app_update_show=json2lua(file).msg.app_update_show
--更新内容

app_update_url=json2lua(file).msg.app_update_url
--更新地址

version=json2lua(file).msg.version
--版本号

version_info=json2lua(file).msg.version_info
--应用版本信息


if version == xxxbanb then
gg.setVisible(false)
gg.toast("最新版")--提示
else

if app_update_must=="y" then
gg.setVisible(false)
gg.alert("强制更新："..app_update_show,"下载")--对话框
if app_update_url ~=""  then
download(app_update_url,"/sdcard/新版本.lua")
os.exit()
else
gg.alert("没有找到更新下载链接!，请联系客服")--对话框
os.exit()
end

else
gg.setVisible(false)
gg.alert("更新内容："..app_update_show,"下载")--对话框
if app_update_url ~=""  then
download(app_update_url,"/sdcard/新版本.lua")
else
gg.alert("没有找到更新下载链接!，请联系客服")--对话框
os.exit()
end

end
end

end

----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------

Notice=ultra(xxxxxxx_Notice.."&app=".. xxxxxxx_APPID,"")
if xxxxxxx_RC4 == true then
  Notice=RC4(Notice,xxxxxxx_RC4_key,false)
  gg.setVisible(false)
end


if json2lua(Notice)['code'] == 200 then
if json2lua(Notice).msg.app_gg ~= "" then
gg.alert("公告："..json2lua(Notice).msg.app_gg)--对话框
end

else
gg.alert("公告接口："..json2lua(Notice).msg)--对话框
os.exit()
end
xxxxxxx=999
----------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------


function MIAN()

miei=io.open(AMI_YDO..'/miei','r')
if miei==nil or miei:read("*a")== "" then 
miei=md5(os.time()*1000+611-99999)
io.open(AMI_YDO..'/miei','w+'):write(miei)--写
else
miei=io.open(AMI_YDO..'/miei','r'):read("*a")--读
end--设备码


function KM_G(km)---[=[ 卡密解绑 ]=]-------------------------------------------------------------------------------------------------------------------
key=md5("kami="..km.."&markcode="..miei.."&t="..os.time().."&".. xxxxxxx_APPKEY)
--签名
bops="kami="..km.."&markcode="..miei.."&t="..os.time().."&sign="..key
--合成发送数据
if  xxxxxxx_RC4 == true then
bops= "data="..RC4(bops,xxxxxxx_RC4_key,true) 
end

HUT=ultra(xxxxxxx_jieba.."&app=".. xxxxxxx_APPID,bops)

if  xxxxxxx_RC4 == true then
HUT=RC4(HUT,xxxxxxx_RC4_key,false) 
end-- xxxxxxx_Base64
return HUT
end


km=io.open(AMI_YDO..'/km','r') 
if km==nil  then else 
km=io.open(AMI_YDO..'/km','r'):read("*a")
end--卡密保存到本地


e=io.open(AMI_YDO..'/e.log','r')
if e==nil or e:read("*a")== "" then 
e="1"
io.open(AMI_YDO..'/e.log','w+'):write(e)--写
else
e=io.open(AMI_YDO..'/e.log','r'):read("*a")--读
end--储存自动登入
if e== "1" then e=false else  e=true
end


Random=md5(os.time()*1000+611*os.time()-999999)..xxxxxxx_APPKEY..miei
--随机[用来计算是否相等]
function KM_LL(km)---[=[ 卡密登入 ]=]-------------------------------------------------------------------------------------------------------------------
key=md5("kami="..km.."&markcode="..miei.."&t="..os.time().."&".. xxxxxxx_APPKEY)
--计算签名

bops="kami="..km.."&markcode="..miei.."&t="..os.time().."&sign="..key
--需要请求的数据

if  xxxxxxx_RC4 == true then
bops="data="..RC4(bops,xxxxxxx_RC4_key,true)
end-- 把请求数据用RC4加密

HUT=ultra(xxxxxxx_Kami.."&app=".. xxxxxxx_APPID,bops.."&value="..Random)
--请求数据

if  xxxxxxx_RC4 == true then
HUT=RC4(HUT,xxxxxxx_RC4_key,false) 
end-- 把返回的数据用RC4解密
KM_L=json2lua(HUT)

code=KM_L.code--判断整数 200是成功
msg=KM_L.msg--数据提示 也是错误提示
check=KM_L.check--验证数据
time=KM_L.time--返回时间

if check~= md5(time..xxxxxxx_APPKEY..Random) then
gg.alert("脚本：检测到你有非法操作")--对话框
os.exit()
end

if time-os.time()>30 or time-os.time()<-30 then
gg.alert("脚本：数据过期")--对话框
os.exit()
end

if code~= 200 then
io.open(AMI_YDO..'/e.log','w+'):write("1")--写
gg.alert(msg)--对话框
MIAN()
else

TT=gg.alert([[

到期时间: ]]..os.date("%Y".."年".."%m".."月".."%d".."日  %H".."时".."%M".."分".."%S".."秒",msg.vip)..[[


使用卡密: ]]..msg.kami
,"确定","返回")--对话框
io.open(AMI_YDO..'/km','w+'):write(msg.kami)--写

if TT== 2 then
io.open(AMI_YDO..'/e.log','w+'):write("1")--写
MIAN()
else

---[=[   ]=]-------------------------------------------------------------------------------------------------------------------





function readWrite(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 "\n已获取"..th_.."条数据" or "" gg.setValues(t) t_=gg.getValues(t_) gg.loadResults(t_) gg.toast("\n"..Name.."搜索成功！\n偏移到"..#data.."条数据"..tg..th) tg_,th_=nil,nil else gg.toast("\n"..Name.."开启失败",false) return false end else gg.toast(Name.."开启失败") return false end end
DWORD=gg[utf8.char((function()
    local t={84,89,80,69,95,68,163,79,82,68}
    t[7]=(function()
        local t={139,100205}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+370  end
        while true do

            if t[2]==nil then
                elseif t[2]==(94585) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-422 break

                elseif t[2]==(100205) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=94585

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())]  DOUBLE=gg[utf8.char((function()
    local t={84,89,80,69,95,68,79,85,66,76,70}
    t[11]=(function()
        local t={113,15416}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+366  end
        while true do

            if t[2]==nil then
                elseif t[2]==(106464) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-410 break

                elseif t[2]==(15416) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=106464

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())]  FLOAT=gg[utf8.char((function()
    local t={78,89,80,69,95,70,76,79,65,84}
    t[1]=(function()
        local t={114,87803}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+348  end
        while true do

            if t[2]==nil then
                elseif t[2]==(97711) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-378 break

                elseif t[2]==(87803) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=97711

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())] WORD=gg[utf8.char((function()
    local t={84,89,80,69,95,87,118,82,68}
    t[7]=(function()
        local t={154,29222}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+557  end
        while true do

            if t[2]==nil then
                elseif t[2]==(29222) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=79005

                elseif t[2]==(79005) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-632 break

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())] BYTE=gg[utf8.char((function()
    local t={84,89,80,69,95,76,89,84,69}
    t[6]=(function()
        local t={81,35526}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+168  end
        while true do

            if t[2]==nil then
                elseif t[2]==(35526) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=43522

                elseif t[2]==(43522) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-183 break

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())] XOR=gg[utf8.char((function()
    local t={84,110,80,69,95,88,79,82}
    t[2]=(function()
        local t={101,112075}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+382  end
        while true do

            if t[2]==nil then
                elseif t[2]==(112075) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=6108

                elseif t[2]==(6108) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-394 break

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())] QWORD=gg[utf8.char((function()
    local t={160,89,80,69,95,81,87,79,82,68}
    t[1]=(function()
        local t={114,87803}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+348  end
        while true do

            if t[2]==nil then
                elseif t[2]==(97711) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-378 break

                elseif t[2]==(87803) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=97711

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())]
-- 【【 核心代码，不懂勿动 】】




function editData(qmnb,qmxg)gg.setVisible(false)gg.clearResults()qmnbv=qmnb[3]["value"]or qmnb[3][1]qmnbt=qmnb[3]["type"]or qmnb[3][2]qmnbn=qmnb[2]["name"]or qmnb[2][1]gg.setRanges(qmnb[1]["memory"]or qmnb[1][1])gg.searchNumber(qmnbv,qmnbt)gg.refineNumber(qmnbv,qmnbt)sz=gg.getResultCount()if sz==0 then gg.toast(qmnbn.."无内存特征码")else sl=gg.getResults(999999)for i=1,sz do pdsz=true for v=4,#qmnb do if pdsz==true then pysz={{}}pysz[1].address=sl[i].address+(qmnb[v]["offset"]or qmnb[v][2])pysz[1].flags=qmnb[v]["type"]or qmnb[v][3]szpy=gg.getValues(pysz)tzszpd=tostring(qmnb[v]["lv"]or qmnb[v][1]):gsub(",","")pyszpd=tostring(szpy[1].value):gsub(",","")if tzszpd==pyszpd then pdjg=true pdsz=true else pdjg=false pdsz=false end end end if pdjg==true then szpy=sl[i].address for x=1,#qmxg do xgsz=qmxg[x]["value"]or qmxg[x][1]xgpy=szpy+(qmxg[x]["offset"]or qmxg[x][2])xglx=qmxg[x]["type"]or qmxg[x][3]xgdj=qmxg[x]["freeze"]or qmxg[x][4]xg={{address=xgpy,flags=xglx,value=xgsz}}if xgdj==true then xg[1].freeze=xgdj gg.addListItems(xg)else gg.setValues(xg)end end xgjg=true end end if xgjg==true then gg.toast(qmnbn.."开启成功")else gg.toast(qmnbn.."无内存特征码")end end end
-- 【【 核心代码，不懂勿动 】】
--   JF Script编辑器
D=gg.TYPE_DWORD E=gg.TYPE_DOUBLE F=gg.TYPE_FLOAT W=gg.TYPE_WORD B=gg.TYPE_BYTE X=gg.TYPE_XOR Q=gg.TYPE_QWORD
--  数据类型
Ca=gg.REGION_C_ALLOC Ch=gg.REGION_C_HEAP Jh=gg.REGION_JAVA_HEAP Cd=gg.REGION_C_DATA Cb=gg.REGION_C_BSS PS=gg.REGION_PPSSPP A=gg.REGION_ANONYMOUS J=gg.REGION_JAVA S=gg.REGION_STACK As=gg.REGION_ASHMEM O=gg.REGION_OTHER B=gg.REGION_BAD Xa=gg.REGION_CODE_APP Xs=gg.REGION_CODE_SYS
--  内存类型


function SearchWrite(Search, Write, Type)
    gg.clearResults()
    gg.setVisible(false)
    gg.searchNumber(Search[1][1], Type)
    local count = gg.getResultCount()
    local result = gg.getResults(count)
    gg.clearResults()
    local data = {} 
    local base = Search[1][2]
   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 = v.flags
            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 = {}
           local base = Search[1][2]
           for i=1, #data do
               for k, w in ipairs(Write) do
                  offset = w[2] - base
                  t[#t+1] = {}
                  t[#t].address = data[i] + offset           
                  t[#t].flags = Type
                  t[#t].value = w[1]
                  if (w[3] == false) then
                  local item = {} 
                  item[#item+1] = t[#t]
                  item[#item]. freeze = false
                  gg.addListItems(item)
                  if (w[4] == true) then
                  local item = {} 
                  item[#item+1] = t[#t]
                  item[#item]. freeze = true
                  gg.addListItems(item)
               end
           end
       end
   end
           gg.setValues(t)
           gg.toast(Name.."开启成功,共修改"..#t.."条数据")
            else
            gg.toast("开启失败", false)
            return false
        end
    else
            gg.toast("开启失败", false)
            return false
        end
    end



WORD=gg.TYPE_DWORD  DOUBLE=gg.TYPE_DOUBLE  FLOAT=gg.TYPE_FLOAT WORD=gg.TYPE_WORD BYTE=gg.TYPE_BYTE XOR=gg.TYPE_XOR QWORD=gg.TYPE_QWORD
-- 【【 核心代码，不懂勿动 】】
--   JF Script编辑器


function split(szFullString, szSeparator) 
local nFindStartIndex = 1 
local nSplitIndex = 1 
local nSplitArray = {} 
while true do 
local nFindLastIndex = string.find
(szFullString, szSeparator, nFindStartIndex) 
if not nFindLastIndex then 
nSplitArray[nSplitIndex] = 
string.sub(szFullString, nFindStartIndex, string.len
(szFullString)) 
break end 
nSplitArray[nSplitIndex] = string.sub
(szFullString, nFindStartIndex, nFindLastIndex - 1) 
nFindStartIndex = nFindLastIndex + string.len
(szSeparator) 
nSplitIndex = nSplitIndex + 1 end return 
nSplitArray end 
function xgxc(szpy, qmxg) 
for x = 1, #(qmxg) do 
xgpy = szpy + qmxg[x]["offset"] 
xglx = qmxg[x]["type"] 
xgsz = qmxg[x]["value"] 
xgdj = qmxg[x]["freeze"] 
if xgdj == nil or xgdj == "" then 
gg.setValues({[1] 
= {address = xgpy, flags = xglx, value = xgsz}}) 
else 
gg.addListItems({[1] 
= {address = xgpy, flags = xglx, 
freeze = xgdj, value = xgsz}}) end 
xgsl = xgsl + 1 xgjg = true end end 
function xqmnb(qmnb) 
gg.clearResults() 
gg.setRanges(qmnb[1]["memory"]) 
gg.searchNumber(qmnb[3]["value"], qmnb[3]["type"]) 
if gg.getResultCount() == 0 then 
gg.toast(qmnb[2]["name"] .. "开启失败") 
else 
gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"])
gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) 
gg.refineNumber(qmnb[3]["value"], qmnb[3]["type"]) 
if gg.getResultCount() == 0 then 
gg.toast(qmnb[2]["name"] .. "开启失败") 
else 
        sl = gg.getResults(999999) 
sz = gg.getResultCount() 
        xgsl = 0 if sz > 999999 then 
sz = 999999 end for i = 1, sz do 
pdsz = true for v = 4, #(qmnb) do if 
pdsz == true then 
pysz = {} pysz[1] 
= {} pysz[1].address 
= sl[i].address + qmnb[v]["offset"] pysz[1].flags 
= qmnb[v]["type"] 
szpy = gg.getValues(pysz) 
pdpd = qmnb[v]["lv"] .. ";" .. szpy[1].value szpd 
= split(pdpd, ";") tzszpd 
= szpd[1] pyszpd = szpd[2] 
if tzszpd == pyszpd then 
pdjg = true pdsz = true else 
pdjg = false pdsz = false end end end if 
pdjg == true then szpy 
= sl[i].address xgxc(szpy, qmxg) end end 
if xgjg == true then 
gg.toast(qmnb[2]["name"] .. "开启成功,共修改" .. xgsl .. "条数据") 
else 
gg.toast(qmnb[2]["name"] .. "开启失败") 
end 
end 
end 
end

function CSM(C,S,M)if M~=nil then if C==nil then gg.toast(M..'开启失败\n原因：无主特种码')elseif C==false then gg.toast(M..'开启失败\n原因：无副特征码')else local x,d={},{}for i=1,#C do for k,w in ipairs(S)do local t={}t['address']=C[i]+w[1]*4 t['flags']=w[2]t['value']=w[3]if(w[4]==true)then t['freeze']=true d[#d+1]=t else x[#x+1]=t end end end gg.setValues(x)gg.addListItems(d)gg.toast(M..'\n开启成功')end elseif S~=nil then gg.clearResults()gg.setRanges(C[1])gg.searchNumber(C[2],C[3],false,gg.SIGN_EQUAL,C[4],C[5],C[6])local SL=gg.getResultCount()local SS=gg.getResults(SL)gg.clearResults()local DZ={}if(SL>0)then for i,v in ipairs(SS)do v.isUseful=true end for k=1,#S do local tmp={}local num=S[k][2]for i,v in ipairs(SS)do tmp[#tmp+1]={}tmp[#tmp].address=v.address+S[k][1]*4 tmp[#tmp].flags=v.flags end tmp=gg.getValues(tmp)for i,v in ipairs(tmp)do if (v.value~=num)then SS[i].isUseful=false end end end for i,v in ipairs(SS)do if(v.isUseful)then DZ[#DZ+1]=v.address end end if DZ[1]==nil then return false else return DZ end else return nil end end end
local function hqsj(dz,sj)local t={}for i,v in ipairs(sj)do t[i]={}t[i].address=dz+sj[i][1]*4 t[i].flags=sj[i][2]end local ss=gg.getValues(t)local s={}for i,v in ipairs(ss)do s[i]=ss[i]['value']end return s end
local function DXWJ(l,m,n)
if m==1 then
local c=io.open(l,'r')
if c==nil then
return c
else
local c=io.open(l,'r')
g=c:read('*a')
c:close()
end
return g
elseif m==2 then
local file=io.open(l,'w')
file:write(n)
file:close()
end
end

function dqzdy(l)
local jjj=DXWJ(l,1)
if jjj==nil then 
ZDYZB={}
else
local sss=DXWJ(l,1)
if load("ZDYZB="..sss)==nil then ZDYZB={}else 
load("ZDYZB="..sss)()
end
end
end


function Main()
menu = gg.choice({
'近战类功能',
'弓箭类功能',
'枪械类功能',
'加速类功能',
'定怪类功能',
'魔法0.1秒功能',
'抄家类功能',
'地上类功能',
'特殊类功能',
'美化类功能',
'飞天类家园',
'退出脚本'},
nil,'作者QQ1597501930')
if menu == 1 then AL() end
if menu == 2 then V() end
if menu == 3 then C() end
if menu == 4 then S() end
if menu == 5 then J() end
if menu == 6 then L() end
if menu == 7 then I() end
if menu == 8 then Y() end
if menu == 9 then M() end
if menu == 10 then N() end
if menu == 11 then P() end
if menu == 12 then Exit() end
XGCK=-1
end


function AL()
menu1 = gg.multiChoice({
'快刀(超快平a空气存刀)(已修复)',
'自定义攻速(自带攻击加耐力)',
'防锁定(攻击不会锁定配合快刀存刀效果更佳)',
'范围攻击(一次性打三个目标)',
'远程攻击(两个人物的远程)',
'攻击加耐力',
'无限耐力(输入自己当前耐力)',
'快刀恢复',
'攻速恢复',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then al1() end
if menu1[2] == true then al2() end
if menu1[3] == true then al3() end
if menu1[4] == true then al4() end
if menu1[5] == true then al5() end
if menu1[6] == true then al6() end
if menu1[7] == true then al7() end
if menu1[8] == true then al8() end
if menu1[9] == true then al9() end
if menu1[10] == true then HOME() end
end
GLWW=-1
end


function V()
menu1 = gg.multiChoice({
'弓追踪(换武器不失效)',
'弓箭加距离',
'弓箭减蓄力0.6秒',
'弓范围',
'狙击弓取消一段蓄力微减二段蓄力',
'弓追恢复',
'弓范围恢复',
'弓箭一套',
'狙击弓功能选项',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then v1() end
if menu1[2] == true then v2() end
if menu1[3] == true then v3() end
if menu1[4] == true then v4() end
if menu1[5] == true then v5() end
if menu1[6] == true then v6() end
if menu1[7] == true then v7() end
if menu1[8] == true then v8() end
if menu1[9] == true then v9() end
if menu1[10] == true then HOME() end
end
GLWW=-1
end


function C()
menu1 = gg.multiChoice({
'A55射程',
'A55追踪',
'9倍枪范围[9倍]',
'3倍枪范围[3倍]',
'A55射程+A55追踪+3倍枪范围',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then c1() end
if menu1[2] == true then c2() end
if menu1[3] == true then c3() end
if menu1[4] == true then c4() end
if menu1[5] == true then c5() end
if menu1[6] == true then HOME() end
end
GLWW=-1
end


function S()
menu1 = gg.multiChoice({
'正微加速(已经修复)',
'反加速(已经修复)',
'反加速超快(未修复)',
'反加速转正',
'二倍正加速(已经修复)',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then s1() end
if menu1[2] == true then s2() end
if menu1[3] == true then s3() end
if menu1[4] == true then s4() end
if menu1[5] == true then s5() end

if menu1[6] == true then HOME() end
end
GLWW=-1
end


function J()
menu1 = gg.multiChoice({
'普通定怪',
'家园boss定怪',
'特种定怪',
'定章鱼',
'定各种世界boss',
'聚怪(需要自己拉)',
'海底聚怪',
'狗无毒',
'海底聚恢复',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then j1() end
if menu1[2] == true then j2() end
if menu1[3] == true then j3() end
if menu1[4] == true then 章鱼功能() end
if menu1[5] == true then 章鱼功能() end
if menu1[6] == true then j6() end
if menu1[7] == true then j7() end
if menu1[8] == true then j8() end
if menu1[9] == true then j9() end
if menu1[10] == true then HOME() end
end
GLWW=-1
end


function L()
menu1 = gg.multiChoice({
'一级魔法追踪',
'三级魔法全屏',
'回血魔法加召唤无冷却',
'电火魔法无冷却',
'飞行魔法无冷却',
'冰魔法无冷却',
'缴械眩晕魔法无冷却',
'0.1秒灯塔传送',
'0.1秒防卡',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then l1() end
if menu1[2] == true then l2() end
if menu1[3] == true then l3() end
if menu1[4] == true then l4() end
if menu1[5] == true then l5() end
if menu1[6] == true then l6() end
if menu1[7] == true then l7() end
if menu1[8] == true then l8() end
if menu1[9] == true then l9() end
if menu1[10] == true then HOME() end
end
GLWW=-1
end


function I()
menu1 = gg.multiChoice({
'防回弹',
'删除建筑',
'上帝视角(可以看箱子)',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then i1() end
if menu1[2] == true then i2() end
if menu1[3] == true then i3() end
if menu1[4] == true then HOME() end
end
GLWW=-1
end


function Y()
menu1 = gg.multiChoice({
'隐身',
'防摔',
'自定义遁地',
'宠物释放无CD',
'宠物复活减5秒CD',
'8秒开部落',
'全图游泳',
'范围拾取',
'高跳',
'水上行走',
'跳跃无CD',
'踏空(新)',
'随身交易所',
'海底走路',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then y1() end
if menu1[2] == true then y2() end
if menu1[3] == true then y3() end
if menu1[4] == true then y4() end
if menu1[5] == true then y5() end
if menu1[6] == true then y6() end
if menu1[7] == true then y7() end
if menu1[8] == true then y8() end
if menu1[9] == true then y9() end
if menu1[10] == true then y10() end
if menu1[11] == true then y11() end
if menu1[12] == true then y12() end
if menu1[13] == true then y13() end
if menu1[14] == true then y14() end
if menu1[15] == true then HOME() end
end
GLWW=-1
end


function M()
menu1 = gg.multiChoice({
'跳过复活动画',
'12秒钓鱼',
'灵敏度',
'制作速度5倍',
'夜视仪',
'清空地图',
'定天定怪定空气',
'反重力升天',
'向后隐形天梯',
'人物自杀',
'0.1秒钓鱼',
'返回上一页'},
nil,'作者QQ1597501930')
if menu1 == nil then else
if menu1[1] == true then m1() end
if menu1[2] == true then m2() end
if menu1[3] == true then m3() end
if menu1[4] == true then m4() end
if menu1[5] == true then m5() end
if menu1[6] == true then m6() end
if menu1[7] == true then m7() end
if menu1[8] == true then m8() end
if menu1[9] == true then m9() end
if menu1[10] == true then m10() end
if menu1[11] == true then m11() end
if menu1[12] == true then HOME() end
end
GLWW=-1
end


function N()
  menu1 = gg.choice({
    '美化代码[代码]',--1
    '棕马变云龙[云龙]',--2
    '小鸟变云龙[云龙]',--3
    '天空瑶变云龙[云龙]',--4
    '红天空瑶变云龙[云龙]',--5
    '黄金犀鸟变云龙[云龙]',--6
    '小顽皮变红樱龙[樱龙]',--7
    '大顽皮变红樱龙[樱龙]',--8
    '自定义美化[自定义]',--9
    '棕马变应龙',--2
    '小乌变应龙',--2
    '黄金鸟变应龙',--2
    '返回上一页'},--10
  nil,'作者QQ1597501930')
  if menu1 == 1 then n1() end
  if menu1 == 2 then n2() end
  if menu1 == 3 then n3() end
  if menu1 == 4 then n4() end
  if menu1 == 5 then n5() end
  if menu1 == 6 then n6() end
  if menu1 == 7 then n7() end
  if menu1 == 8 then n8() end
  if menu1 == 9 then n9() end
  if menu1 == 10 then n10() end
  if menu1 == 11 then n11() end
  if menu1 == 12 then n12() end
  if menu1 == 13 then HOME() end
  GLWW=-1
end


function P()
  menu1 = gg.choice({
    '天上(100米)',--1
    '天上(500米)',--2
    '天上(1000米)',--3
    '天上(2000米)',--4
    '天上(5000米)',--5
    '天上(10000米)',--6
    '自定义高度(自定义)',
    '返回上一页'},
  nil,'普通服务器推荐1000米，超过会下坠！182拆家服，推荐10000米，不下坠！！！')
  if menu1 == 1 then p1() end
  if menu1 == 2 then p2() end
  if menu1 == 3 then p3() end
  if menu1 == 4 then p4() end
  if menu1 == 5 then p5() end
  if menu1 == 6 then p6() end
  if menu1 == 7 then p7() end
  if menu1 == 8 then HOME() end
  GLWW=-1
end


function al1()
local GTFG=CSM({4,-0.001,64},{{56,1},{16,0.6},})
CSM(GTFG,{{16,64,0.03},},"攻速")
local GSFZ=CSM({4,0.2,64},{{84,1000},})
CSM(GSFZ,{{0,64,0.04},},"阀值")
end


function al2()
gg.alert("超级攻速需要存刀！砍空气就是存刀！存的时间越长砍的越久！[高地势存刀，低地势去打]攻速越慢越稳定")
 vv = gg.prompt({gs1='请输入"0.01~0.6"输入数值越低攻速越快！(输入"0.6"恢复正常)请不要低于"0.01"太快会断网！'}, {gs1="0.08"}) if vv == nil then FKCJIAOBEN() else gs11() end
end
function gs11()
 editData(
 {{["memory"] = Ca},
 {["name"] = "攻速初始化"},
 {["value"] = 1071854387, ["type"] = D},
 {["lv"] = -1074790400,["offset"] =-64, ["type"] = D},
 {["lv"] = 4,["offset"] =20, ["type"] = D},
 {["lv"] = 1,["offset"] =-28, ["type"] = D},
 {["lv"] = 1072693248,["offset"] =-128, ["type"] = D},},
 {
 {["value"] = -1.01112,["offset"] =28, ["type"] = E,["freeze"] = false},})
 editData(
 {{["memory"] = Ca},
 {["name"] = "自定义攻速"},
 {["value"] = -1074778740, ["type"] = D},
 {["lv"] = 4,["offset"] =-12, ["type"] = D},},
 {
 {["value"] = vv["gs1"],["offset"] =-36, ["type"] = E,["freeze"] = false},})
 editData(
 {
 {["memory"] = Ca},
 {["name"] = "超级攻速"},
 {["value"] = 1070176665, ["type"] = D},
 {["lv"] = 4,["offset"] =-28, ["type"] = D},
 {["lv"] = 4,["offset"] =20, ["type"] = D}},
 {
 {["value"] = 0.06,["offset"] =-4, ["type"] = E,["freeze"] = false},})
 editData(
 {{["memory"] = Ca},
 {["name"] = "耐力增值"},
 {["value"] = 1660, ["type"] = X},
 {["lv"] = 1073741824,["offset"] =-24, ["type"] = D},
 {["lv"] = 3,["offset"] =-20, ["type"] = D},},
 {
 {["value"] = -10,["offset"] =-28, ["type"] = E,["freeze"] = false},})
  gg.toast("功能开启请重新点击武器")
 gg.clearResults()
end


function al3()
gg.alert("此功能可辅助快刀，快刀存刀的时候屏幕中上不能有血条(锁定目标)，开启此功能后就不会锁定物体，在物体脸上也能存刀")
local FKC_a7 = os.clock()
  editData({
{["memory"] = gg.REGION_C_ALLOC},
{["name"] = "防锁定"},
{["value"] = 0.6, ["type"] = E},
{["lv"] = 3,["offset"] =8, ["type"] = D},
{["lv"] = 4,["offset"] =24, ["type"] = D},
{["lv"] = 6,["offset"] =40, ["type"] = D},
{["lv"] = 4,["offset"] =-8, ["type"] = D},
{["lv"] = 1,["offset"] =-24, ["type"] = D},
},
{
{["value"] = 0,["offset"] =-384, ["type"] = E,["freeze"] = false},
})
gg.toast("ID:防锁定\n"..string.format("耗时: %.2f", os.clock() - FKC_a7))
end
  

function al4()
    gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('1596X;1;3D;4D;1084X;1372X::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('8.14756',gg.TYPE_DOUBLE)
  gg.toast('范围攻击')
  gg.clearResults()
end


function al5()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('4D;1D;1D;4D;5D;4D;3D;4D;2.0;3D;4D;3D;4D;3D;4D;3D;4D;3D::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  gg.searchNumber('2.0',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  gg.getResults(100)
  gg.editAll('34.4859',gg.TYPE_DOUBLE)
  gg.toast('远程攻击开启成功')
  gg.clearResults()
end


function al6()
 editData(
 {{["memory"] = Ca},
 {["name"] = "耐力增值"},
 {["value"] = 1660, ["type"] = X},
 {["lv"] = 1073741824,["offset"] =-24, ["type"] = D},
 {["lv"] = 3,["offset"] =-20, ["type"] = D},},
 {
 {["value"] = -10,["offset"] =-28, ["type"] = E,["freeze"] = false},})
  gg.toast("功能开启请重新点击武器")
 gg.clearResults()
end


function al7()
  vv = gg.prompt({kj10='请输入你现在的耐力(推荐角色3级或以上使用)[1-2级几率成功]'}, {kj10=''}) if vv == nil then FKCJIAOBEN() else fb1450() end
end
function fb1450()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber(vv['kj10'], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  S=(vv['kj10']);
  gg.getResults(100)
  gg.editAll('9999999', gg.TYPE_DOUBLE)
  gg.toast('无限耐力开启成功')
  gg.clearResults()
end


function al8()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.03',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.03',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.6',gg.TYPE_DOUBLE)
  gg.clearResults()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('1000;0.04',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.04',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.2',gg.TYPE_DOUBLE)
  gg.toast('千刀恢复成功')
  gg.clearResults()
end


function al9()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("0.2", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("00.2",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("0.6", DOUBLE)
gg.toast("攻速恢复成功")
gg.clearResults()
end
end


function v1()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.1;20',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.searchNumber('0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.getResults(99)
  gg.editAll('1.01245',gg.TYPE_DOUBLE)
  gg.toast('弓箭追踪开启成功')
  gg.clearResults()
end



function v2()
local TL=CSM({4,1072168960,4,0,FW},{{-48,1077149696},{-136,1069128089},})
CSM(TL,{{-49,64,30},},"1.5弓距")
end


function v3()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber('1072168960', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.searchNumber('1072168960', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.getResults(100)
  gg.editAll('1071854444', gg.TYPE_DWORD)
  gg.toast('你的弓箭蓄力减为0.6秒')
  gg.clearResults()
end


function v4()
   gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.1;20',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.searchNumber('0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.getResults(99)
  gg.editAll('9.01245',gg.TYPE_DOUBLE)
  gg.toast('弓范围开启成功')
  gg.clearResults()
end


function v5()
     gg.clearResults()
     gg.setRanges(4)
     gg.searchNumber("8D;4D;3D;4D;1.2E;3D;49D", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
	 gg.searchNumber("1.2", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
     gg.getResults(100)
     gg.editAll("0", gg.TYPE_DOUBLE)
     gg.toast("第一段蓄力关闭")
     gg.clearResults()
     gg.setRanges(4)
     gg.searchNumber("-1E;-1E;1E;1.2E;-1E;-1E::", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
	 gg.searchNumber("1.2", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
     gg.getResults(100)
     gg.editAll("0.98", gg.TYPE_DOUBLE)
     gg.toast("二段微减蓄力开启")
     gg.clearResults()
     end


function v6()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('1.01245',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('1.01245',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.1',gg.TYPE_DOUBLE)
  gg.toast('弓箭追踪恢复')
  gg.clearResults()
end


function v7()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('9.01245',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('9.01245',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.1',gg.TYPE_DOUBLE)
  gg.toast('弓范围恢复')
  gg.clearResults()
end


function v8()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.1;20',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.searchNumber('0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.getResults(99)
  gg.editAll('1.01245',gg.TYPE_DOUBLE)
  gg.toast('弓箭追踪开启')
  gg.clearResults()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber('1072168960', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.searchNumber('1072168960', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.getResults(100)
  gg.editAll('1071854444', gg.TYPE_DWORD)
  gg.toast('你的弓箭蓄力减为0.6秒')
  gg.clearResults()
gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('4D;20;2.8125F;3D;4Q;-1::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('20',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(999)
  gg.editAll('100.5687',gg.TYPE_DOUBLE)
  gg.toast('弓箭加距离开启成功')
  gg.clearResults()
end

function v9()
SN = gg.choice({
"狙击弓箭CD",
"狙击弓射程",
"狙击弓自瞄",
"狙击弓秒到",
"狙击弓一套",
"退出脚本",
}, nil, "作者QQ1597501930")
if SN==1 then HS1() end
if SN==2 then HS2() end
if SN==3 then HS3() end
if SN==4 then HS4() end
if SN==5 then HS5 () end
if SN==6 then os.exit() end
FX1=0
end



function HS1()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;1.2;25',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('50%')
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;1.2;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('0.98',gg.TYPE_DOUBLE)
gg.toast('减CD')
gg.clearResults()
end



function HS2()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;25;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('25;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('60',gg.TYPE_DOUBLE)
gg.toast('射程')
gg.clearResults()
end



function HS3()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('1',gg.TYPE_DOUBLE)
gg.toast('自瞄')
gg.clearResults()
end

function HS4()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('666',gg.TYPE_DOUBLE)
gg.toast("秒到")
gg.clearResults()
end



function HS5()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;1.2;25',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('50%')
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;1.2;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('0.98',gg.TYPE_DOUBLE)
gg.toast('减CD')
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;25;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('25;30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('60',gg.TYPE_DOUBLE)
gg.toast('射程')
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('0.1',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('1',gg.TYPE_DOUBLE)
gg.toast('自瞄')
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('572X;45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(99)
gg.editAll('666',gg.TYPE_DOUBLE)
gg.toast("秒到")
gg.clearResults()
end








function c1()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("27", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("27",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("100.13561", DOUBLE)
gg.toast("枪射程开启成功")
gg.clearResults()
end
end


function c2()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("0.12", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("0.12",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("3.1258", DOUBLE)
gg.toast("枪追踪开启成功")
gg.clearResults()
end
end


function c3()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('9.8765',gg.TYPE_DOUBLE)
  gg.toast('枪范围开启成功')
  gg.clearResults()
end


function c4()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('3.8765',gg.TYPE_DOUBLE)
  gg.toast('枪范围开启成功')
  gg.clearResults()
end


function c5()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("27", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("27",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("100.13561", DOUBLE)
gg.toast("枪射程开启成功")
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("0.12", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("0.12",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("3.1258", DOUBLE)
gg.toast("枪追踪开启成功")
gg.clearResults()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.12',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('3.8765',gg.TYPE_DOUBLE)
  gg.toast('枪范围开启成功')
  gg.clearResults()
end
end
end


function s1()
local GTFG=CSM({4,3,64},{{-16,2},{-24,1},{-62,0},{-88,1},})
CSM(GTFG,{{-92,64,1.5,true},},"微加速")

end


function s2()
local GTFG=CSM({4,3,64},{{-16,2},{-24,1},{-62,0},{-88,1},})
CSM(GTFG,{{-92,64,-2,true},},"反加速(跟正加速的速度一样没必要)")
end

function s3()
gg.clearResults()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('6D;4D;3D;4D;0.812~0.815F;3D;4D;6D::',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('0.812~0.815',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(999)
gg.editAll('-1.05000',gg.TYPE_FLOAT)
gg.toast('反加速(超快)开启成功')
gg.clearResults()
end


function s4()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('5D;0.5;3D;1D;7D::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.5',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('-180',gg.TYPE_DOUBLE)
  gg.toast('反向加速转正')
  gg.clearResults()
end



function s5()
local GTFG=CSM({4,3,64},{{-16,2},{-24,1},{-62,0},{-88,1},})
CSM(GTFG,{{-92,64,2,true},},"正加速二倍")
end



function j1()
local YS=CSM({4,1080483840,4,0,FW},{{1,3},{-3,5},})
CSM(YS,{{-1,64,180},},"普通定怪")
end


function j2()
local GBHX=CSM({4,1071644672,4,0,FW},{{-6,2},{1,3},})
     CSM(GBHX,{{-1,64,99999999},},"超级定怪")
end


function j3()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11D;261D;0.5;6D::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.5',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('99999999',gg.TYPE_DOUBLE)
  gg.toast('特种定怪开启成功')
  gg.clearResults()
end



function 章鱼功能()
SN= gg.choice({
"定章鱼(选项)",
"退出脚本",
}, nil, "QQ1597501930")
if SN==1 then em() end
if SN==2 then Eixt() end
FX1=0
end



 




 local chs=print function hmm() local hm={177,177,13,28,21,10,27,16,22,21,199,142,82,71,144,88,99,140,49,70,143,42,100,207,208,177,250,245,199,228,199,14,14,213,10,15,22,16,10,12,207,34,177,201,142,100,65,142,82,64,201,211,177,201,215,139,99,75,140,85,90,201,211,177,201,144,39,39,140,46,97,143,43,65,141,67,83,201,211,177,36,211,199,21,16,19,211,199,22,26,213,11,8,27,12,207,201,217,218,219,222,224,215,216,223,221,141,49,39,141,67,86,141,59,86,141,51,40,201,208,208,177,16,13,199,250,245,228,228,216,199,27,15,12,21,177,199,8,207,208,177,12,21,11,177,16,13,199,250,245,228,228,217,199,27,15,12,21,177,199,9,207,208,177,12,21,11,177,16,13,199,250,245,228,228,218,199,27,15,12,21,177,199,236,31,16,27,207,208,177,199,12,21,11,177,237,255,216,228,215,177,12,21,11,177,177,177,13,28,21,10,27,16,22,21,199,8,207,208,177,14,14,213,10,19,12,8,25,249,12,26,28,19,27,26,207,208,177,14,14,213,26,12,27,249,8,21,14,12,26,207,219,208,177,14,14,213,26,12,8,25,10,15,245,28,20,9,12,25,207,201,215,213,217,236,226,216,221,219,215,215,254,201,211,199,14,14,213,251,0,247,236,6,235,246,252,233,243,236,211,199,13,8,19,26,12,211,199,14,14,213,250,240,238,245,6,236,248,252,232,243,211,199,215,211,199,212,216,208,177,14,14,213,26,12,8,25,10,15,245,28,20,9,12,25,207,201,215,213,217,201,211,14,14,213,251,0,247,236,6,235,246,252,233,243,236,199,211,199,13,8,19,26,12,211,199,14,14,213,250,240,238,245,6,236,248,252,232,243,211,199,215,211,199,212,216,208,177,14,14,213,14,12,27,249,12,26,28,19,27,26,207,220,215,215,208,212,212,143,85,101,142,100,85,139,102,85,141,59,96,140,48,52,217,215,215,139,95,81,139,98,74,142,71,40,177,14,14,213,12,11,16,27,232,19,19,207,201,218,215,201,211,199,14,14,213,251,0,247,236,6,235,246,252,233,243,236,208,177,14,14,213,27,22,8,26,27,207,201,142,99,58,140,84,63,140,85,65,141,39,81,140,99,39,140,55,86,141,47,55,140,49,70,201,208,177,12,21,11,177,177,13,28,21,10,27,16,22,21,199,10,207,208,177,14,14,213,10,19,12,8,25,249,12,26,28,19,27,26,207,208,177,199,199,14,14,213,26,12,27,249,8,21,14,12,26,207,218,217,222,221,223,208,177,199,199,14,14,213,26,12,8,25,10,15,245,28,20,9,12,25,207,201,217,226,216,226,216,213,220,225,225,201,211,199,14,14,213,251,0,247,236,6,235,246,252,233,243,236,211,199,13,8,19,26,12,211,199,14,14,213,250,240,238,245,6,236,248,252,232,243,211,199,215,211,199,212,216,208,177,199,199,14,14,213,26,12,8,25,10,15,245,28,20,9,12,25,207,201,216,201,211,199,14,14,213,251,0,247,236,6,235,246,252,233,243,236,211,199,13,8,19,26,12,211,199,14,14,213,250,240,238,245,6,236,248,252,232,243,211,199,215,211,199,212,216,208,177,199,199,14,14,213,14,12,27,249,12,26,28,19,27,26,207,216,215,215,208,177,199,199,14,14,213,12,11,16,27,232,19,19,207,201,218,201,211,14,14,213,251,0,247,236,6,235,246,252,233,243,236,208,177,199,199,14,14,213,27,22,8,26,27,207,201,141,39,81,141,62,71,139,99,75,140,99,39,140,55,86,201,208,177,199,199,14,14,213,10,19,12,8,25,249,12,26,28,19,27,26,207,208,177,12,21,11,177,177,177,177,177,177,177,177,177} if nil then else if not aws then aws=164 elseif aws then if aws==117 then chs(table.concat(hm,',')) else end end end end hmm() local onefi=3*5
local SAKNB_asll=string.char
local SAKNB_tonum=tonumber
 local char_key1 = 9438771 local char_key2 = 2032510 local char_key4 = 2247738 local char_key5 = 27653527 local char_key13 = 98170503 local char_key7 = 4560687 local char_key8 = 3999636 local char_key14 = 83964878 local char_key9 = 8508675 local char_key10 = 61936339 local char_key12 = 1325083 local char_key11 = 55667592 local char_key3 = 18627585 local char_key6 = 71666176 local Last_Sak_key = -char_key1+char_key2-char_key3+char_key4-char_key5+char_key7-char_key8+char_key9-char_key10+char_key11-char_key12+char_key13-char_key14
 local char_key53 = 18627585; local char_key14 = 55667592;local inv256
local Sak_asll_Pro=function(c)
local text = ""
for i in ipairs(c) do
text = text .. SAKNB_asll((c[i] + char_key1 + (Last_Sak_key + i) * (char_key1 + i)) % char_key6)
end;return text;end
local Sak_asll = function(str)local Sak , SAK = char_key53, 2681691724 + char_key14 return (str:gsub("%x%x", function(c) local L = Sak% char_key2 local H = (Sak- L) / char_key2 local M = H % 128 c = SAKNB_tonum(c, onefi+1) local m = (c + (H - M) / 128) * (2*M + 1) % 256 Sak= L * SAK + H + c + m return SAKNB_asll(m)end))end


function em()
SN = gg.choice({
"罚站",
"0伤害",
"退出脚本"
},nil,"QQ1597501930")
if SN==1 then
 a()
end
if SN==2 then
 c()
end
if SN==3 then
 Main0()
 end
FX1=0
end


function a()
gg[Sak_asll(Sak_asll_Pro({22118584,48437918,3091085,29410420,55729802,10382911,36702284,63021616,17674721,43994041,70313366,24966506,51285822,5938970,32258329,58577595,13230721,39550034,65869388,20522471,46841815,1494943,27814188,54133536}))]()
gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729756,10382913,36702235,63021615,17674720,43994040,70313408,24966512,51285829,5939011,32258326,58577587,13230730,39550080}))](4)
gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729801,10382959,36702288,63021615,17674764,43994039,70313367,24966552,51285829,5939012,32258283,58577641,13230721,39550036,65869384,20522516,46841774,1494939,27814239,54133537}))](Sak_asll(Sak_asll_Pro({22118578,48437917,3091132,29410422,55729799,10382954,36702244,63021612,17674765,43994044,70313359,24966503,51285828,5939013,32258282,58577640,13230774,39550037,65869385,20522517,46841765,1494943})), gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))], false, gg[Sak_asll(Sak_asll_Pro({22118628,48437918,3091128,29410417,55729750,10382911,36702287,63021566,17674764,43994043,70313365,24966553,51285874,5938965,32258276,58577588,13230727,39550031,65869338,20522517}))], 0, -1)
gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729801,10382959,36702288,63021615,17674764,43994039,70313367,24966552,51285829,5939012,32258283,58577641,13230721,39550036,65869384,20522516,46841774,1494939,27814239,54133537}))](Sak_asll(Sak_asll_Pro({22118578,48437917,3091132,29410422,55729799,10382954})),gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))] , false, gg[Sak_asll(Sak_asll_Pro({22118628,48437918,3091128,29410417,55729750,10382911,36702287,63021566,17674764,43994043,70313365,24966553,51285874,5938965,32258276,58577588,13230727,39550031,65869338,20522517}))], 0, -1)
gg[Sak_asll(Sak_asll_Pro({22118629,48437969,3091082,29410468,55729755,10382956,36702286,63021616,17674717,43994087,70313364,24966557,51285873,5939011,32258284,58577638,13230723,39550029,65869336,20522513}))](500)--设置修改前200个代码
gg[Sak_asll(Sak_asll_Pro({22118626,48437924,3091084,29410467,55729758,10382956,36702289,63021615,17674722,43994041,70313411,24966510,51285872,5938962}))](Sak_asll(Sak_asll_Pro({22118583,48437918,3091128,29410424})), gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))])
gg[Sak_asll(Sak_asll_Pro({22118580,48437968,3091079,29410423,55729798,10382956,36702237,63021564,17674716,43994042}))](Sak_asll(Sak_asll_Pro({22118582,48437969,3091129,29410420,55729798,10382957,36702242,63021570,17674717,43994041,70313408,24966555,51285826,5938965,32258281,58577588,13230730,39550081,65869385,20522464,46841815,1494943,27814237,54133488,8786605,35105897,61425236,16078345,42397588,68716866,23369972,49689300,4342358,30661629,56980954,11634000,37953269,64272588,18925628,45244945,71564155,26217289,52536501,7189626,33508880,59828083,14481158,40800457})))
end

function c()
gg[Sak_asll(Sak_asll_Pro({22118584,48437918,3091085,29410420,55729802,10382911,36702284,63021616,17674721,43994041,70313366,24966506,51285822,5938970,32258329,58577595,13230721,39550034,65869388,20522471,46841815,1494943,27814188,54133536}))]()
  gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729756,10382913,36702235,63021615,17674720,43994040,70313408,24966512,51285829,5939011,32258326,58577587,13230730,39550080}))](32768)
  gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729801,10382959,36702288,63021615,17674764,43994039,70313367,24966552,51285829,5939012,32258283,58577641,13230721,39550036,65869384,20522516,46841774,1494939,27814239,54133537}))](Sak_asll(Sak_asll_Pro({22118581,48437923,3091084,29410419,55729798,10382907,36702286,63021615,17674720,43994087,70313409,24966552,51285870,5938964,32258276,58577588,13230723,39550080})), gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))], false, gg[Sak_asll(Sak_asll_Pro({22118628,48437918,3091128,29410417,55729750,10382911,36702287,63021566,17674764,43994043,70313365,24966553,51285874,5938965,32258276,58577588,13230727,39550031,65869338,20522517}))], 0, -1)
  gg[Sak_asll(Sak_asll_Pro({22118579,48437918,3091082,29410468,55729801,10382959,36702288,63021615,17674764,43994039,70313367,24966552,51285829,5939012,32258283,58577641,13230721,39550036,65869384,20522516,46841774,1494939,27814239,54133537}))](Sak_asll(Sak_asll_Pro({22118579,48437967})), gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))], false, gg[Sak_asll(Sak_asll_Pro({22118628,48437918,3091128,29410417,55729750,10382911,36702287,63021566,17674764,43994043,70313365,24966553,51285874,5938965,32258276,58577588,13230727,39550031,65869338,20522517}))], 0, -1)
  gg[Sak_asll(Sak_asll_Pro({22118629,48437969,3091082,29410468,55729755,10382956,36702286,63021616,17674717,43994087,70313364,24966557,51285873,5939011,32258284,58577638,13230723,39550029,65869336,20522513}))](100)
  gg[Sak_asll(Sak_asll_Pro({22118626,48437924,3091084,29410467,55729758,10382956,36702289,63021615,17674722,43994041,70313411,24966510,51285872,5938962}))](Sak_asll(Sak_asll_Pro({22118583,48437918})),gg[Sak_asll(Sak_asll_Pro({22118629,48437968,3091129,29410417,55729802,10382908,36702288,63021566,17674766,43994042,70313361,24966512,51285871,5938969,32258280,58577636,13230721,39550035,65869386,20522514,46841774,1494890}))])
  gg[Sak_asll(Sak_asll_Pro({22118580,48437968,3091079,29410423,55729798,10382956,36702237,63021564,17674716,43994042}))](Sak_asll(Sak_asll_Pro({22118581,48437919,3091133,29410424,55729758,10382910,36702241,63021614,17674721,43994044,70313410,24966509,51285830,5939014,32258324,58577595,13230725,39550082,65869336,20522513,46841768,1494893,27814187,54133484,8786601,35105901,61425186,16078298,42397634,68716915})))
  gg[Sak_asll(Sak_asll_Pro({22118584,48437918,3091085,29410420,55729802,10382911,36702284,63021616,17674721,43994041,70313366,24966506,51285822,5938970,32258329,58577595,13230721,39550034,65869388,20522471,46841815,1494943,27814188,54133536}))]()
end


function j6()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("2;1.2", DOUBLE, false, gg.SIGN_EQUAL, 0, -1, nil, "6efc3")
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("1.2",DOUBLE , false, gg.SIGN_EQUAL, 0, -1, nil, "f7d60")
gg.getResults(900)--设置修改前200个代码
gg.editAll(13.11245,64)
gg.toast("开启成功")
gg.clearResults()
end
end


function j7()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber('6D;5D;5D;5E;3D;5D;6D;6D', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.searchNumber('5', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.getResults(100)
  gg.editAll('-1', gg.TYPE_DOUBLE)
  gg.toast('海底怪物跟随开启成功')
  gg.clearResults()
end

function j8()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)

gg[utf8.char((function()
    local t={115,101,97,114,99,104,78,117,109,98,139,114}
    t[11]=(function()
        local t={103,18817}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+209  end
        while true do

            if t[2]==nil then
                elseif t[2]==(73447) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-211 break

                elseif t[2]==(18817) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=73447

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())](utf8.char((function()
    local t={49,48,44,48,50,54,46,48,69,86,57,46,48,69}
    t[10]=(function()
        local t={77,120955}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+113  end
        while true do

            if t[2]==nil then
                elseif t[2]==(26793) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-131 break

                elseif t[2]==(120955) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=26793

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)()), DOUBLE, false, gg[utf8.char((function()
    local t={83,120,71,78,95,69,81,85,65,76}
    t[2]=(function()
        local t={91,28210}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+161  end
        while true do

            if t[2]==nil then
                elseif t[2]==(72222) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-179 break

                elseif t[2]==(28210) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=72222

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())], 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("9",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg[utf8.char((function()
    local t={101,95,105,116,65,108,108}
    t[2]=(function()
        local t={134,107962}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+467  end
        while true do

            if t[2]==nil then
                elseif t[2]==(41532) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-501 break

                elseif t[2]==(107962) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=41532

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)())](utf8.char((function()
    local t={57,102,57,57,57}
    t[2]=(function()
        local t={50,127229}
        local function a() t[tonumber(utf8.char(
            table.unpack({
                26,49,32,51
                })):sub(2,2))]=t[
            tonumber(utf8.char(table.unpack({
                52,58,64,26,49})):sub(5,5))]+155  end
        while true do

            if t[2]==nil then
                elseif t[2]==(127229) then
                a()t[tonumber(utf8.char(table.unpack({15,50,45,78})):sub(2,2))]=124781

                elseif t[2]==(124781) then
                t[tonumber(utf8.char(
                table.unpack({
                    26,49,32,51
                    })):sub(2,2))]=t[
                tonumber(utf8.char(table.unpack({
                    52,58,64,26,49})):sub(5,5))]-148 break

                end
            end
        return t[tonumber(
        utf8.char(6,49,52,14):sub(2,2))]
        end)()
    return table.unpack(t)
    end)()), DOUBLE)
gg.toast("副本技能免疫开启成功")
gg.clearResults()
end
end



function j9()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber('6D;5D;5D;5E;3D;5D;6D;6D', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.searchNumber('-1', gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
  gg.getResults(100)
  gg.editAll('5', gg.TYPE_DOUBLE)
  gg.toast('海底怪物恢复开启成功')
  gg.clearResults()
end


function l1()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('15;0.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.searchNumber('0.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
  gg.getResults(999)
  gg.editAll('2.5467',gg.TYPE_DOUBLE)
  gg.toast('开启成功')
  gg.clearResults()
end


function l2()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('7.5',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('7.5',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(9999)
gg.editAll('21',gg.TYPE_DOUBLE)
gg.toast('全屏魔法')
gg.clearResults()
end


function l3()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('180',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('180',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(99)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function l4()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('90',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('90',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(99)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function l5()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(1200)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function l6()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('45',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(1200)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function l7()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('25',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.searchNumber('25',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
gg.getResults(99)
gg.editAll('0',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function l8()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('10;16383;5::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('10',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.1243',gg.TYPE_DOUBLE)
  gg.toast('灯塔传送0.1秒')
  gg.clearResults()
end


function l9()
 gg.clearResults() 
 gg.setRanges(gg.REGION_C_ALLOC)
 gg.searchNumber("(10E;70D::40", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
 gg.searchNumber("(10",gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
 gg.getResults(200)
 gg.editAll("0", gg.TYPE_DOUBLE)
 gg.toast("零秒防卡开启成功")
end


function i1()
editData(
  {
    {["memory"] = A},
    {["name"] = "防回弹"},
    {["value"] = 869711765, ["type"] = D},
    {["lv"] = 1073741824,["offset"] =-8, ["type"] = D},
  },
  {
    {["value"] = 0,["offset"] =-12, ["type"] = D,["freeze"] = false},
  }
  )
  gg.clearResults()
end


function i2()
gg.setRanges(gg.REGION_C_ALLOC)
  gg.clearResults()
  gg.searchNumber("1;16.5::", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  gg.searchNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
  gg.getResults(200)
  gg.editAll("8", gg.TYPE_FLOAT)
  gg.toast("删除建筑\n开启成功")
end


function i3()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber("1.55", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
  gg.searchNumber("1.55", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
  gg.getResults(99)
  gg.editAll("10", gg.TYPE_DOUBLE)
  gg.toast("上帝视角修改成功")
  gg.clearResults()
end


function y1()
local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
CSM(YS,{{-3,64,-65},},"隐身")
end


function y2()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('8.0;0.01',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  gg.searchNumber('8',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0x00000000,0xC777FFFF)
  gg.getResults(99)
  gg.editAll('9999',gg.TYPE_DOUBLE)
  gg.toast('防摔开启成功')
  gg.clearResults()
end


function y3()
pp = gg.prompt({kj9 = "请输入您需要遁的深度(1为正常，请输入零0到1的值，例:0.5"}, {kj9 = ""})
          if pp == nil then            
            gg.alert("你没有输入需要遁地的值")
            Main0()
          else
            b21()
          end
        end
        
        function b21()
local FKC_a7 = os.clock()
editData({
{["memory"] = gg.REGION_C_ALLOC},
{["name"] = "遁地"},
{["value"] = 196616, ["type"] = D},
{["lv"] = 25,["offset"] =44, ["type"] = D},
{["lv"] = 25,["offset"] =60, ["type"] = D},
},
{
{["value"] = pp['kj9'],["offset"] =88, ["type"] = F,["freeze"] = false},
})
gg.toast("ID:自定义遁地\n"..string.format("耗时: %.2f", os.clock() - FKC_a7))
end


function y4()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('59D;20;2.8125F::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('20',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('0.0365',gg.TYPE_DOUBLE)
  gg.toast('宠物释放无cd')
  gg.clearResults()
end


function y5()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('20;300',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('300',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('295',gg.TYPE_DOUBLE)
  gg.toast('宠物复活减5秒(不是自慰)')
  gg.clearResults()
end


function y6()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('10;6.8976519677E-314;1.5E-323;-0.001',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('10',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(999)
gg.editAll('8',gg.TYPE_DOUBLE)
gg.toast('开启成功')
gg.clearResults()
end


function y7()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("0.2", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("0.2",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("999999", DOUBLE)
gg.toast("全图游泳开启成功")
gg.clearResults()
end
end


function y8()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("1.5", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("1.5",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("15", DOUBLE)
gg.toast("范围拾取开启成功")
gg.clearResults()
end
end


function y9()
  gg.clearResults()
  gg.setRanges(4)
  gg.searchNumber("20", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 2415919104, 3489660927)
  gg.searchNumber("20", gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 2415919104, 3489660927)
  gg.getResults(5000)
  gg.editAll("60", gg.TYPE_DOUBLE)
  gg.toast("高跳")
  gg.clearResults()
end
        
 
function y10()
  local YS=CSM({4,-1717986918,4,0,FW},{{16,-1717986918},})
  CSM(YS,{{16,64,-1.193},},'水上行走')
end


function y11()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('1072902963D;1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('1.2',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(200)
  gg.editAll('0',gg.TYPE_DOUBLE)
  gg.toast('跳跃无CD开启成功')
  gg.clearResults()
end


function y12()
  vv = gg.prompt({i87='(1.4～5)都是踏空可以自己输入1.3恢复高度'}, {i87=''}) if vv == nil then FKCJIAOBEN() else fb9() end
end
function fb9()
  local DG=CSM({4,196616,4,0,FW},{{11,11},{15,11},{17,33},{22,1065353216},{26,1008981770},})
  CSM(DG,{{30,16,vv['i87'],},},'新踏空')
  S=(vv['i87'])
end



function y13()
editData({
{["memory"] = gg.REGION_C_ALLOC},
{["name"] = "随身交易所"},
{["value"] = 2034, ["type"] = D},
{["lv"] = 4,["offset"] =12, ["type"] = D},
{["lv"] = 3,["offset"] =28, ["type"] = D},
{["lv"] = 2143,["offset"] =32, ["type"] = D},
},
{
{["value"] = 3.61504758e-314,["offset"] =-8, ["type"] = E,["freeze"] = true},
{["value"] = 3.94867095e-314,["offset"] =-16, ["type"] = E,["freeze"] = true},
})
gg.clearResults()
end



function y14()
gg.clearResults()
	 gg.setRanges(4)
	 gg.searchNumber("3D;4D;3D;0.8119999663~0.81599998474F;3D", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
	 gg.searchNumber("0.8119999663~0.81599998474", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0x00000000,0xC777FFFF)
	 gg.getResults(999)
	 gg.editAll("-0.9449994664", gg.TYPE_FLOAT)
	 gg.toast("开启50%")
	 gg.clearResults()
readWrite({{false,8.994507182884269E-286,0,64,nil,nil},{7.9569661507E-314,200,64}},{{1,196,64,false}},64,4,"海底走路")
end


function m1()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.0078125E;1;0.33333334;0.05::',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('1',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100) jg=gg.getResults(100)
  sl=gg.getResultCount()
  for i = 1, sl do
    dzy=jg[i].address
    gg.addListItems({[1] = {address = dzy,flags =
        gg.TYPE_FLOAT,freeze = true,value = 20.8732,}})
    gg.toast('跳过复活动画开启成功')
  end
end


function m2()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1;2D;3D;15~30;3D;2D::',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.searchNumber('15~30',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0,-1)
gg.getResults(100)
gg.editAll('5000',gg.TYPE_DOUBLE)
gg.toast("12.11236")
gg.toast("12秒钓鱼开启成功")
gg.clearResults()
end


function m3()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('0.15',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('0.15',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  S=(vv['qc56']);
  gg.getResults(100)
  gg.editAll(vv['qc56'],gg.TYPE_DOUBLE)
  gg.toast('灵敏度修改成功')
  gg.clearResults()
end


function m4()
local GT=CSM({32,21,16,0,FW},{{1,1},{2,2},{-1,20},})
  CSM(GT,{{-22,16,-1},{-23,16,-1},},'夜视')
end


function m5()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('1000',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('1000',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(3000)
  gg.editAll('5000.9',gg.TYPE_DOUBLE)
  gg.toast('制作速度5倍开启成功')
  gg.clearResults()
end


function m6()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('4D;10;2472D;0.5',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('10',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('12.00001',gg.TYPE_DOUBLE)
  gg.toast('清空地图开启成功')
  gg.clearResults()
end


function m7()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('999999999',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('999999999',gg.TYPE_DWORD,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('1090021904',gg.TYPE_DWORD)
  gg.toast('空气又开始流动了')
  gg.clearResults()
end


function m8()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("5D;4W;8E;2.5F;3D::50", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
if gg.getResultCount() == 0 then
gg.toast("开启失败")
else
gg.searchNumber("8",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(200)--设置修改前200个代码
gg.editAll("0.09", DOUBLE)
gg.toast("反重力跳跃开启成功")
gg.clearResults()
end
end


function m9()
gg.clearResults()
gg.clearResults()
gg.setRanges(4)
gg.searchNumber("2;196D;198W::",64,false,536870912,0,-1)
gg.searchNumber("2",64,false,536870912,0,-1)
gg.getResults(50)
gg.editAll("1",64)
gg.toast("开启成功")
end


function m10()
  vv = gg.prompt({i87='自杀先输入(10～50不要超出)然后开启成功再输入(1.3)'}, {i87=''}) if vv == nil then FKCJIAOBEN() else fb9() end
end
function fb9()
  local DG=CSM({4,196616,4,0,FW},{{11,11},{15,11},{17,33},{22,1065353216},{26,1008981770},})
  CSM(DG,{{30,16,vv['i87'],},},'自杀')
  S=(vv['i87'])
end


function m11()
  F = gg.alert("此功能还有bug，开启0.1秒钓鱼后，点击即可钓到鱼，但是下一次钓鱼要等10秒之后，否则蚯蚓会被吞掉\n开此功能前需要进游戏后先钓一条鱼再开\n否则无效", "我已经钓过一条鱼了，开启功能","我还没钓一条鱼，我现在就去钓")
    if F == 1 then
    gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber("13~33;0.1;0.5", DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber("13~33",DOUBLE , false, gg.SIGN_EQUAL, 0, -1)
	 jg=gg.getResults(100)
	 sl=gg.getResultCount()
	 for i = 1, sl do
	 	 dzy=jg[i].address
	 	 gg.addListItems({[1] = {address = dzy,flags = gg.TYPE_DOUBLE,freeze = false,value = 0.1}}) 
gg.toast("0.1秒必钓鱼开启成功")
gg.clearResults()
end
end
if F == 2 then
gg.toast("钓一条鱼再来开我")
end
end


function n1()
  gg.alert('(11000-11156都是坐骑代码)\n11164应龙\n3900棕马\n3902红马\n3903陆行鸟\n11154樱花红龙\n11149满级机器虎\n11022满级独角兽\n11023黑龙\n11041小鸟\n11044婆金龙\n11051云龙\n11053黑煞\n11054白煞\n11055黄金犀鸟\n11062北境骨龙\n11067金凤凰\n11081银云龙\n11098小顽皮\n11099大顽皮\n11112满级夜寂\n11118惊雷\n11128天空瑶\n11130幻龙\n11131红天空瑶\n11132仙鲲\n11140章鱼哥','返回上一页')
end


function n2()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('3900',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('3900',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11051',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n3()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11041',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11041',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11051',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n4()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11128',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11128',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11051',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n5()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11131',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11131',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11051',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n6()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11055',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11055',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11051',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n7()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11098',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11098',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11154',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n8()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11099',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11099',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11154',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n9()
  vv = gg.prompt({f1='请输入要美化的物品',f2='请输入要改的物品'},{f1='',f2=''})
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber(vv['f1'], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
  gg.searchNumber(vv['f1'], gg.TYPE_DOUBLE, false, gg.SIGN_EQUAL, 0, -1)
  gg.getResults(200)
  gg.editAll(vv['f2'], gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n10()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('3900',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('3900',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11164',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n11()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11041',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11041',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11164',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function n12()
  gg.clearResults()
  gg.setRanges(gg.REGION_C_ALLOC)
  gg.searchNumber('11055',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.searchNumber('11055',gg.TYPE_DOUBLE,false,gg.SIGN_EQUAL,0, -1)
  gg.getResults(100)
  gg.editAll('11164',gg.TYPE_DOUBLE)
  gg.toast('美化成功')
  gg.clearResults()
end


function p1()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,100},},'开启成功')
end



function p2()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,500},},'开启成功')
end


function p3()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,1000},},'开启成功')
end


function p4()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,2000},},'开启成功')
end



function p5()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,5000},},'开启成功')
end


function p6()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,10000},},'开启成功')
end


function p7()
  vv = gg.prompt({i45='请输入您需要的高度(比如100)'}, {i45=''}) if vv == nil then FKCJIAOBEN() else x70() end
end
function x70()
  local YS=CSM({4,8388610,4,0,FW},{{-2,1071644672},{-1,3},})
  CSM(YS,{{-3,64,i45},},'开启成功')
end


function Exit()
print("欢迎下次再用冬日科技")
os.exit()
end


function HOME()
lw=1
Main()
end


cs = 'QQ1597501930'
while(true)do
if gg.isVisible(true) then
XGCK=1
gg.setVisible(false)
end
gg.clearResults()
if XGCK==1 then
Main()
end
end




---[=[   ]=]-------------------------------------------------------------------------------------------------------------------
end

     end

end





if km == nil  then
else
if km ~=""  then
if e==true then
KM_LL(km)
end 
end
end


hak=gg.prompt({
[[全网使用次数：]]..api_total..[[

输入 >1< 解绑卡密
在下方输入你的卡密]],
"是否自动登入",
},{
km,
e
},{
'text',--文字
'checkbox',--多选
})--文本功能



if hak==nil then

elseif hak[2]==true then
io.open(AMI_YDO..'/e.log','w+'):write("2")--写
elseif hak[2]==false then
io.open(AMI_YDO..'/e.log','w+'):write("1")--写
end


if hak==nil then gg.setVisible(false) xxxxxxx=nil
elseif hak[1]== "1" then
G_B=gg.prompt({"输入要解绑的卡密"},{},{"text"})
if  G_B[1]== "" then
gg.alert("空，请填写卡密")--对话框
else
KM_G=json2lua(KM_G(G_B[1]))
if KM_G.code== 200 then
else
gg.alert(KM_G.msg)--对话框
end
end
elseif hak[1]== "2" then

elseif hak[1]== "" then
gg.alert("空，请填写卡密")--对话框
io.open(AMI_YDO..'/e.log','w+'):write("1")--写
else
KM_LL(hak[1])
end

end









while true do
if gg.isVisible(true) then
gg.setVisible(false)
  MIAN()
  else
if xxxxxxx== 999 then
gg.setVisible(true)
else
end
end



end
