• 新浪微博:
  • 按键公众号 :
按键精灵电脑版
立即下载

软件版本:2014.06
软件大小:22.9M
更新时间:03-18

按键精灵安卓版
立即下载

软件版本:3.7.0
软件大小:46.2M
更新时间:03-02

按键精灵iOS版
立即下载

软件版本:1.7.7
软件大小:29.2M
更新时间:12-06

按键手机助手
立即下载

软件版本:3.7.7
软件大小:262M
更新时间:08-06

快捷导航

登录 后使用快捷导航
没有帐号? 注册

返回列表 12345678» / 94
发新话题 回复该主题

[脚本源码] 【源码分享】《热血传奇》自动打怪,自动读取屏幕坐标,自动寻怪 [复制链接]

1#
首先非常感谢我们可爱、伟大的plutus914童鞋分享了按键盒子《热血传奇》游戏脚本源码,鲜花小橙已送上,欢迎大家也来送鲜花
您所在的用户组无法下载或查看附件
哈!


<<<原帖子链接showtopic.aspx?topicid=555171&forumpage=1&page=1

<<<按键盒子:是一款能自动按键鼠标的硬件,支持所有网络游戏,可以实现自动打怪,自动任务且不会被检测封号。

视频教程分享
***** 该内容需您回复才可浏览 *****
脚本源码分享
  1. Rem kaishi

  2. //中心点坐标

  3. x=497

  4. y=245

  5. //设置2点间距离

  6. v=20

  7. //设置圈数

  8. q=20

  9. //开始

  10. i=1

  11. While i<=q

  12. j=0

  13. k=v

  14. n=2

  15. While n>0

  16. m=i

  17. While m>0

  18. x=x+j

  19. y=y+k
  20. //检测血条

  21. FindMultiColor x,y,x+30,y+30,&H000000,"1|0|000000,2|0|000000,-1|1|000000,0|1|0000FF,-1|2|000000,0|2|0000FF,0|3|000000,1|3|000000,2|3|000000",0,1.0,X2,Y2
  22. If X2 > 0
  23. MoveToEx x2+15,y2+53
  24. Delay 100

  25. //黑野猪
  26. FindMultiColor x2-10,y2,x2+34,y2+65,&HFEFEFE,"8|0|FEFEFE,11|0|FEFEFE,21|0|FEFEFE,0|4|FFFFFF,8|4|FFFFFF,-1|10|FEFEFE,9|10|FEFEFE,11|10|FEFEFE,18|10|FEFEFE",0,1.0,X1,Y1
  27. If X1 > 0
  28. LeftClick 1
  29. goto kaishi

  30. End If
  31. //黑色恶蛆
  32. FindMultiColor x2-10,y2,x2+34,y2+65,&HFDFDFD,"9|0|222222,14|0|FDFDFD,19|3|FEFEFE,0|4|FEFEFE,8|4|FFFFFF,11|4|FDFDFD,12|6|FEFEFE,19|6|FFFFFF,21|8|FDFDFD,-1|10|FDFDFD,9|10|FDFDFD,13|10|FDFDFD",0,1.0,X1,Y1
  33. If X1 > 0
  34. LeftClick 1
  35. goto kaishi
  36. End If
  37. //蝎蛇
  38. FindMultiColor x2-10,y2,x2+34,y2+65,&HFDFDFD,"3|0|FDFDFD,7|0|FEFEFE,17|0|FDFDFD,18|1|FDFDFD,-2|2|FDFDFD,1|2|FEFEFE,10|3|FDFDFD,14|3|FEFEFE,20|3|FEFEFE,3|4|FEFEFE,7|4|FFFFFF,19|5|FDFDFD,14|8|FDFDFD,20|8|FDFDFD,-2|9|FDFDFD,7|10|FDFDFD,8|10|FFFFFF,10|10|FDFDFD,14|10|FEFEFE,16|10|FEFEFE,20|10|FFFFFF",0,1.0,X1,Y1
  39. If X1 > 0
  40. LeftClick 1
  41. goto kaishi
  42. End If
  43. //蝙蝠
  44. FindMultiColor x2-10,y2,x2+34,y2+65,&HFDFDFD,"5|0|FDFDFD,2|1|FDFDFD,8|1|FEFEFE,-2|2|FDFDFD,8|3|FFFFFF,2|5|FEFEFE,8|5|FEFEFE,-2|6|FEFEFE,8|7|FFFFFF,-2|9|FDFDFD,7|10|FDFDFD",0,1.0,X1,Y1
  45. If X1 > 0
  46. LeftClick 1
  47. goto kaishi
  48. End If
  49. //楔蛾
  50. FindMultiColor x2-10,y2,x2+34,y2+65,&HFDFDFD,"12|0|FDFDFD,17|0|FDFDFD,9|1|FEFEFE,15|1|FDFDFD,20|1|FEFEFE,-1|2|FDFDFD,2|2|FEFEFE,7|5|FDFDFD,8|5|FEFEFE,-1|6|FEFEFE,0|10|FEFEFE,9|10|FEFEFE,16|10|FFFFFF,21|10|FEFEFE",0,1.0,X1,Y1
  51. If X1 > 0
  52. LeftClick 1
  53. goto kaishi
  54. End If
  55. //角蝇
  56. FindMultiColor x2-10,y2,x2+34,y2+65,&HFDFDFD,"4|1|FEFEFE,-2|3|FDFDFD,6|3|FEFEFE,-3|4|FDFDFD,4|5|FEFEFE,-3|10|FDFDFD,2|10|FEFEFE,4|10|FDFDFD,6|10|FFFFFF",0,1.0,X1,Y1
  57. If X1 > 0
  58. LeftClick 1
  59. goto kaishi
  60. End If
  61. //红野猪
  62. FindMultiColor x2-10,y2,x2+34,y2+65,&HFEFEFE,"2|1|FEFEFE,5|1|FEFEFE,8|1|FEFEFE,-2|3|FEFEFE,-2|4|FFFFFF,0|4|FEFEFE,-2|7|FEFEFE,-2|10|FEFEFE,2|10|FEFEFE,8|10|FEFEFE",0,1.0,X1,Y1
  63. If X1 > 0
  64. LeftClick 1
  65. goto kaishi
  66. End If
  67. End If
  68. m=m-1
  69. Wend
  70. j=v
  71. k=0
  72. n=n-1
  73. Wend
  74. i=i+1
  75. v=0-v
  76. Wend
  77. //捡钱
  78. FindMultiColor 240,90,1040,537,&HF5CCA3,"16|0|F6CDA4,7|1|F5CCA3,-5|4|F5CCA3,-4|4|F6CDA4,4|4|F5CCA3,5|4|F6CDA4,8|9|F6CDA4,-5|10|F5CCA3,5|10|F6CDA4",0,1.0,X,Y
  79. If X > 0
  80. MoveToex x+10,y+6
  81. LeftClick 1
  82. Goto kaishi
  83. End If
  84. //下面这段是读取屏幕右上角坐标
  85. //用多点找色功能,找到屏幕右上角的冒号,并定位起点坐标
  86. FindMultiColor 872,110,888,117,&H212121,"-1|1|212121,0|1|FDFDFD,1|1|222222,0|2|222223,0|5|212122,-1|6|222222,0|6|FDFDFD,1|6|222222,0|7|222222",0,0.9,X,Y
  87. If X > 0
  88. qszsx=x-16
  89. qszsy=y-3
  90. qsyxx=x-9
  91. qsyxy=y+8
  92. Else
  93. MessageBox meizhaodaomaohao

  94. End If
  95. a=0
  96. b=0
  97. i=0
  98. //石墓阵的坐标较小,X轴和Y轴最大只有两位数,循环4次找到四位的数字,把找到的图片值存到变里4里,如果没有找到数字显示C=11
  99. While i<4
  100. c=11
  101. //用多点找色,找0
  102. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,-1|1|FDFDFD,3|1|FDFDFD,-1|4|FEFEFE,3|4|FEFEFE,-1|6|FEFEFE,0|7|FDFDFD,2|7|FEFEFE",0,0.9,X,Y
  103. If X > 0
  104. c=0
  105. End If
  106. //找1
  107. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"-1|1|FDFDFD,0|1|FFFFFF,0|2|FEFEFE,0|3|FEFEFE,0|5|FEFEFE,0|6|FEFEFE,-1|7|FDFDFD,0|7|FFFFFF,1|7|FEFEFE",0,0.9,X,Y
  108. If X > 0
  109. c=1
  110. End If
  111. //找2
  112. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,-1|1|FDFDFD,-1|2|FEFEFE,2|3|FDFDFD,0|5|FDFDFD,-1|6|FDFDFD,-1|7|FEFEFE,1|7|FEFEFE,3|7|FEFEFE",0,0.9,X,Y
  113. If X > 0
  114. c=2
  115. End If
  116. //找3
  117. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,-1|1|FDFDFD,3|1|FDFDFD,3|2|FEFEFE,1|3|FDFDFD,2|3|FEFEFE,3|4|FDFDFD,-1|6|FDFDFD,0|7|FDFDFD",0,0.9,X,Y
  118. If X > 0
  119. c=3
  120. End If
  121. //找4
  122. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"-1|1|FDFDFD,-2|2|FDFDFD,-2|3|FEFEFE,-3|4|FDFDFD,-2|5|FDFDFD,1|5|FEFEFE,0|6|FEFEFE,0|7|FEFEFE,1|7|FEFEFE",0,0.9,X,Y
  123. If X > 0
  124. c=4
  125. End If
  126. //找5
  127. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"1|0|FEFEFE,4|0|FEFEFE,0|3|FEFEFE,3|3|FEFEFE,4|4|FDFDFD,0|6|FDFDFD,4|6|FEFEFE,1|7|FDFDFD,3|7|FEFEFE",0,0.9,X,Y
  128. If X > 0
  129. c=5
  130. End If
  131. //找6
  132. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,2|1|FEFEFE,-1|3|FEFEFE,2|3|FEFEFE,3|4|FDFDFD,-1|6|FEFEFE,3|6|FEFEFE,0|7|FDFDFD,2|7|FEFEFE",0,0.9,X,Y
  133. If X > 0
  134. c=6
  135. End If

  136. //找7
  137. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"3|0|FEFEFE,4|0|FEFEFE,0|1|FEFEFE,3|1|FEFEFE,3|2|FEFEFE,2|3|FDFDFD,2|4|FEFEFE,2|5|FEFEFE,2|7|FEFEFE",0,0.9,X,Y
  138. If X > 0
  139. c=7
  140. End If

  141. //找8
  142. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,-1|1|FDFDFD,3|1|FDFDFD,0|3|FDFDFD,2|3|FEFEFE,-1|4|FDFDFD,3|4|FDFDFD,0|7|FDFDFD,2|7|FEFEFE",0,0.9,X,Y
  143. If X > 0
  144. c=8
  145. End If

  146. //找9
  147. FindMultiColor qszsx+a,qszsy,qsyxx+b,qsyxy,&HFDFDFD,"2|0|FEFEFE,-1|2|FEFEFE,3|2|FEFEFE,-1|3|FEFEFE,3|3|FEFEFE,0|6|FDFDFD,3|6|FEFEFE,0|7|FEFEFE,2|7|FEFEFE",0,0.9,X,Y
  148. If X > 0
  149. c=9
  150. End If

  151. //第一次循环,获取十位数的值
  152. If i=0
  153. sx=c
  154. endif

  155. //因为数字中间有冒号,占了3个像数,第二次循环完以后,起始坐标左上x和起始右下x加3
  156. If i=1
  157. gx=c
  158. a=a+3
  159. b=b+3
  160. endif
  161. //第三次循环的值存入变量SY
  162. If i=2
  163. sy=c
  164. endif
  165. //第四次循环的值存入变量GY
  166. If i=3
  167. gy=c
  168. endif
  169. //每次循环完,坐标左上x和右下x加7
  170. i=i+1
  171. a=a+7
  172. b=b+7
  173. Wend
  174. If sx=11
  175. x=gx
  176. Else
  177. x=sx*10+gx

  178. endif

  179. If sy=11
  180. y=sy
  181. Else
  182. y=sy*10+gy

  183. endif


  184. //找怪

  185. If x<15
  186. If y>15
  187. If y<30
  188. movetoex 584,173
  189. RightClick 1
  190. Delay 1000
  191. Goto kaishi

  192. endif
  193. endif
  194. If y>30
  195. If y<45
  196. movetoex 584,173
  197. RightClick 1
  198. Delay 1000
  199. Goto kaishi
  200. endif
  201. endif
  202. endif
  203. If x>15
  204. If x<30
  205. If y<15
  206. MoveToEx 507,407
  207. RightClick 1
  208. Delay 1000
  209. Goto kaishi
  210. endif
  211. If y>15
  212. If y<30
  213. MoveToEx 503,113
  214. RightClick 1
  215. Delay 1000
  216. Goto kaishi
  217. endif
  218. endif
  219. If y>30
  220. If y<45
  221. MoveToEx 150,276
  222. RightClick 1
  223. Delay 1000
  224. Goto kaishi
  225. endif
  226. endif

  227. endif
  228. endif
  229. If x>30
  230. If x<45
  231. If y<15
  232. MoveToEx 503,393
  233. RightClick 1
  234. Delay 1000
  235. Goto kaishi
  236. endif
  237. If y>15
  238. If y<30
  239. MoveToEx 503,393
  240. RightClick 1
  241. Delay 1000
  242. Goto kaishi
  243. endif

  244. endif
  245. If y>30
  246. If y<45
  247. MoveToEx 400,160
  248. RightClick 1
  249. Delay 1000
  250. Goto kaishi
  251. endif
  252. endif
  253. endif
  254. endif
