Share Pastebin
Guest
Public paste!

Eve mining bot Beta 10

By: a guest | Jan 6th, 2010 | Syntax: AutoIt | Size: 4.07 KB | Hits: 579 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. HotKeySet("{F9}","avsluta")
  2. HotKeySet("{F8}","starta")
  3.  
  4. Func starta ()
  5.         while 1
  6. $color = 0xFFBA39              
  7. $color2 = 0xE9EAEA or 0xE6E6E6
  8. $color3 = 0x010E12
  9. $color4 = 0x000000
  10. $color5 = 0x939393
  11.  
  12. ;Step one: youre at station and are going to move your cargo to station.
  13.  
  14. ;waiting for ship to enter station
  15.  
  16. If PixelGetColor(29, 891) = $color Then ;if value of the array "$color" DOES equal with the colour at "26,753" then continue script (or else loop until right colour found)
  17.  
  18. sleep (5000)
  19. MouseClick ("right", 308, 833,1,10) ;select all (1/2)
  20. sleep (100)
  21. mouseclick ("left", 357, 838,1,10) ;select all (2/2)
  22. sleep (100)
  23. MouseClickDrag ("left",96, 838,100, 628,10) ;move all to station
  24. sleep (100)
  25. Mouseclick ("left", 29, 888,1,10) ;Leave station
  26.  
  27.  
  28. sleep (5000)
  29.  
  30.  
  31. If PixelGetColor(56, 70) = $color2 Then ;if value of the array "$color" does NOT equal with the colour at "26,753" then continue script (or else loop until the "wrong colour is found)
  32. sleep (2000)
  33.  
  34. ;Step two: Moving to astroid belt
  35. $belt1 = random (1,50,1)
  36.  
  37. mouseclick ("left",56, 70,1,5)
  38. sleep (100)
  39. mousemove (112, 77,2)
  40. sleep (100)
  41. mousemove (224, 77,2)
  42.  
  43. If $belt1 <= 12.5 Then
  44.         mousemove(225, 78,5)  ;1/8
  45. If $belt1 > 12.5 and $belt1 <= 25 Then    
  46.         mousemove(225, 90,5)  ;2/8
  47. If $belt1 > 25 and $belt1 <= 37.5 Then    
  48.         mousemove(225, 110,5) ;3/8
  49. If $belt1 > 37.5 and $belt1 <= 50 Then    
  50.         mousemove(225, 124,5) ;4/8
  51. If $belt1 > 50 and $belt1 <= 62.5 Then    
  52.         mousemove(225, 136,5) ;5/8
  53. If $belt1 > 62.5 and $belt1 <= 75 Then     
  54.         mousemove(225, 148,5) ;6/8
  55. If $belt1 > 75 and $belt1 <= 87.5 Then    
  56.         mousemove(225, 160,5) ;7/8
  57. If $belt1 > 87.5 and $belt1 <= 100 Then    
  58.         mousemove(225, 172,5) ;8/8
  59.          sleep (100)
  60. If $belt1 <= 12.5 Then  
  61.         mouseclick ("left",394, 78,5) ;astriodbelt  1/8
  62.         endif
  63. If $belt1 > 12.5 and $belt1 <= 25 Then  
  64.         mouseclick ("left",394, 90,5) ;astriodbelt  2/8
  65.         endif
  66. If $belt1 > 25 and $belt1 <= 37.5 Then  
  67.         mouseclick ("left",394, 110,5) ;astriodbelt 3/8
  68.         endif
  69. If $belt1 > 37.5 and $belt1 <= 50 Then  
  70.         mouseclick ("left",394, 124,5) ;astriodbelt 4/8
  71.         endif
  72. If $belt1 > 50 and $belt1 <= 62.5 Then  
  73.         mouseclick ("left",394, 136,5) ;astriodbelt 5/8
  74.         endif
  75. If $belt1 > 62.5 and $belt1 <= 75 Then         
  76.         mouseclick ("left",394, 148,5) ;astriodbelt 6/8
  77.         endif
  78. If $belt1 > 75 and $belt1 <= 87.5 Then  
  79.         mouseclick ("left",394, 160,5) ;astriodbelt 7/8
  80.         endif
  81. If $belt1 > 87.5 and $belt1 <= 100 Then
  82.         mouseclick ("left",394, 172,5) ;astriodbelt 8/8
  83.         endif
  84.  
  85.  
  86. sleep (20000)
  87.  
  88. ;Step three: Mining
  89.  
  90.  
  91. send ("{F10}")
  92. sleep (2000)
  93. If PixelGetColor(722, 884) = $color5 Then ;wait until warp msg appears (in-game)
  94. send ("{F10}")
  95. sleep (2000)
  96. sleep (100)
  97. mouseclick ("left",1309, 182,1,5) ;select a astroid
  98. sleep (100)
  99. mouseclick ("left",1255, 95,1,5) ;orbit
  100. sleep (30000)
  101. mouseclick ("left",1305, 95,5,1) ;lock astro
  102. sleep (100)
  103. sleep (5000)
  104.  
  105. send ("{F1}")
  106. sleep (41)
  107. send ("{F2}")
  108. sleep (42)
  109. send ("{F3}")
  110. sleep (43)
  111. send ("{F4}")
  112. sleep (44)
  113. send ("{F5}")
  114. sleep (45)
  115. send ("{F6}")
  116.  
  117. send ("{F10}")
  118. sleep (2000)
  119. If PixelGetColor(708, 242) = $color4 Then
  120. ;send Ctr+space
  121. send ("{F1}")
  122. sleep (41)
  123. send ("{F2}")
  124. sleep (42)
  125. send ("{F3}")
  126. sleep (43)
  127. send ("{F4}")
  128. sleep (44)
  129. send ("{F5}")
  130. sleep (45)
  131. send ("{F6}")
  132. send ("{F10}")
  133. sleep (2000)
  134.  
  135.  
  136. send ("{F10}")
  137. sleep (2000)
  138.  
  139. If PixelGetColor(336, 789) <> $color3 Then ;when cargo is full head back to station, 2fönster bakom cargo needed..
  140.  
  141. send ("{F10}") ;close f10
  142. sleep (2000)
  143.  
  144. ;step four: Head back to the station (and the script is going to restart)
  145. mouseclick ("left",54, 68,1,5)
  146. sleep (100)
  147. mousemove (93, 119,5)
  148. sleep (100)
  149. mousemove (447, 119,6)
  150. sleep (100)
  151. mouseclick("left",422, 166,1,5)
  152.  
  153.  
  154.  
  155.  
  156. Func avsluta()