Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.89 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6.  
  7. CoordMode, Tooltip
  8.  
  9. CoordMode, Pixel
  10.  
  11. CoordMode, Mouse
  12. F5::exitapp
  13. Restart:
  14. F2:: ;AutoSetup
  15. {
  16. opstart = 1
  17. i = 0
  18. fejl = 0
  19. loop1 = 0
  20.  
  21. MASER_START = 1
  22.  
  23. while MASER_START = 1{
  24.  
  25. while opstart = 1 and fejl = 0{
  26. Run, C:\ZG farm wow\WoW1.exe
  27. WinWaitActive, World of Warcraft
  28. WinSetTitle, WoW1
  29.  
  30. Run, C:\ZG farm wow\WoW2.exe
  31. WinWaitActive, World of Warcraft
  32. WinSetTitle, WoW2
  33.  
  34. Run, C:\ZG farm wow\WoW3.exe
  35. WinWaitActive, World of Warcraft
  36. WinSetTitle, WoW3
  37.  
  38. fejl = 0
  39. i = 0
  40. login3 = 1
  41. opstart = 0
  42. loop1 = 0
  43. login1 = 1
  44. login2 = 1
  45. venter = 0
  46. inviterOFF = 0
  47. }
  48. Login_Farm:
  49. while login3 = 1{
  50. if(i > 3){
  51. login3 = 0
  52. fejl = 1
  53. }else{
  54.  
  55. Sleep, 1000
  56. WinActivate WoW3
  57. Sleep, 100
  58. Send, xdee ;account_name
  59. Sleep, 200
  60. Send, {Tab}
  61. Sleep, 200
  62. Send, 123random ;password
  63. Sleep, 200
  64. Send, {Enter}
  65. Sleep, 4000
  66.  
  67.  
  68. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
  69. If(ErrorLevel == 0){
  70. i++
  71. sleep, 200
  72. Send, {Escape}
  73. Sleep, 200
  74. Send, {Tab}
  75. goto Login_Farm
  76.  
  77. }
  78. else{
  79. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
  80. If(ErrorLevel == 0){
  81. sleep, 500
  82. Send, {Enter}
  83. sleep, 5000
  84.  
  85. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\grupperscreen.bmp
  86. If(ErrorLevel == 0){
  87. i = 0
  88. Send, {1}
  89. sleep, 1000
  90. login3 = 0
  91. loop1 = 1
  92.  
  93. }
  94. }
  95. else{
  96. i++
  97. sleep, 200
  98. Send, {Escape}
  99. Sleep, 200
  100. Send, {Tab}
  101. goto Login_Farm
  102. }
  103. }
  104. }
  105.  
  106. }
  107.  
  108. if (loop1 = 1 and fejl = 0){
  109. WinActivate WoW2
  110. Sleep, 300
  111. Send, {Enter}
  112. Sleep, 300
  113. WinActivate WoW1
  114. Sleep, 300
  115. Send, {Enter}
  116.  
  117. Farm:
  118. while loop1 = 1 and fejl = 0{
  119. if WinActive("WoW1"){
  120. sleep, 200
  121. WinActivate WoW2
  122. Fejl1:
  123. while login2 = 1{
  124. if(i > 3){
  125. login2 = 0
  126. fejl = 1
  127. }
  128. else{
  129. Sleep, 200
  130. Send, {Enter}
  131. Sleep, 200
  132. Send, mikkelcom ;account_name
  133. Sleep, 200
  134. Send, {Tab}
  135. Sleep, 200
  136. Send, xd123 ;password
  137. Sleep, 200
  138. Send, {Enter}
  139.  
  140. Sleep, 2000
  141. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
  142. if (ErrorLevel == 0){
  143. i++
  144. sleep, 50
  145. send, {Escape}
  146. sleep, 10
  147. send, {Tab}
  148. sleep, 10
  149. send, {Enter}
  150. goto Fejl1
  151. }
  152. else{
  153. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
  154. if (ErrorLevel == 0){
  155. sleep, 20
  156. send, {Enter}
  157. sleep, 1000
  158.  
  159. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
  160. while (ErrorLevel != 0){
  161. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
  162. sleep, 50
  163. venter++
  164. if(venter > 300 ){
  165. goto GENSTART
  166. }
  167. }
  168. venter = 0
  169. sleep, 100
  170. send, {2}
  171. sleep, 500
  172.  
  173. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\inviterON
  174. If(ErrorLevel != 0){
  175. sleep, 50
  176. inviterOFF++
  177. }
  178.  
  179. If (inviterOFF > 300){
  180. goto GENSTART
  181. }
  182.  
  183. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
  184. While(ErrorLevel == 0){
  185. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
  186. sleep, 1000
  187. venter++
  188. if(venter++ > 600){
  189. goto GENSTART
  190. }
  191. }
  192. sleep, 50
  193. send, d
  194. sleep, 50
  195. send, f
  196.  
  197. goto Farm
  198.  
  199.  
  200. }
  201. else{
  202. i++
  203. sleep, 50
  204. send, {Escape}
  205. sleep, 10
  206. send, {Tab}
  207. sleep, 10
  208. send, {Enter}
  209. goto Fejl1
  210. }
  211.  
  212.  
  213. }
  214.  
  215.  
  216. }
  217.  
  218. }
  219.  
  220.  
  221.  
  222.  
  223. ; LOGIN 1
  224. }else{
  225. Fejl2:
  226. WinActivate WoW1
  227. while login1 = 1{
  228. if(i > 3){
  229. login1 = 0
  230. fejl = 1
  231. }
  232. else{
  233. Sleep, 200
  234. Send, {Enter}
  235. Sleep, 200
  236. Send, mikkelcom ;account_name
  237. Sleep, 200
  238. Send, {Tab}
  239. Sleep, 200
  240. Send, xd123 ;password
  241. Sleep, 200
  242. Send, {Enter}
  243.  
  244. Sleep, 2000
  245. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\login3.bmp
  246. if (ErrorLevel == 0){
  247. i++
  248. sleep, 50
  249. send, {Escape}
  250. sleep, 10
  251. send, {Tab}
  252. sleep, 10
  253. send, {Enter}
  254. goto Fejl2
  255. }
  256. else{
  257. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\enterworldicon.bmp
  258. if (ErrorLevel == 0){
  259. sleep, 20
  260. send, {Enter}
  261. sleep, 1000
  262.  
  263. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
  264. while (ErrorLevel != 0){
  265. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\isiscubeonline.bmp
  266. sleep, 50
  267. venter++
  268. if(venter > 300 ){
  269. goto GENSTART
  270. }
  271. }
  272. venter = 0
  273. sleep, 100
  274. send, {2}
  275. sleep, 500
  276.  
  277. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\inviterON
  278. If(ErrorLevel != 0){
  279. sleep, 50
  280. inviterOFF++
  281. }
  282.  
  283. If (inviterOFF > 300){
  284. goto GENSTART
  285. }
  286.  
  287. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
  288. While(ErrorLevel == 0){
  289. ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, F:\Junk2\pickaxe.png
  290. sleep, 1000
  291. venter++
  292. if(venter++ > 600){
  293. goto GENSTART
  294. }
  295. }
  296. sleep, 50
  297. send, {d}
  298. sleep, 50
  299. send, {f}
  300. goto Farm
  301. }
  302. else{
  303. i++
  304. sleep, 50
  305. send, {Escape}
  306. sleep, 10
  307. send, {Tab}
  308. sleep, 10
  309. send, {Enter}
  310. goto Fejl2
  311. }
  312. }
  313. }
  314. }
  315.  
  316.  
  317.  
  318.  
  319. }
  320. }
  321.  
  322.  
  323. }
  324.  
  325.  
  326. while fejl = 1 and opstart = 0{
  327. Sleep, 1000
  328. WinClose WoW1
  329. Sleep, 1000
  330. WinClose WoW2
  331. Sleep, 1000
  332. WinClose WoW3
  333.  
  334. opstart = 1
  335. fejl = 0
  336.  
  337. }
  338.  
  339. RandomSleep(min, max){
  340. Random, rand, min, max
  341. Sleep rand
  342. }
  343. GENSTART:
  344. Sleep, 1000
  345. WinClose WoW1
  346. Sleep, 1000
  347. WinClose WoW2
  348. Sleep, 1000
  349. WinClose WoW3
  350. opstart = 1
  351. fejl = 0
  352.  
  353. }
  354. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement