Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. #NoEnv
  2. #KeyHistory 0
  3. #SingleInstance force
  4. ListLines Off
  5. Process, Priority, , H
  6. SetBatchLines, -1
  7. SetKeyDelay, -1, -1
  8. SetMouseDelay, -1
  9. SetDefaultMouseSpeed, 0
  10. SetWinDelay, -1
  11. SetControlDelay, -1
  12.  
  13. running = 0
  14.  
  15. ; screen res = 1284, 752
  16.  
  17. updateChk := [[1151,155,0xF6ECD5]]
  18. partyChk := [[1011,212,0x00C8FF]]
  19. fullChk := [[628,493,0xFEFCF8]]
  20. prepChk := [[1175,581,0x0707CD]]
  21. disbandChk := [[519,278,0x3A3A3A],[615,286,0x3E3E3E],[765,276,0x535353],[701,281,0x5B5B5B]]
  22. ingameChk := [[478,325,0x575757],[504,328,0x434343]]
  23. disconChk := [[532,334,0xEEEBE6],[685,364,0xC6BBAA],[630,451,0xE6E5F1]]
  24. winChk := [[35,88,0xFFFFFF],[74,119,0xFFFFFF],[153,80,0xFFFFFF],[193,120,0xFFFFFF],[143,76,0xFFFF57]]
  25. specatkChk := [[974,666,0xF0E8CB]]
  26. regatkChk := [[1165,645,0xEAE9E9]]
  27. repeatChk := [[601,537,0xFFFFFF], [681,539,0xFFFFFF]]
  28.  
  29. ToolTip, Digimon Script Started
  30. Sleep, 1000
  31. ToolTip
  32.  
  33. mainloop:
  34. loop {
  35. if(running) {
  36. ; ======================================================== Main Loop Start ========================================================
  37.  
  38. ; ================== Start In Party Finder =================
  39. ToolTip, looking for match, 64, 256
  40. while(!opt_chk(prepChk)) {
  41. ; if a party is found
  42. if(opt_chk(partyChk)) {
  43. ; click party
  44. move_click(1011, 212)
  45. ; wait 1 second
  46. Sleep, 1000
  47. ; check if party is full and click if it is
  48. if(opt_chk(fullChk))
  49. move_click(628, 493)
  50. }
  51.  
  52. ; if no party is found, check if can update and click if possible
  53. else if(opt_chk(updateChk))
  54. move_click(1151, 155)
  55.  
  56. Sleep, 64
  57. }
  58.  
  59. ; ================== When In Party Lobby =================
  60. ; click the prepChk
  61. move(1175, 581)
  62. start := A_TickCount
  63.  
  64. ToolTip, Waiting for match to start, 64, 256
  65. while(!opt_chk(ingameChk)) {
  66. if(opt_chk(disbandChk)){
  67. move_click(640, 500)
  68. Sleep, 2000
  69. continue mainloop
  70. } if (afk_check(start)) {
  71. move_click(1180, 70)
  72. Sleep, 1000
  73. continue mainloop
  74. } if (opt_chk(prepChk))
  75. click()
  76. }
  77. ; ==================== In Combat Screen ==================
  78.  
  79. ToolTip, Waiting for match to end, 64, 256
  80. while(!opt_chk(winChk)) {
  81. if(opt_chk(specatkChk)) {
  82. move_click(974,666)
  83. Sleep, 128
  84. click()
  85. Sleep, 1000
  86. }else if(opt_chk(regatkChk)) {
  87. move_click(1165,645)
  88. Sleep, 128
  89. click()
  90. Sleep, 1000
  91. }else if(opt_chk(disconChk)) {
  92. ToolTip, Player disconnected going to lobby, 64, 256
  93. move_click(640, 450)
  94. Sleep, 10000
  95. move_click(1180, 660)
  96. Sleep, 1000
  97. move_click(900, 224)
  98. Sleep, 1000
  99. move_click(900, 300)
  100. Sleep, 1000
  101. move_click(990, 650)
  102. Sleep, 1000
  103. move_click(500, 340)
  104. continue mainloop
  105. }
  106. }
  107. ; ==================== Post Game Summary ==================
  108. ToolTip, Skipping Summary, 64, 256
  109. move(660, 635)
  110.  
  111. while(!opt_chk(repeatChk))
  112. click() ; skips through summary until end
  113.  
  114. ;clicks repeat
  115. move_click(650, 470)
  116.  
  117. ;clicks join
  118. Sleep, 1000
  119. move_click(500, 340)
  120.  
  121. ; ========================================================= Main Loop End =========================================================
  122. }
  123. }
  124.  
  125. End::
  126. running := 1 - running
  127. if(!running) {
  128. ToolTip, Paused after loop
  129. Sleep, 1000
  130. ToolTip
  131. }
  132. return
  133.  
  134. ^+End::
  135. TrayTip, Script Ended, digimon script has been closed
  136. exitapp
  137. return
  138.  
  139. afk_check(start) {
  140. if(A_TickCount - start > 60000)
  141. return 1
  142. return 0
  143. }
  144.  
  145. opt_chk(arr) {
  146. for key in arr {
  147. PixelGetColor, color, arr[key, 1], arr[key, 2]
  148. if(color != arr[key, 3])
  149. return 0
  150. }
  151. return 1
  152. }
  153.  
  154. move(x2, y2) {
  155. MouseMove, x2, y2
  156. }
  157.  
  158. move_click(x2, y2) {
  159. move(x2, y2)
  160. click()
  161. }
  162.  
  163. click() {
  164. DllCall("mouse_event", "UInt", 2)
  165. Sleep, 64
  166. DllCall("mouse_event", "UInt", 4)
  167. Sleep, 64
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement