Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 3.52 KB | None | 0 0
  1. dim $stormshield,$x1,$x2,$x3,$x4,$x5,$x6,$y1,$y2,$y3,$y4,$y5,$y6,$x7,$y7,$item,$price,$string
  2. HotKeySet("{F1}", "start")
  3. HotKeySet("{F2}", "stop")
  4. HotKeySet("{F3}", "quit")
  5. $end = False
  6.  
  7.  
  8. ;Item prices
  9. $stormshield = 3500000  
  10. $string = 200000
  11. $lantern = 4500000
  12. $spear = 600000
  13. $mark = 4000000
  14. $other = 7400000
  15.  
  16.  
  17. ;Price box location
  18. $x1 = 610
  19. $y1 = 759
  20. ;Search button
  21. $x2 = 520
  22. $y2 = 839
  23. ;Top item
  24. $x3 = 1090
  25. $y3 = 320
  26. ;Buyout
  27. $x4 = 1449
  28. $y4 = 876
  29. ;Confirm
  30. $x5 = 847
  31. $y5 = 717
  32. ;Complete
  33. $x6 = 959
  34. $y6 = 459
  35. ;Name box
  36. $x7 = 487
  37. $y7 = 762
  38. ;color check
  39. $x8 = 737
  40. $y8 = 307
  41.  
  42.  
  43.  
  44. while True
  45.     wait()
  46. WEnd
  47. Func checker() 
  48.     $x = ($x7 + random(-4,4,1))
  49.     $y = ($y7 + random(-4,4,1))
  50.     mouseClick ( "left", $x, $y) ; Name box
  51.     $wait = random(10,15,1)
  52.     sleep($wait)
  53.     Send("{CTRLDOWN}""a""{CTRLUP}")
  54.     Send($item)
  55.     sleep($wait)   
  56.     $x = ($x1 + random(-4,4,1))
  57.     $y = ($y1 + random(-4,4,1))
  58.     mouseClick ( "left", $x, $y) ; Price box
  59.     $wait = random(10,15,1)
  60.     sleep($wait)
  61.     Send("{CTRLDOWN}""a""{CTRLUP}")
  62.     Send($price)
  63.     sleep($wait)
  64.     $x = ($x2 + random(-4,4,1))
  65.     $y = ($y2 + random(-4,4,1))
  66.     mouseClick ( "left", $x, $y) ; Search
  67.     sleep($wait+1000)  
  68.  
  69.     $col = PixelGetColor($x8,$y8) ; Checking pixel color
  70.    
  71.     If $col = 5328962 Then  ; Checking for item
  72.        
  73.         $x = ($x3 + random(-2,2,1))
  74.         $y = ($y3 + random(-2,2,1))
  75.         mouseClick ( "left", $x, $y) ; Top item
  76.         sleep($wait)
  77.         $x = ($x4 + random(-2,2,1))
  78.         $y = ($y4 + random(-2,2,1))
  79.         mouseClick ( "left", $x, $y) ; Buyout
  80.         sleep($wait)
  81.         $x = ($x5 + random(-2,2,1))
  82.         $y = ($y5 + random(-2,2,1))
  83.         mouseClick ( "left", $x, $y) ; Confirm
  84.         sleep($wait+1500)  
  85.         $x = ($x6 + random(-2,2,1))
  86.         $y = ($y6 + random(-2,2,1))
  87.         mouseClick ( "left", $x, $y) ; Complete
  88.     endif
  89. EndFunc
  90.  
  91. Func start()
  92.     sleep(100)
  93.     $price = ($stormshield + random(100,2000,1))
  94.     $item = "stormshield"
  95.     checker()
  96.     sleep(100)
  97.     $price = ($string + random(100,2000,1))
  98.     $item = "string of ears"
  99.     checker()
  100.     sleep(100)
  101.     $price = ($lantern + random(100,2000,1))
  102.     $item = "justice lantern"
  103.     checker()
  104.     sleep(100)
  105.     $price = ($spear + random(100,2000,1))
  106.     $item = "the three hundredth spear"
  107.     checker()
  108.     sleep(100)
  109.     ;$price = ($mark + random(100,2000,1))
  110.     ;$item = "Natalya's Mark"
  111.     ;checker()
  112.     ;sleep(100)
  113.     ;$price = ($other + random(100,2000,1))
  114.     ;$item = ""
  115.     ;checker2()
  116.     ;sleep(100)
  117.     start()
  118. EndFunc
  119.        
  120.     $x1 + random(1,10,1)
  121.  
  122. Func wait()
  123.     while true
  124.         sleep (100)
  125.     wend
  126. endFunc
  127.  
  128. Func quit()
  129.     Exit(0)
  130. EndFunc
  131.  
  132. Func checker2()
  133.     $x = ($x7 + random(-2,2,1))
  134.     $y = ($y7 + random(-2,2,1))
  135.     mouseClick ( "left", $x, $y) ; Name box
  136.     $wait = random(10,15,1)
  137.     sleep($wait)
  138.     Send("{CTRLDOWN}""a""{CTRLUP}")
  139.     Send("{BACKSPACE}")
  140.     sleep($wait)   
  141.     $x = ($x1 + random(-2,2,1))
  142.     $y = ($y1 + random(-2,2,1))
  143.     mouseClick ( "left", $x, $y) ; Price box
  144.     $wait = random(10,15,1)
  145.     sleep($wait)
  146.     Send("{CTRLDOWN}""a""{CTRLUP}")
  147.     Send($price)
  148.     sleep($wait)
  149.     $x = ($x2 + random(-2,2,1))
  150.     $y = ($y2 + random(-2,2,1))
  151.     mouseClick ( "left", $x, $y) ; Search
  152.     sleep($wait+1000)  
  153.     $x = ($x3 + random(-2,2,1))
  154.     $y = ($y3 + random(-2,2,1))
  155.     mouseClick ( "left", $x, $y) ; Top item
  156.     sleep($wait)
  157.     $x = ($x4 + random(-2,2,1))
  158.     $y = ($y4 + random(-2,2,1))
  159.     mouseClick ( "left", $x, $y) ; Buyout
  160.     sleep($wait)
  161.     $x = ($x5 + random(-2,2,1))
  162.     $y = ($y5 + random(-2,2,1))
  163.     mouseClick ( "left", $x, $y) ; Confirm
  164.     sleep($wait+1500)  
  165.     $x = ($x6 + random(-2,2,1))
  166.     $y = ($y6 + random(-2,2,1))
  167.     mouseClick ( "left", $x, $y) ; Complete
  168. EndFunc
  169.  
  170. Func stop()
  171.     $end = True
  172. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement