幻塔半夏科技lua脚本开源代码


 

local ReadPointer = function(name, offset, i) local re=gg.getRangesList(name) local x64=gg.getTargetInfo().x64 local va={[true]=32,[false]=4} if re[i or 1] then local addr=re[i or 1].start+offset[1] for i = 2,#offset do addr = gg.getValues({{address=addr,flags=va[x64]}}) if not x64 then addr[1].value = addr[1].value & 0xFFFFFFFF end addr = addr[1].value + offset[i] end return addr end end function gg.edits(addr, Table, name) local Table1 = {{}, {}} for k, v in ipairs(Table) do local value = {address = addr+v[3], value = v[1], flags = v[2], freeze = v[4]} if v[4] then Table1[2][#Table1[2]+1] = value else Table1[1][#Table1[1]+1] = value end end gg.addListItems(Table1[2]) gg.setValues(Table1[1]) gg.toast((name or "") .. "开启成功, 共修改"..#Table.."个值") end
local g = {}
g.file = gg.getFile()
g.sel = nil
gqlb={"请先搜索歌曲",}
idb={"1010"}
SN,gc=1,nil
g.config="/sdcard/网易云音乐配置.cfg"
--g.config = gg.getFile():gsub('%lua$', '')..'cfg'
function bei()
g.data = loadfile(g.config)
if g.data ~= nil then
g.sel = g.data()
g.data = nil
end
if g.sel == nil then
g.sel = {"","10"}
end
end
bei()

PTP="/sdcard/幻塔瞬移配置.cfg"
AX=io.open(PTP,"r")
if AX==nil then
gg.alert("首次使用请先设置瞬移间隔!")
AA=gg.prompt({"间隔设置:(单位:秒)"},{5},{"number"})
AY="YY="..'"'..AA[1]..'"'.."\n--开源模板"
io.open(PTP,"w"):write(AY)
jiange=AA[1]*1000
gg.toast("设置成功")
else
pcall(loadfile(PTP))
jiange=YY*1000
gg.toast("设置成功")
end

Y1="https://api.uomg.com/api/rand.music?sort=热歌榜&format=json"
Y2="https://api.uomg.com/api/rand.music?sort=新歌榜&format=json"
Y3="https://api.uomg.com/api/rand.music?sort=飙升榜&format=json"
Y4="https://api.uomg.com/api/rand.music?sort=抖音榜&format=json"
Y5="https://api.uomg.com/api/rand.music?sort=电音榜&format=json"
Y6="https://api.uomg.com/api/comments.163?format=text"

getUrl = function(Url,path)
local Ay = gg.makeRequest(Url).content
local header = {}
header["Accept-Language"]="zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
header["Cookie"]="UM_distinctid=17badf46e622e3-0512a8081698d-37271a63-50100-17badf46e63108; CNZZDATA1258381272=818363134-1599609873-https%253A%252F%252Fm.baidu.com%252F%7C1599609873; down_ip=1; CNZZDATA1253610887=1315526113-1606037814-https%253A%252F%252Fm.baidu.com%252F%7C1606037814"
content=gg.makeRequest("https://vip.d0.baidupan.com/file/"..Ay:match("downloads = '?(.-)'"),header).content
io.open(path, 'w')
io.open(path,"w"):write(content):close()
end

local function readz(a)
return gg.getValues({{
address = a,
flags = 16
}})[1].value
end

function TeleportA(xyz,name)
x = xyz[1]
y = xyz[2]
z = xyz[3]
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x138,0x1E0}, 1)
gg.edits(addr, {{x,16,0},{y,16,4},{z,16,8,true}},name)
end
local ZBSYB={}
function Ay()
AA=gg.choice({
"景点瞬移👑",
"坐标记录👑",
"资源瞬移👑",
"变态功能🔰",
"瞬移设置😈",
"音乐系统🎵",
"退出程序❎️",
},0,"核星破壳www.xingapk.com")
if AA==nil then else
if AA==1 then AA1() end
if AA==2 then AA2() end
if AA==3 then AA3() end
if AA==4 then AA4() end
if AA==5 then AA5() end
if AA==6 then AA6() end
if AA==7 then AAA() end
end
Ax=0
end

function AAA()
gg.playMusic(stop)
gg.clearList()
gg.clearResults()
os.exit(gg.setVisible(true))
end

 

function AA1()
BB=gg.choice({
"折跃门",
"景点",
"遗迹",
"世界boos",
"每日任务",
},0)
if BB==nil then Ay() end
if BB==1 then BB1() end
if BB==2 then BB2() end
if BB==3 then BB3() end
if BB==4 then BB4() end
if BB==5 then BB5() end
end

 

function BB1()
CC=gg.choice({
"星岛",
"班吉斯",
"纳维亚",
"沃兰",
"克罗恩",
"幻塔",
},0,"⚠️地图未解锁的请不要开启折跃门")
if CC==nil then AA1() end
if CC==1 then CC1() end
if CC==2 then CC2() end
if CC==3 then CC3() end
if CC==4 then CC4() end
if CC==5 then CC5() end
if CC==6 then CC6() end
end

function CC1()
DD=gg.choice({
"星岛原能塔",
"MEGA擂台",
"南部环山1",
"南部环山2",
"北部环山1",
"北部环山2",
"星岛避难所",
},0)
if DD==nil then BB1() end
if DD==1 then DD1() end
if DD==2 then DD2() end
if DD==3 then DD3() end
if DD==4 then DD4() end
if DD==5 then DD5() end
if DD==6 then DD6() end
if DD==7 then DD7() end
end

