奇迹按键精灵挂机脚本_奇迹挂机捡东西脚本

首先声明:本人属于菜鸟级别,纯手动自己编写,大神可给出简化思路.玩奇迹多年,一直盯着屏幕看东西太累了,做个简单脚本让角色自己捡东西,定点刷怪(捡东西后回定点坐标),误捡物品自动扔出,脚本比较啰嗦,希望对新人能有帮助。

我是使用的大漠插件,识别奇迹里的坐标及掉物品名称,字库附后,游戏分辨率800*600

有兴趣的可以留言讨论。字库文件要放到E:\damo2\

[hide]

Set dm = createobject("dm.dmsoft")

dm.setpath "E:\damo2"

dm.setdict 0, "mu3.txt"

hwnd = dm.getmousepointwindow()

dm_ret = dm.BindWindow(hwnd, "normal", "normal", "normal", 0)

Delay 200

s = dm.Ocr(19,3,41,17, "ffffff-000000", 1.0)

t = dm.Ocr(41,2,66,19, "ffffff-000000", 1.0)

x1 = s + 1

x2 = s - 1

y1 = t + 1

y2 = t - 1

yidong = 0

anjian = 50

Rem a

If yidong - 40 > 0 Then

yidong = 0

Goto w

End If

dm_ret = dm.findstr(0, 0, 2000, 2000, "雅|宝|石|祝|再|生|守|国|创", "ffcc19-000000", 1.0, intx, inty)

If intx > 0 Then

dm.RightUp

Delay 100

dm.moveto intx + yidong, inty + 30

Delay 100

dm_ret = dm.findstr(0, 0, 2000, 2000, "雅|宝|石|祝|再|生|守|国|创", "ffcc19-000000", 1.0, intx2, inty2)

daxiao = inty - inty2

If daxiao = 0 Then

yidong = yidong + 10

dm.leftclick

Delay 50

Goto a

Else

Delay 150

dm.leftdown

Delay 80

dm.leftup

Delay 1800

yidong = yidong + 10

Goto a

End If

Else

Goto b

End If

Rem b

If yidong - 60 > 0 Then

yidong = 0

Got

你可能感兴趣的:(奇迹按键精灵挂机脚本)