复制代码

    已有5评分我要评分查看所有评分

    本主题由 超级版主 瑞祥幽冥狼 于 2022/12/4 20:45:34 执行 审核帖子 操作
    想学习如何制作脚本吗?先来测测自己脚本技术水平吧!
    【点击进行测验】
    2#

    gterterertwerwerwe

    3#

    xuexixia

    4#

    非常感谢非常感谢

    5#

    好厉害的样子,找字,多点找色,和分辨率有没有关系啊?

    &lt;a href=&quot;http://bbs.anjian.com/thread-576954-1-1.html&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;font size=&quot;4&quot;&gt;按键精灵14周年庆典火热进行中!点击领奖&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;
    6#

    盒子专用代码

    <img id="aimg_jwQDr" onclick="zoom(this, this.src, 0, 0, 0)" class="zoom" src="http://wpa.qq.com/pa?p=1:6617759:6" onmouseover="img_onmouseoverfunc(this)" onload="thumbImg(this)" border="0" alt="" /><br />
    <a href="http://wpa.qq.com/msgrd?V=1&Uin=6617759&Site=按键精灵官方&Menu=yes" target="_blank">点击这里给我发送消息</a>
    7#

    本帖最后由 hack1230 于 2015-1-8 12:47 编辑

    真的思路真好,飞起

    承接各种类型脚本定做,价钱公道 QQ:284856769
    8#

    过来学习了,希望有知道意义

    9#

    果断顶个学习下

    10#

    不错啊~~~

    Q228293067
    11#

    如此神器,顶一个

    12#

    支持你,妹儿。

    13#

    动读取屏幕坐标,自

    14#

    是一款能自动按

    15#

    dsadsadsadsadasdasdasd

    16#

    的顶顶顶顶顶顶顶顶顶顶大

    17#

    强……………

    18#

    正好需要

    19#


    20#

    大工程

    发新话题 回复该主题