function DD1()
TeleportA({-56426.71875;63987.58984375;-2734.64208984375},"星岛")
gg.sleep(jiange)
gg.clearList()
end

function DD2()
TeleportA({-40864.80078125;90984.0;-12507.0166015625},"擂台")
gg.sleep(jiange)
gg.clearList()
end

 

function DD3()
TeleportA({-64648.3125;105857.0234375;-7090.77880859375},"南部环山1")
gg.sleep(jiange)
gg.clearList()
end

 

function DD4()
TeleportA({-89793.796875;96184.703125;-1282.4515380859375},"南部环山2")
gg.sleep(jiange)
gg.clearList()
end

function DD5()
TeleportA({-118014.8984375;70178.1015625;-6662.45166015625},"北部环山1")
gg.sleep(jiange)
gg.clearList()
end

function DD6()
TeleportA({-96954.7109375;52118.09765625;-2871.945556640625},"北部环山2")
gg.sleep(jiange)
gg.clearList()
end

function DD7()
TeleportA({-91909.703125;75609.796875;-6747.7998046875},"星岛避难所")
gg.sleep(jiange)
gg.clearList()
end

function CC2()
EE=gg.choice({
"乌丘山",
"班吉斯农场",
"班吉斯码头",
"塔格士山脉",
"信号站废墟",
"黑市",
"班吉斯原能塔",
"罗恩码头",
"班吉斯避难所",
},0)
if EE==nil then BB1() end
if EE==1 then EE1() end
if EE==2 then EE2() end
if EE==3 then EE3() end
if EE==4 then EE4() end
if EE==5 then EE5() end
if EE==6 then EE6() end
if EE==7 then EE7() end
if EE==8 then EE8() end
if EE==9 then EE9() end
end

function EE1()
TeleportA({-14971.9462890625;67289.8828125;-14620.740234375},"乌丘山")
gg.sleep(jiange)
gg.clearList()
end

 

function EE2()
TeleportA({2613.357666015625;39649.3671875;-3958.484130859375},"班吉斯农场")
gg.sleep(jiange)
gg.clearList()
end

function EE3()
TeleportA({-22199.99609375;30392.37890625;-14520.0908203125},"班吉斯码头")
gg.sleep(jiange)
gg.clearList()
end

 

function EE4()
TeleportA({-17333.400390625;1846.699951171875;-6280.21484375},"塔格士山脉")
gg.sleep(jiange)
gg.clearList()
end

function EE5()
TeleportA({-84198.0;7694.0;-11270.18359375},"信号站废墟")
gg.sleep(jiange)
gg.clearList()
end

function EE6()
TeleportA({-37747.19921875;-11791.7001953125;-6030.10009765625},"黑市")
gg.sleep(jiange)
gg.clearList()
end

function EE7()
TeleportA({-60163.30078125;-20352.80078125;4459.85888671875},"班吉斯源能塔")
gg.sleep(jiange)
gg.clearList()
end

function EE8()
TeleportA({-83139.0;-27264.0;-6384.15966796875},"罗恩码头")
gg.sleep(jiange)
gg.clearList()
end

function EE9()
TeleportA({9102.099609375;108237.3984375;-6647.4755859375},"班吉斯避难所")
gg.sleep(jiange)
gg.clearList()
end

function CC3()
FF=gg.choice({
"七日之森南部",
"七日之森北部",
"悯雨岛",
"纳维亚原能塔",
"白鲸岛",
},0)
if FF==nil then BB1() end
if FF==1 then FF1() end
if FF==2 then FF2() end
if FF==3 then FF3() end
if FF==4 then FF4() end
if FF==5 then FF5() end
end

function FF1()
TeleportA({-19102.0;-31693.0;-8309.484375},"七日之森南部")
gg.sleep(jiange)
gg.clearList()
end

function FF2()
TeleportA({-48227.625;-42476.28125;-7730.8115234375},"七日之森北部")
gg.sleep(jiange)
gg.clearList()
end

function FF3()
TeleportA({-67379.390625;-93373.8671875;-11926.3017578125},"悯雨岛")
gg.sleep(jiange)
gg.clearList()
end

function FF4()
TeleportA({-31491.0390625;-94574.1171875;-1226.9766845703125},"纳维亚原能塔")
gg.sleep(jiange)
gg.clearList()
end

function FF5()
TeleportA({-57640.0;-78480.0;22534.27734375},"白鲸岛")
gg.sleep(jiange)
gg.clearList()
end

function CC4()
GG=gg.choice({
"恩利尔堡垒",
"南纳峡湾",
"萨格回廊",
"峡湾峭壁",
"沃兰雪山",
"沃兰避难所",
"沃兰原能塔",
},0)
if GG==nil then BB1() end
if GG==1 then GG1() end
if GG==2 then GG2() end
if GG==3 then GG3() end
if GG==4 then GG4() end
if GG==5 then GG5() end
if GG==6 then GG6() end
if GG==7 then GG7() end
end

function GG1()
TeleportA({21590.46484375;-80521.6328125;-8828.869140625},"恩利尔堡垒")
gg.sleep(jiange)
gg.clearList()
end

function GG2()
TeleportA({60237.1015625;-111331.5;-14733.099609375},"南纳峡湾")
gg.sleep(jiange)
gg.clearList()
end

function GG3()
TeleportA({73277.0;-64123.0;-12247.599609375},"萨格回廊")
gg.sleep(jiange)
gg.clearList()
end

