游戏精英
 
- 贡献度
- 21
- 金元
- 65977
- 积分
- 6682
- 精华
- 0
- 注册时间
- 2017-5-3
|
- MouseR = 3 --是否启用鼠标右键 ( 0 禁用 1 循环 2 为右键上马 3为左键上马 )
- Move = 1 --是否启用强制移动( 游戏中设置 5 为强制移动 )( 0禁用 1 启用 )
- Time1 = 600 --按键 1 间隔 ( 天谴间隔 自行修改 数值为10的倍数 )
- Time2 = 80 --按键 2 间隔 ( 数值为10的倍数 )
- Time3 = 80 --按键 3 间隔 ( 数值为10的倍数 )
- Time4 = 80 --按键 4 间隔 ( 数值为10的倍数 )
- Time5 = 80 --按键 5 间隔 ( 数值为10的倍数 )
- TimeR = 80 --鼠标右键间隔 ( 数值为10的倍数 )
- LoopX = 10 --循环系数 默认10
- function OnEvent(event, arg, family)
- while MouseR == 2 and IsKeyLockOn("capslock") do
- PressAndReleaseKey("5")
- PressAndReleaseMouseButton(3)
- Sleep(50)
- end
- while MouseR == 3 and IsKeyLockOn("capslock") do
- PressAndReleaseKey("5")
- PressKey("6")
- PressAndReleaseMouseButton(1)
- ReleaseKey("6")
- Sleep(50)
- end
- if IsKeyLockOn("scrolllock") and not IsKeyLockOn("capslock") then
- PressAndReleaseKey("1","2","3","4")
- if Move == 1 then
- PressAndReleaseKey("5")
- end
- if MouseR == 1 or MouseR == 3 then
- PressAndReleaseMouseButton(3)
- end
- T1 = 0
- T2 = 0
- T3 = 0
- T4 = 0
- T5 = 0
- TR = 0
- end
- while IsKeyLockOn("scrolllock") and not IsKeyLockOn("capslock") do
- Sleep(10)
- T1 = T1 + 1
- T2 = T2 + 1
- T3 = T3 + 1
- T4 = T4 + 1
- if Move == 1 then
- T5 = T5 + 1
- end
- if MouseR == 1 or MouseR == 3 then
- TR = TR + 1
- end
- if (T1*LoopX) == Time1 then
- PressAndReleaseKey("1")
- T1 = 0
- end
- if (T2*LoopX) == Time2 then
- PressAndReleaseKey("2")
- T2 = 0
- end
- if (T3*LoopX) == Time3 then
- PressAndReleaseKey("3")
- T3 = 0
- end
- if (T4*LoopX) == Time4 then
- PressAndReleaseKey("4")
- T4 = 0
- end
- if Move == 1 then
- if (T5*LoopX) == Time5 then
- PressAndReleaseKey("5")
- T5 = 0
- end
- end
- if MouseR == 1 or MouseR == 3 then
- if (TR*LoopX) == TimeR then
- PressAndReleaseMouseButton(3)
- TR = 0
- end
- end
- end
- end
|
|