//屏幕中心点X坐标
x=720
//屏幕中心点Y坐标
y=450
//圈数
n=5
//间距
k=50
//--------------------------
Rem 开始搜怪
x1=x
y1=y
x2=x
y2=y
x3=x
y3=y
x4=x
y4=y
x1=x1-k
x2=x2+k
x3=x3+k
x4=x4-k
y1=y1-k
y2=y2-k
y3=y3+k
y4=y4+k
j=0
While x1 < x2
//计算出x1,y1后,先取x1,y1点的颜色赋值到c1
c1=GetPixelColor(x1,y1)
MoveToEx x1,y1
Delay 1
//移动到x1,y1延时1毫秒后再次取x1,y1点的颜色并赋值到c2
c2=GetPixelColor(x1,y1)
If c1<>c2 Then
//打怪代码
Delay 1000
//打完怪后再重新开始搜索
Goto 开始搜怪
End If
j=j+1
x1=x1+n*j
Delay 1
wend
j=0
While y2 < y3
c1=GetPixelColor(x2,y2)
MoveToEx x2,y2
Delay 1
c2=GetPixelColor(x2,y2)
If c1<>c2 Then
//打怪代码
Delay 1000
Goto 开始搜怪
End If
j=j+1
y2=y2+n*j
Delay 1
wend
j=0
While x3 > x4
c1=GetPixelColor(x3,y3)
MoveToEx x3,y3
Delay 1
c2=GetPixelColor(x3,y3)
If c1<>c2 Then
//打怪代码
Delay 1000
Goto 开始搜怪
End If
j=j+1
x3=x3-n*j
Delay 1
wend
j=0
While y4 > y1
c1=GetPixelColor(x4,y4)
MoveToEx x4,y4
Delay 1
c2=GetPixelColor(x4,y4)
If c1<>c2 Then
//打怪代码
Delay 1000
Goto 开始搜怪
End If
j=j+1
y4=y4-n*j
Delay 1
wend
k=k+50
if k<300
Goto 开始搜怪
End If
EndScript