我想用按键精灵写一个自动打怪和NPC对话的脚本,但是提示我错误 请老鸟帮我看看 帮我看看改改 谢谢!
答案:1 悬赏:40
解决时间 2021-10-25 15:41
- 提问者网友:末路
- 2021-10-24 19:04
我想用按键精灵写一个自动打怪和NPC对话的脚本,但是提示我错误 请老鸟帮我看看 帮我看看改改 谢谢!
最佳答案
- 二级知识专家网友:鸽屿
- 2021-10-24 20:12
Sub 自动战斗()
Rem 选怪
KeyPress "Tab", 1
IfColor 1047,250,"FF1E",0 Then
Call 打完收工()
Else Rem 开打
KeyPress "1", 1
Delay 100
KeyPress "2", 1
IfColor 305,978,"361F9C",0 Then
Else
KeyPress "F1", 1
End If
IfColor 936,986,"908A1E",0 Then
Else
KeyPress "F2", 1
End If
Delay 800
KeyPress "3", 1
Delay 800
KeyPress "4", 1
Delay 800
KeyPress "5", 1
Delay 800
KeyPress "6", 1
Delay 800
IfColor 584,57,"7FB8C1",0 Then
Goto 开打
Goto 选怪
End If
End If
End Sub Sub 打完收工()
Call 交接任务()
Call 交接任务2()End Sub
Sub 交接任务()
MoveTo 213, 451
LeftClick 1
MoveTo 590, 721
Delay 1000
LeftClick 1
End Sub Sub 交接任务2()
MoveTo 213, 451
Delay 100
LeftClick 1
MoveTo 590, 721
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
End Sub 不知道能不能用, 你试试吧, 你写的太乱了,我看的都有点糊涂,调试时没有问题的,你自己看在游戏里面能不能用。不能用的话再问,大概说一下你的思路,你到底想怎么去做。
Rem 选怪
KeyPress "Tab", 1
IfColor 1047,250,"FF1E",0 Then
Call 打完收工()
Else Rem 开打
KeyPress "1", 1
Delay 100
KeyPress "2", 1
IfColor 305,978,"361F9C",0 Then
Else
KeyPress "F1", 1
End If
IfColor 936,986,"908A1E",0 Then
Else
KeyPress "F2", 1
End If
Delay 800
KeyPress "3", 1
Delay 800
KeyPress "4", 1
Delay 800
KeyPress "5", 1
Delay 800
KeyPress "6", 1
Delay 800
IfColor 584,57,"7FB8C1",0 Then
Goto 开打
Goto 选怪
End If
End If
End Sub Sub 打完收工()
Call 交接任务()
Call 交接任务2()End Sub
Sub 交接任务()
MoveTo 213, 451
LeftClick 1
MoveTo 590, 721
Delay 1000
LeftClick 1
End Sub Sub 交接任务2()
MoveTo 213, 451
Delay 100
LeftClick 1
MoveTo 590, 721
Delay 1000
LeftClick 1
Delay 1000
LeftClick 1
End Sub 不知道能不能用, 你试试吧, 你写的太乱了,我看的都有点糊涂,调试时没有问题的,你自己看在游戏里面能不能用。不能用的话再问,大概说一下你的思路,你到底想怎么去做。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