1普通攻击
3拣东西
4技能攻击(一般放宝物的技能)每3秒一次
5+攻击力的状态 技能(1700秒一次,可设置时间)
6自己加血的技能
7打坐
F6 红药水
每1700秒 加一次,攻击状态,到40%左右打坐(在打完怪以后才打坐,中途低于25%HP,吃红),打坐中被动检索是否有怪攻击,并执行反击,自动加血,自动拣东西..写的很简单了,,
1024*768 全屏的了..
//--------------------------------------------- [声明和定义变量]
VBS dim t1
VBS dim t2
VBS t1=now
VBS t2=now
KeyPress 53,1
//--------------------------------------------- [脚本主程序]
Rem [脚本开始运行]
Gosub 打坐
Gosub 状态
Gosub 判断目标
Rem 攻击开始
Gosub HP
Gosub 攻击
Gosub 判断死亡
Goto [脚本开始运行]
Sub 状态
Delay 10
If DateDiff("s",t1,now)>=1700
Delay 200
KeyPress 53,1
VBS t1=now
EndIf
Return 状态
//=======================攻击===========================
Sub 攻击
IfColor 338,41,80cff,2
Delay 100
KeyPress 49,1
Delay 100
Goto 具体攻击
Else
EndIf
Return 攻击
//==========================判断是否有目标怪===================
Sub 判断目标
IfColor 338,41,80cff,2
//==有没有 怪攻击中检测===
Else
Rem TAB
Delay 100
KeyPress 9,1
Delay 800
IfColor 410,41,80cff,2
Delay 10
Else
Delay 100
Goto TAB
EndIf
EndIf
Return 判断目标
//==========================判断怪死了没有===================
Sub 判断死亡
IfColor 338,41,80cff,2
//==有没有 怪攻击中检测===
Goto 攻击开始
Else
Delay 50
KeyPress 51 1
Delay 500
KeyPress 51 1
Delay 500
EndIf
Return 判断死亡
//====================HP 检测=================
Sub HP
IfColor 118,33,4241ff,2
Else
Delay 100
KeyPress 117,1
EndIf
Return HP
Sub 打坐
IfColor 128,33,4241ff,2
Else
Delay 500
KeyPress 54,1
Delay 1200
KeyPress 55,1
Gosub 打坐结果
EndIf
Return 打坐
Sub 具体攻击
IfColor 119,49,de7d39,2
Delay 100
If DateDiff("s",t2,now)>=3
Delay 100
KeyPress 52,1
VBS t2=now
Delay 50
KeyPress 49,1
Else
Delay 50
KeyPress 49,1
EndIf
Else
Delay 200
KeyPress 49,1
Delay 200
EndIf
Return 具体攻击
Sub 打坐结果
Rem 继续
IfColor 180,33,4241ff,2
Delay 200
Else
Delay 500
IfColor 340,41,80cff,2
Delay 200
Goto 攻击开始
Else
EndIf
Goto 继续
EndIf
Return 打坐结果