function GG4()
TeleportA({85679.8984375;-100961.0;-6424.0},"峡湾峭壁")
gg.sleep(jiange)
gg.clearList()
end

function GG5()
TeleportA({95049.0;-62826.0;-4849.60009765625},"沃兰雪山")
gg.sleep(jiange)
gg.clearList()
end

function GG6()
TeleportA({104488.703125;5517.89990234375;-14275.72265625},"沃兰避难所")
gg.sleep(jiange)
gg.clearList()
end

function GG7()
TeleportA({122062.0546875;-51098.01171875;-2009.319580078125},"沃兰原能塔")
gg.sleep(jiange)
gg.clearList()
end

 

function CC5()
HH=gg.choice({
"克罗恩矿区",
"卢米纳号",
"北部山区",
"议会中心",
"南部山区",
"实验室",
"矿工营地",
},0)
if HH==nil then BB1() end
if HH==1 then HH1() end
if HH==2 then HH2() end
if HH==3 then HH3() end
if HH==4 then HH4() end
if HH==5 then HH5() end
if HH==6 then HH6() end
if HH==7 then HH7() end
end

function HH1()
TeleportA({77847.0;34975.0;4747.36865234375},"克罗恩矿区")
gg.sleep(jiange)
gg.clearList()
end

function HH2()
TeleportA({78796.3203125;67042.859375;-10107.4521484375},"卢米纳号")
gg.sleep(jiange)
gg.clearList()
end

function HH3()
TeleportA({57372.19921875;2301.5;6112.0},"北部山区")
gg.sleep(jiange)
gg.clearList()
end

function HH4()
TeleportA({44888.80078125;26156.099609375;-14770.8525390625},"议会中心")
gg.sleep(jiange)
gg.clearList()
end

function HH5()
TeleportA({27444.099609375;65521.3984375;107.5484700202941895},"南部山区")
gg.sleep(jiange)
gg.clearList()
end

function HH6()
TeleportA({44125.1484375;36319.79296875;-5089.78564453125},"实验室")
gg.sleep(jiange)
gg.clearList()
end

function HH7()
TeleportA({9401.599609375;14316.7998046875;-2993.0},"矿工营地")
gg.sleep(jiange)
gg.clearList()
end

 

function CC6()
HTOO=gg.choice({
"幻塔遗迹",
"幻塔塔顶",
"海嘉德顶",
},0)
if HTOO==nil then BB1() end
if HTOO==1 then HTOO1() end
if HTOO==2 then HTOO2() end
if HTOO==3 then HTOO3() end
end

function HTOO1()
TeleportA({45243.0;-15764.0;3172.0},"幻塔遗迹")
gg.sleep(jiange)
gg.clearList()
end

function HTOO2()
TeleportA({27796.35546875;-11750.8203125;107344.3125},"幻塔塔顶")
gg.sleep(jiange)
gg.clearList()
end

function HTOO3()
TeleportA({14.85721492767334;-26483.01171875;130677.578125},"海嘉德顶")
gg.sleep(jiange)
gg.clearList()
end

function BB2()
II=gg.choice({
"星岛",
"班吉斯",
"纳维亚",
"沃兰",
"克罗恩",
},0)
if II==nil then AA1() end
if II==1 then II1() end
if II==2 then II2() end
if II==3 then II3() end
if II==4 then II4() end
if II==5 then II5() end
end

 

function II1()
JJ=gg.choice({
"荆棘之墓",
"回音环",
"星岛避难所",
"擂台",
"北部环山",
},0)
if JJ==nil then BB2() end
if JJ==1 then JJ1() end
if JJ==2 then JJ2() end
if JJ==3 then JJ3() end
if JJ==4 then JJ4() end
if JJ==5 then JJ5() end
end

function JJ1()
TeleportA({-62057.60546875;109365.5;-9014.5419921875},"荆棘之墓")
gg.sleep(jiange)
gg.clearList()
end

function JJ2()
TeleportA({-66233.46875;89822.2265625;-3375.430419921875},"回音环")
gg.sleep(jiange)
gg.clearList()
end

function JJ3()
TeleportA({-97877.046875;78962.71875;-5219.97705078125},"星岛避难所")
gg.sleep(jiange)
gg.clearList()
end

function JJ4()
TeleportA({-39431.96875;72164.921875;-10151.365234375},"擂台")
gg.sleep(jiange)
gg.clearList()
end

function JJ5()
TeleportA({-86855.0234375;68254.765625;-5190.27392578125},"北部环山")
gg.sleep(jiange)
gg.clearList()
end

 

function II2()
KK=gg.choice({
"班吉斯农场",
"玛茵河",
"避难所",
"班吉斯重工",
"信号站废墟",
"班吉斯码头",
},0)
if KK==nil then BB2() end
if KK==1 then KK1() end
if KK==2 then KK2() end
if KK==3 then KK3() end
if KK==4 then KK4() end
if KK==5 then KK5() end
if KK==6 then KK6() end
end

function KK1()
TeleportA({-1003.0099487304688;42229.703125;-4995.85546875},"班吉斯农场")
gg.sleep(jiange)
gg.clearList()
end

function KK2()
TeleportA({11308.85546875;67829.234375;-5183.60107421875},"玛茵河")
gg.sleep(jiange)
gg.clearList()
end

function KK3()
TeleportA({13939.6494140625;88224.1875;-1281.5062255859375},"避难所")
gg.sleep(jiange)
gg.clearList()
end

function KK4()
TeleportA({-31489.923828125;19087.7109375;-10186.748046875},"班吉斯重工")
gg.sleep(jiange)
gg.clearList()
end

function KK5()
TeleportA({-68040.7578125;-209.46961975097656;-7265.45263671875},"信号站废墟")
gg.sleep(jiange)
gg.clearList()
end

function KK6()
TeleportA({-15721.46875;30914.283203125;-10406.890625},"班吉斯码头")
gg.sleep(jiange)
gg.clearList()
end

 

function II3()
LL=gg.choice({
"塞尔加河",
"悯雨岛",
"白鲸岛",
"七日之森",
},0)
if LL==nil then BB2() end
if LL==1 then LL1() end
if LL==2 then LL2() end
if LL==3 then LL3() end
if LL==4 then LL4() end
end

function LL1()
TeleportA({-52189.953125;-45677.5625;-7144.13916015625},"塞尔加河")
gg.sleep(jiange)
gg.clearList()
end

function LL2()
TeleportA({-61116.3125;-38164.71875;2475.630126953125},"悯雨岛")
gg.sleep(jiange)
gg.clearList()
end

function LL3()
TeleportA({-28172.00390625;-55149.59375;-104.28927612304688},"白鲸岛")
gg.sleep(jiange)
gg.clearList()
end

function LL4()
TeleportA({-17770.767578125;-40599.109375;993.0284423828125},"七日之森")
gg.sleep(jiange)
gg.clearList()
end

function II4()
MM=gg.choice({
"恩利尔堡垒",
"萨格回廊",
"纳兰海峡",
"银冠林",
},0)
if MM==nil then BB2() end
if MM==1 then MM1() end
if MM==2 then MM2() end
if MM==3 then MM3() end
if MM==4 then MM4() end
end

function MM1()
TeleportA({40447.65625;-62897.1015625;-1634.015869140625},"恩利尔堡垒")
gg.sleep(jiange)
gg.clearList()
end

function MM2()
TeleportA({100887.4765625;-29832.61328125;-1169.629638671875},"萨格回廊")
gg.sleep(jiange)
gg.clearList()
end

function MM3()
TeleportA({100854.5859375;-68073.3515625;-10208.8740234375},"纳兰峡湾")
gg.sleep(jiange)
gg.clearList()
end

function MM4()
TeleportA({55933.59375;-71850.9921875;-8010.88134765625},"银冠林")
gg.sleep(jiange)
gg.clearList()
end

 

function II5()
NN=gg.choice({
"第四区",
"议会中心",
"矿工营地",
"卢米纳号",
},0)
if NN==nil then BB2() end
if NN==1 then NN1() end
if NN==2 then NN2() end
if NN==3 then NN3() end
if NN==4 then NN4() end
end

function NN1()
TeleportA({72047.5703125;39269.64453125;-1319.6458740234375},"第四区")
gg.sleep(jiange)
gg.clearList()
end

function NN2()
TeleportA({31803.548828125;40990.12109375;-2559.832763671875},"议会中心")
gg.sleep(jiange)
gg.clearList()
end

function NN3()
TeleportA({19029.26953125;18202.6640625;-10747.0078125},"矿工营地")
gg.sleep(jiange)
gg.clearList()
end

function NN4()
TeleportA({51924.19140625;74131.4140625;-3676.106689453125},"卢米纳号")
gg.sleep(jiange)
gg.clearList()
end

 

function BB3()
OO=gg.choice({
"星岛",
"班吉斯",
"纳维亚",
"克罗恩",
"沃兰",
},0)
if OO==nil then AA1() end
if OO==1 then OO1() end
if OO==2 then OO2() end
if OO==3 then OO3() end
if OO==4 then OO4() end
if OO==5 then OO5() end
end

function OO1()
PP=gg.choice({
"A-01",
"A-02",
"A-03",
},0)
if PP==nil then BB3() end
if PP==1 then PP1() end
if PP==2 then PP2() end
if PP==3 then PP3() end
end

function PP1()
TeleportA({-77077.765625;78078.6484375;-9479.525390625},"A-01")
gg.sleep(jiange)
gg.clearList()
end

function PP2()
TeleportA({-52796.91015625;104282.3203125;-11679.0888671875},"A-02")
gg.sleep(jiange)
gg.clearList()
end

function PP3()
TeleportA({-92857.109375;60828.1640625;-6441.064453125},"A-03")
gg.sleep(jiange)
gg.clearList()
end

function OO2()
QQ=gg.choice({
"B-01",
"B-02",
"B-03",
},0)
if QQ==nil then BB3() end
if QQ==1 then QQ1() end
if QQ==2 then QQ2() end
if QQ==3 then QQ3() end
end

function QQ1()
TeleportA({-40214.47265625;-9760.3740234375;-2955.13330078125},"B-01")
gg.sleep(jiange)
gg.clearList()
end

function QQ2()
TeleportA({-43462.078125;32149.5390625;-14487.369140625},"B-02")
gg.sleep(jiange)
gg.clearList()
end

function QQ3()
TeleportA({6525.8642578125;52705.9453125;-3741.6513671875},"B-03")
gg.sleep(jiange)
gg.clearList()
end

function OO3()
RR=gg.choice({
"C-01",
"C-02",
"C-03",
},0)
if RR==nil then BB3() end
if RR==1 then RR1() end
if RR==2 then RR2() end
if RR==3 then RR3() end
end

function RR1()
TeleportA({-8887.982421875;-29096.5234375;-6447.52978515625},"C-01")
gg.sleep(jiange)
gg.clearList()
end

function RR2()
TeleportA({-20795.875;-58785.51953125;-474.4854125976562},"C-02")
gg.sleep(jiange)
gg.clearList()
end

