金币850
积分1702
注册时间2017-6-10
最后登录2024-7-15
|
-- 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
AKHD = {{120, 40}, {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100},
--
{140, 050, 054, 058, 069, 083, 089, 086, 080, 075, 075, 077, 083, 084, 088}}
-- 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
AKSB = {{90, 40}, {80, 80, 80, 80, 80, 80, 80, 80}, {250, 250, 250}}
-- 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
M16HD = {{90, 40}, { 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080, 080},
--
{ 043, 061, 060, 058, 047, 062, 067}}
-- 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
M16SB = {{90, 40}, {80, 80, 80, 80, 80, 80, 80, 80}, {250,250}}
function Yids(y)
local b = y
while (b>0) do
if(b-100>=0)then
MoveMouseRelative(0, 100)
OutputLogMessage("YD-1")
else
MoveMouseRelative(0, b)
OutputLogMessage("YD-2")
end
b=b-100
end
end
function Yaql(X)
local ciuu = X[1][2]
local uijm = 0
local i = 1
while (true) do
if(IsMouseButtonPressed(1)) then
OutputLogMessage(X[2])
PlayMacro("UEJI")
Yids(X[3])
Sleep(X[1][1])
uijm = uijm+X[1][1]
if(uijm>X[2] and i<X[1][2])then
i = i+1
uijm = 0
end
else
break
end
end
end
HD = AKHD
SB = AKSB
YBYS = AKHD
ys = 0
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
if(event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
HD = AKHD
SB = AKSB
OutputLogMessage("AK")
end
if(event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
HD = M16HD
SB = M16SB
OutputLogMessage("M16")
end
if(event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
if IsKeyLockOn("scrolllock") then
YBYS = SB
else
YBYS = HD
end
Yaql(YBYS)
end
end
这组AK的数据,射击间隔120,目前可以实现控制每发子弹,比如说中间的时间控制为{100,100,100,100}的话,控制时长100小于射击间隔120,那么脚本会执行一次循环,也就是点一次射击建,然后下移一次鼠标,大于120,小于等于240的话,会压两次,距离控制与时间间隔对应
AKHD = {{120, 40}, {100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100},
{140, 050, 054, 058, 069, 083, 089, 086, 080, 075, 075, 077, 083, 084, 088}}
AKSB = {{90, 40}, {80, 80, 80, 80, 80, 80, 80, 80}, {250, 250, 250}}
M16HD = {{90, 40}, {},{ 043, 061, 060, 058, 047, 062, 067}}
M16SB = {{90, 40}, {80, 80, 80, 80, 80, 80, 80, 80}, {250,250}}
function Yids(y)
local b = y
while (b>0) do
if(b-100>=0)then
MoveMouseRelative(0, 100)
OutputLogMessage("YD-1")
else
MoveMouseRelative(0, b)
OutputLogMessage("YD-2")
end
b=b-100
end
end
function Yaql(X)
local ciuu = X[1][2]
local uijm = 0
local i = 1
while (true) do
if(IsMouseButtonPressed(1)) then
OutputLogMessage(X[2])
PlayMacro("UEJI")
Yids(X[3])
Sleep(X[1][1])
uijm = uijm+X[1][1]
if(uijm>X[2] and i<X[1][2])then
i = i+1
uijm = 0
end
else
break
end
end
end
HD = AKHD
SB = AKSB
YBYS = AKHD
ys = 0
EnablePrimaryMouseButtonEvents(true)
function OnEvent(event, arg)
if(event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
HD = AKHD
SB = AKSB
OutputLogMessage("AK")
end
if(event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
HD = M16HD
SB = M16SB
OutputLogMessage("M16")
end
if(event == "MOUSE_BUTTON_PRESSED" and arg == 1) then
if IsKeyLockOn("scrolllock") then
YBYS = SB
else
YBYS = HD
end
Yaql(YBYS)
end
end
鼠标4号键位,切换AK数据,5号键位切换M16数据,打开SCROLLLOCK灯以后,为4倍镜的数据
|
|