以下脚本坐标,颜色是在1024*768,全屏,32色取得,注释是我编辑话题时添加的
VBSCall a=GetPixelColor(183,57) //在血条50%处取得颜色a
Rem start //标记开始
IfColor 183,57,a,1 //183,57颜色不等于a
KeyPress 69,1 //按键E,补血
Delay 500
EndIf
KeyPress 81,1 //Q键,自动寻找最近的怪(游戏功能键)
Delay 200
KeyPress 49,1 //按键1,释放打怪技能
Delay 500
For 20 //循环20次(应付游戏自动卡死挂机的现象)
Delay 1000
IfColor 433,27,a,1 //怪物血条边缘的颜色不等于a,
Delay 500
KeyPress 32,1 //空格拣物品
Delay 500
Goto start //返回开始处
Else
KeyPress 49,1 //按键1,打怪技能
Delay 200
EndIf
EndFor //循环结束
KeyPress 87,1 //W键前进
Delay 200
Goto start //返回START
 |
点这里复制本页地址发送给您QQ/MSN上的好友 |
|