function RR3()
TeleportA({-70298.0703125;-93705.6796875;-12132.5966796875},"C-03")
gg.sleep(jiange)
gg.clearList()
end

 

function OO4()
SS=gg.choice({
"D-01",
"D-02",
"D-03",
},0)
if SS==nil then BB3() end
if SS==1 then SS1() end
if SS==2 then SS2() end
if SS==3 then SS3() end
end

function SS1()
TeleportA({29994.123046875;42207.05859375;-11186.6435546875},"D-01")
gg.sleep(jiange)
gg.clearList()
end

function SS2()
TeleportA({54700.2734375;20182.998046875;-2712.57373046875},"D-02")
gg.sleep(jiange)
gg.clearList()
end

function SS3()
TeleportA({58126.23046875;54467.1484375;-14522.80078125},"D-03")
gg.sleep(jiange)
gg.clearList()
end

function OO5()
TT=gg.choice({
"E-01",
"E-02",
"E-03",
},0)
if TT==nil then BB3() end
if TT==1 then TT1() end
if TT==2 then TT2() end
if TT==3 then TT3() end
end

function TT1()
TeleportA({110033.8515625;-9677.3935546875;-14663.94921875},"E-01")
gg.sleep(jiange)
gg.clearList()
end

function TT2()
TeleportA({52560.2109375;-48490.01953125;-4047.39501953125},"E-02")
gg.sleep(jiange)
gg.clearList()
end

function TT3()
TeleportA({66158.09375;-107840.0234375;-13662.5185546875},"E-03")
gg.sleep(jiange)
gg.clearList()
end

 

function BB4()
SJBS=gg.choice({
"机甲",
"花姬",
},0)
if SJBS==nil then AA1() end
if SJBS==1 then SJBS1() end
if SJBS==2 then SJBS2() end
end

function SJBS1()
TeleportA({-59929.98828125;-55138.2109375;-14957.0},"机甲")
gg.sleep(jiange)
gg.clearList()
end

function SJBS2()
TeleportA({-59932.9375;103332.3046875;-12914.6513671875},"花姬")
gg.sleep(jiange)
gg.clearList()
end

function BB5()
MRRW=gg.choice({
"锦蜂",
"骗子莱姆",
"异化人",
"鬣狗帮&卓尔特",
"复刻体",
"鬣狗帮的装置",
"巨人波姆",
"艾达死士&狙击手&首领",
"女妖精英&左手•凯",
"熊",
"穿杨艾姆诺",
"拉拉尔",
"蜜獾",
"猎头者精英",
"宝藏守护者",
"四鼠兄弟",
},0)
if MRRW==nil then AA1() end
if MRRW==1 then MRRW1() end
if MRRW==2 then MRRW2() end
if MRRW==3 then MRRW3() end
if MRRW==4 then MRRW4() end
if MRRW==5 then MRRW5() end
if MRRW==6 then MRRW6() end
if MRRW==7 then MRRW7() end
if MRRW==8 then MRRW8() end
if MRRW==9 then MRRW9() end
if MRRW==10 then MRRW10() end
if MRRW==11 then MRRW11() end
if MRRW==12 then MRRW12() end
if MRRW==13 then MRRW13() end
if MRRW==14 then MRRW14() end
if MRRW==15 then MRRW15() end
if MRRW==16 then MRRW16() end
end

function MRRW1()
TeleportA({-80170.0;72172.0;-9243.0},"锦蜂")
gg.sleep(jiange)
gg.clearList()
end

function MRRW2()
TeleportA({-62192.0;90142.0;-8097.0},"骗子莱姆")
gg.sleep(jiange)
gg.clearList()
end

function MRRW3()
TeleportA({-83554.0;52289.0;-8582.0},"异化人")
gg.sleep(jiange)
gg.clearList()
end

function MRRW4()
TeleportA({-46291.0;94745.0;-12268.0},"鬣狗帮打手")
gg.sleep(jiange)
gg.clearList()
end

function MRRW5()
TeleportA({-77810.0;7672.0;-13028.0},"复刻体")
gg.sleep(jiange)
gg.clearList()
end

function MRRW6()
TeleportA({-68088.0;56079.0;-6613.0},"鬣狗帮的装置")
gg.sleep(jiange)
gg.clearList()
end

function MRRW7()
TeleportA({-39235.0;76069.0;-13325.0},"巨人波姆")
gg.sleep(jiange)
gg.clearList()
end

function MRRW8()
TeleportA({-49023.0;12420.0;-6274.0},"艾达死士&狙击手&首领")
gg.sleep(jiange)
gg.clearList()
end

function MRRW9()
TeleportA({-43029.0;14601.0;-6573.0},"女妖精英&左手•凯")
gg.sleep(jiange)
gg.clearList()
end

function MRRW10()
TeleportA({-69421.0;-15232.0;-1126.0},"熊")
gg.sleep(jiange)
gg.clearList()
end

function MRRW11()
TeleportA({-95125.0;57039.0;-2297.0},"穿杨艾姆诺")
gg.sleep(jiange)
gg.clearList()
end

function MRRW12()
TeleportA({-28298.0;-82590.0;-8071.0},"拉拉尔")
gg.sleep(jiange)
gg.clearList()
end

function MRRW13()
TeleportA({44371.0;42279.0;-14181.0},"蜜獾")
gg.sleep(jiange)
gg.clearList()
end

function MRRW14()
TeleportA({-63859.0;59086.0;-9199.0},"猎头者精英")
gg.sleep(jiange)
gg.clearList()
end

