火线精英手游gg脚本开源代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
--瞬移用法:
--[[
先进去对局
然后初始化
然后开始瞬移
瞬移要站平地上
不要站在某些物品上
--]]
--功能用法:
--[[
子弹穿墙:开一次,全局有效
全屏自瞄:一局一开,可能闪退
--]]
function getValues(address,flag)
t={}
t[1]={}
t[1].address=address
t[1].flags=flag
t=gg.getValues(t)
return t[1].value
end
function setValues(address,flag,value,freeze)
t={}
t[1]={}
t[1].address=address
t[1].flags=flag
t[1].value=value
gg.setValues(t)
end
function freezeValues(address,flag,value,freeze)
t={}
t[1]={}
t[1].address=address
t[1].flags=flag
t[1].value=value
t[1].freeze=freeze
gg.addListItems(t)
end
addr=0
value=""
while true do
if gg.isVisible(true) then
XGCK=1
gg.setVisible(false)
end
if XGCK==1 then
menu=gg.choice({
"『酷跑初始』",
"『酷跑传送』",
"『子弹穿墙』",
"『全屏自瞄』",
"『退出腳本』"},nil,value)
if menu==1 then
gg.clearResults()
gg.setRanges(32)
gg.searchNumber("269967078",4)
result=gg.getResults(gg.getResultCount())
for k,v in pairs(result)do
if getValues(v.address-108,4)==0 then
if getValues(v.address+36,16)==1.875 then
if getValues(v.address+4,4)==996030752 then
if getValues(v.address+104,4)==0 then
value=getValues(v.address+68,16)
addr=v.address
freezeValues(v.address+68,16,getValues(v.address+68,16),false)
gg.toast(addr)
end
end
end
end
end
end
if menu==2 then
yz=gg.choice({
"『1』",
"『2』",
"『3』",
"『4』",
"『5』",
"『6』",
"『7』",
"『8』",
"『9』",
"『10』",
"『11』",
"『12』",
"『13』"})
if yz==nil then x=nil y=nil z=nil end
if yz==1 then
x=5.01 y=3.9 z=4.66
end
if yz==2 then
x=4.42 y=4.1 z=3.93
end
if yz==3 then
x=4.98 y=4.1 z=3.82
end
if yz==4 then
x=5.05 y=4.5 z=-4.27
end
if yz==5 then
x=4.66 y=4.3 z=-3.9
end
if yz==6 then
x=4.79 y=4.5 z=-3.86
end
if yz==7 then
x=4.91 y=4.73 z=-4.40
end
if yz==8 then
x=4.51 y=4.7 z=-4.27
end
if yz==9 then
x=4.60 y=4.75 z=-3.70
end
if yz==10 then
x=5.00 y=4.75 z=-4.27
end
if yz==11 then
x=4.88 y=4.75 z=-4.66
end
if yz==12 then
x=4.75 y=4.83 z=-3.89
end
if yz==13 then
x=4.75 y=4.83 z=3.91
end
if x~=nil and y~=nil and z~=nil then
setValues(addr+60,16,x)
setValues(addr+68,16,y)
setValues(addr+76,16,z)
gg.toast("传送成功")
end
end
if menu==3 then
gg.clearResults()
gg.setRanges(16384)
gg.searchNumber("1.5",16)
result=gg.getResults(gg.getResultCount())
for k,v in pairs(result)do
if getValues(v.address-4,64)==0.125 then
if getValues(v.address+4,16)==-1.0 then
setValues(v.address,16,20)
gg.toast("子弹穿墙")
end
end
end
end
if menu==4 then
gg.clearResults()
gg.setRanges(32)
gg.searchNumber("1610612736",64)
result=gg.getResults(gg.getResultCount())
for k,v in pairs(result)do
if getValues(v.address+4,16)==27.0 then
if getValues(v.address+12,16)==1.0 then
freezeValues(v.address+4,4,-1,true)
gg.toast("全屏自瞄")
end
end
end
end
if menu==5 then os.exit()end
XGCK=-1
end
end

标签

发表评论