function MRRW15()
TeleportA({-85435.0;60074.0;-3850.0},"宝藏守护者")
gg.sleep(jiange)
gg.clearList()
end

function MRRW16()
TeleportA({-45802.0;97457.0;-10391.0},"四鼠兄弟")
gg.sleep(jiange)
gg.clearList()
end
function AA2()
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x138,0x1E0}, 1)
addrv=readz(addr)
ZBSY = gg.choice({
"添加坐标",
"瞬移坐标",
"导出坐标",
"删除坐标",
"自由瞬移",
},0)
if ZBSY==nil then Ay() end
if ZBSY==1 then ZBSY1() end
if ZBSY==2 then ZBSY2() end
if ZBSY==3 then ZBSY3() end
if ZBSY==4 then ZBSY4() end
if ZBSY==5 then ZBSY5() end
end

function ZBSY1()
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x138,0x1E0}, 1)
AX=math.floor(readz(addr)+0.5)
AY=math.floor(readz(addr+4)+0.5)
AZ=math.floor(readz(addr+8)+0.5)
local ZBSYA=gg.prompt({"设置坐标名字:"},{""},{"text"})
if ZBSYA==nil then AA2() else
ZBSYB[#ZBSYB+1]={string.format('%.1f',AX),string.format('%.1f',AY),string.format('%.1f',AZ),ZBSYA[1]}
gg.toast(ZBSYA[1].."添加成功")
end
end

function ZBSY2()
if #ZBSYB==0 then
gg.alert("无坐标记录")
AA2()
else
local zdyzbm={}
for x=1,#ZBSYB do
zdyzbm[x]="名称:"..ZBSYB[x][4].."\n坐标:{"..ZBSYB[x][1]..";"..ZBSYB[x][2]..";"..ZBSYB[x][3].."}"
end
local xzzb=gg.choice(zdyzbm,0)
if xzzb==nil then AA2() else
for x=1,#ZBSYB do
if xzzb==x then
TeleportA({ZBSYB[x][1];ZBSYB[x][2];ZBSYB[x][3]},"瞬移")
gg.sleep(jiange)
gg.clearList()
end
end
end
end
end

 

function ZBSY3()
if #ZBSYB==0 then
gg.alert("无坐标记录")
AA2()
else
local ZBSYA={}
for x=1,#ZBSYB do
ZBSYA[x]=ZBSYB[x][4]
end
local zbxz=gg.multiChoice(ZBSYA,nil,"选择导出的坐标:")
if zbxz~=nil then
local fx=""
for x=1,#ZBSYA do
if zbxz[x]==true then
fx=fx.."map["..ZBSYB[x][4].."]={"..ZBSYB[x][1]..";"..ZBSYB[x][2]..";"..ZBSYB[x][3].."}\n"
end
end
gg.copyText(fx)
gg.toast("当前坐标已复制")
end
end
end

function ZBSY4()
if #ZBSYB==0 then
gg.alert("无坐标记录")
AA2()
else
local ZBSYA={}
for x=1,#ZBSYB do
ZBSYA[x]=ZBSYB[x][4]
end
local zbxz=gg.multiChoice(ZBSYA,nil,"选择要删除的坐标,可多选。")
if zbxz==nil then AA2() else
--local scdzb={}
local XZB={}
for x=1,#ZBSYB do
if zbxz[x]~=true then
XZB[#XZB+1]=ZBSYB[x]
end
end
ZBSYB=XZB
gg.toast("删除成功")
end
end
end

function ZBSY5()
gg.copyText("{123;123;123}")
AA=gg.prompt({"输入坐标\n✅例:{123;123;123}"},{},{"text"})
if AA==nil then AA2()
else
TeleportA(assert(load("return " .. AA[1]))(),"自由瞬移")
gg.sleep(jiange)
gg.clearList()
end
end

--主菜单最后的功能
function AA3()
ZH=gg.choice({
"黑金瞬移",
"挖矿瞬移",
},0)
if ZH==nil then Ay() end
if ZH==1 then ZH1() end
if ZH==2 then ZH2() end
end

 

function ZH1()
HJ=gg.choice({
"自由瞬移",
"全图瞬移",
},0,"️黑金瞬移")
if HJ==nil then AA3() end
if HJ==1 then HJ1() end
if HJ==2 then HJ2() end
end

function HJ1()
HJmap=gg.choice({
"星岛",
"班吉斯",
"纳维亚",
},0,"👑自由瞬移")
if HJmap==nil then ZH1() end
if HJmap==1 then HJmap1() end
if HJmap==2 then HJmap2() end
if HJmap==3 then HJmap3() end
end

function HJmap1()
AA=gg.prompt({"选择坐标:[1~162]"},{1},{"number"})
if AA==nil then HJ1() else
TeleportA(map[tonumber(AA[1])])
gg.toast("第"..AA[1].."个坐标")
gg.sleep(jiange)
gg.clearList()
end
end

function HJmap2()
AA=gg.prompt({"选择坐标:[1~186]"},{1},{"number"})
if AA==nil then HJ1() else
TeleportA(mapx[tonumber(AA[1])])
gg.toast("第"..AA[1].."个坐标")
gg.sleep(jiange)
gg.clearList()
end
end

function HJmap3()
AA=gg.prompt({"选择坐标:[1~150]"},{1},{"number"})
if AA==nil then HJ1() else
TeleportA(mapxx[tonumber(AA[1])])
gg.toast("第"..AA[1].."个坐标")
gg.sleep(jiange)
gg.clearList()
end
end

function HJ2()
HJMAP=gg.choice({
"星岛",
"班吉斯",
"纳维亚",
},0,"👑全图瞬移")
if HJMAP==nil then ZH1() end
if HJMAP==1 then HJMAP1() end
if HJMAP==2 then HJMAP2() end
if HJMAP==3 then HJMAP3() end
end

function HJMAP1()
AA=gg.prompt({"选择开始位置:[1~162]"},{1},{"number"})
if AA==nil then HJ2() else
gg.toast("点击修改器开始瞬移")
i=tonumber(AA[1])
while true do
if gg.isVisible(true) then
TeleportA(map[i])
gg.setVisible(false)
gg.toast("第"..i.."个坐标")
gg.sleep(jiange)
gg.clearList()
gg.toast("再次点击修改器传送下一个点")
i=i+1
end
if i==163 then
gg.alert("已瞬移完毕")
return Ay()
end
end
end
end

function HJMAP2()
AA=gg.prompt({"选择开始位置:[1~186]"},{1},{"number"})
if AA==nil then HJ2() else
gg.toast("点击修改器开始瞬移")
i=tonumber(AA[1])
while true do
if gg.isVisible(true) then
TeleportA(mapx[i])
gg.setVisible(false)
gg.toast("第"..i.."个坐标")
gg.sleep(jiange)
gg.clearList()
gg.toast("再次点击修改器传送下一个点")
i=i+1
end
if i==187 then
gg.alert("已瞬移完毕")
return Ay()
end
end
end
end

function HJMAP3()
AA=gg.prompt({"选择开始位置:[1~150]"},{1},{"number"})
if AA==nil then HJ2() else
gg.toast("点击修改器开始瞬移")
i=tonumber(AA[1])
while true do
if gg.isVisible(true) then
TeleportA(mapxx[i])
gg.setVisible(false)
gg.toast("第"..i.."个坐标")
gg.sleep(jiange)
gg.clearList()
gg.toast("再次点击修改器传送下一个点")
i=i+1
end
if i==151 then
gg.alert("已瞬移完毕")
return Ay()
end
end
end
end

function ZH2()
WK=gg.choice({
"自由瞬移",
"全图瞬移",
"全图瞬移♻️",
"挖矿测试版",
},0,"矿区瞬移")
if WK==nil then AA3() end
if WK==1 then WK1() end
if WK==2 then WK2() end
if WK==3 then WK3() end
if WK==4 then WK4() end
end

function WK1()
AA=gg.prompt({"选择坐标:[1~208]"},{1},{"number"})
if AA==nil then ZH2() else
TeleportA(mapk[tonumber(AA[1])])
gg.toast("第"..AA[1].."个坐标")
gg.sleep(jiange)
gg.clearList()
end
end

function WK2()
AA=gg.prompt({"选择开始位置:[1~208]"},{1},{"number"})
if AA==nil then ZH2() else
gg.toast("点击修改器开始瞬移")
i=tonumber(AA[1])
while true do
if gg.isVisible(true) then
TeleportA(mapk[i])
gg.setVisible(false)
gg.toast("第"..i.."个坐标")
gg.sleep(jiange)
gg.clearList()
gg.toast("再次点击修改器传送下一个点")
i=i+1
end
if i==209 then
gg.alert("已瞬移完毕")
return Ay()
end
end
end
end

function WK3()
i=1
while true do
TeleportA(mapk[i])
gg.setVisible(false)
gg.toast("第"..i.."个坐标")
gg.sleep(jiange)
gg.clearList()
if gg.isVisible(true) then
gg.clearList()
gg.toast("已停止瞬移")
return Ay()
end
i=i+1
if i==209 then
return WK3()
end
end
end

function WK4()
os.exit()
end

function AA4()
BT=gg.choice({
"清除冻结♻️",
"无限跳跃",
"千刀之刃(拉闸)",
"副本倍功(建议微调)",
"移动加速",
"鬼跳轻功",
"无限闪避(点击频率不能过快)",
},0,"⚠️部分功能不稳定,请勿滥用\n🔰加载地图时请清除冻结,否则容易闪退")
if BT==nil then Ay() end
if BT==1 then BT1() end
if BT==2 then BT2() end
if BT==3 then BT3() end
if BT==4 then BT4() end
if BT==5 then BT5() end
if BT==6 then BT6() end
if BT==7 then BT7() end
end
function BT1()
gg.clearList()
gg.toast("清除成功")
end

function BT2()
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x358}, 1)
gg.edits(addr, {{1,4,0,true}},"无限跳跃")
end

function BT3()
AA=gg.prompt({"攻速倍率:[1;20]"},{5},{"number"})
if AA==nil then Ay() else
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x768,0x758,0x94}, 1)
gg.edits(addr, {{AA[1],16,0},{0,16,128},{1,4,188},{0,4,204}},"千刀之刃")
end
end

function BT4()
AA=gg.prompt({"输入倍率:[1;20]"},{10},{"number"})
if AA==nil then Ay() else
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x768,0xCC8,0x7FC}, 1)
gg.edits(addr, {{AA[1],16,0,true},{AA[1]*0.1,16,36}},"倍功秒杀")
end
end

function BT5()
AA=gg.prompt({"移速倍率:[1;5]"},{3},{"number"})
if AA==nil then Ay() else
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x768,0x15D8}, 1)
gg.edits(addr, {{AA[1],16,0}},"移动加速")
end
end

function BT6()
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x298,0x158}, 1)
gg.edits(addr, {{0.5,16,0,true}},"鬼跳轻功")
end

function BT7()
addr = ReadPointer("libUE4.so:bss", {0xED18,0x0,0x18,0x2078}, 1)
gg.edits(addr, {{3,16,0,true}},"无限闪避")
end

function AA5()
AA=gg.prompt({"间隔设置:(单位:秒)"},{jiange/1000},{"number"})
if AA==nil then Ay() else
AY="YY="..'"'..AA[1]..'"'.."\n--开源模板"
io.open(PTP,"w"):write(AY)
jiange=AA[1]*1000
gg.toast("设置成功")
end
end

function AA6()
XW=gg.choice({
"搜索歌曲",
"歌曲列表",
"热歌排行",
"停止播放",
},0,"网易云音乐")
if XW == nil then end
if XW == 1 then Mc() end
if XW == 2 then Play(gqlb,idb) end
if XW == 3 then xmyinyue() end
if XW == 4 then Stop() end
end

function xmyinyue()
xmmenu = gg.choice({
"网易热歌榜",
"网易新歌榜",
"网易飙升榜",
"网易抖音榜",
"网易电音榜",
"网易云热评",
},0,"随机一曲")
if xmmenu==nil then end
if xmmenu==1 then rege() end
if xmmenu==2 then xinge() end
if xmmenu==3 then biaosheng() end
if xmmenu==4 then douyin() end
if xmmenu==5 then dianyin() end
if xmmenu==6 then reping() end
end

function rege()
Obtain1=gg.makeRequest(Y1).content
muchen=Obtain1:match('url":"(.-)","picurl')
gg.playMusic(muchen)
end

function xinge()
Obtain2=gg.makeRequest(Y2).content
muchen=Obtain2:match('url":"(.-)","picurl')
gg.playMusic(muchen)
end

function biaosheng()
Obtain3=gg.makeRequest(Y3).content
muchen=Obtain3:match('url":"(.-)","picurl')
gg.playMusic(muchen)
end

function douyin()
Obtain4=gg.makeRequest(Y4).content
muchen=Obtain4:match('url":"(.-)","picurl')
gg.playMusic(muchen)
end

function dianyin()
Obtain5=gg.makeRequest(Y5).content
muchen=Obtain5:match('url":"(.-)","picurl')
gg.playMusic(muchen)
end

function reping()
Comment=gg.makeRequest(Y6).content
X=gg.alert(Comment,"复制热评")
if X==1 then gg.copyText(Comment) else
return xmyinyue()
end
end
------
--搜索歌曲
function start(name,sl)
fw=gg.makeRequest("http://music.163.com/api/search/get?s="..name.."&type=1&offset=0&total=true&limit="..sl)
return fw
end
-----
--歌词
function Lyric(gid)
geci=gg.makeRequest("http://music.163.com/api/song/media?id="..gid).content
geci = string.gsub(geci, "%[%d%d%p%d%d%p%d%d%d%]", "")
geci = string.gsub(geci, "%[%d%d%p%d%d%p%d%d%]", "")
geci = string.gsub(geci, "%[%d%d%p%d%d%p%d%]", "")
geci=zjson(geci)
return geci.lyric
end
--播放音乐
function play(id,name)
gg.toast("正在播放音乐:"..name,true)
gg.playMusic("http://music.163.com/song/media/outer/url?id="..id..".mp3")
end
--停止播放
function Stop()
gg.playMusic(stop)
gg.toast("播放已停止")
end
----
function Play(gqlb,idb)
SN = gg.choice(gqlb,nil,ts)
if SN == nil then XGCK =-1 else
sn=gg.choice({"播放音乐","查看歌词"},nil,"歌曲:"..gqlb[SN])
if sn == nil then end
if sn == 1 then
play(idb[SN],gqlb[SN])
end
if sn == 2 then
gc=Lyric(idb[SN])
gg.alert(gc)
end
end
XGCK=-1
end

function zjson(jsonr)
local str = jsonr
local pattern = "\"[%w]+\":"
string.gsub(str, pattern, function(v)
if string.find(str, v) then
str = string.gsub(str, v, string.gsub(v, "\"", ""))
end
end)
str = string.gsub(str, ":", "=")
str = string.gsub(str, "%[", "{")
str = string.gsub(str, "%]", "}")
local data = "return " .. str
local res = load(data)()
return res
end

function json(con)
res=zjson(con)
zd=res.result.songCount
pd=go3-zd
if pd <= 0 then else go3=zd end
ts="关于["..go1.."]找到"..zd.."首歌曲,当前显示"..go3.."首"
gqlb={}
idb={}
for i=1,go3 do
gqlb[i]=res.result.songs[i].name
idb[i]=res.result.songs[i].id
end
end

function Mc()
search = gg.prompt({
"输入歌曲关键词",
"设置歌曲显示量",
},g.sel,{
"text",
"text",
})
if search == nil then AA6() else
gg.saveVariable(search,g.config)
bei()
go1=search[1]
go3=search[2]
jg=start(go1,go3)
if jg.code == 200 then
fh=jg.content
fh=json(fh)
Play(gqlb,idb)
else
function inspect()
gg.alert("访问网络异常,错误代码:\n\n"..jg.code)
end
if not pcall(inspect) then print("网络异常,请先连接上网络") os.exit(gg.setVisible(true)) end
end
end
end

while true do
if gg.isVisible(true) then
gg.setVisible(false)
gg.clearResults()
Ax = nil
end
if Ax == nil then
Ay()
end
end

标签

发表评论