Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.17 KB | None | 0 0
  1. ;use for hunting normal cyclops mistrock ground floor at start
  2.  
  3.  
  4. HotKeySet("{f1}","myExit")
  5. Global $attacking = False;
  6. Global $needRest = False;
  7. Global $waypoint = False;
  8. Global $waypoint2 = False;
  9. Global $waypoint3 = False;
  10. ;Mobs colour
  11. Global $HuntingForColor = 0xBC7E3E
  12.  
  13.  
  14. while(1)
  15. WinActivate("Tibia - Zoonth Teferra")
  16.  
  17.     ;find a mob
  18.     $pix = PixelSearch(2,63,158,1032,$HuntingForColor,3)
  19.  
  20. if not(@error) Then
  21.  
  22.     ;click and attack mob
  23.     MouseClick("left",$pix[0], $pix[1],1,1)
  24.     sleep(3000)
  25.     $attacking = True
  26.  
  27.     while($attacking)
  28.  
  29.         ;are we still attacking the mob, if not then go to waypoint
  30.         $isAttacking = PixelSearch(4,59,167,1028,0xFF0000,1)
  31.         if not (@error) then
  32.         Else
  33.         $waypoint = PixelSearch(1754,31,1854,132,0xC1A998,1)
  34.         MouseClick("left",$waypoint[0], $waypoint[1],1,1)
  35.         Else
  36.         $waypoint2 = PixelSearch(1754,31,1854,132,0x5F2604,1)
  37.         MouseClick("left",$waypoint2[0], $waypoint2[1],1,1)
  38.         Else
  39.         $waypoint3 = PixelSearch(1754,31,1854,132,0x3636F6,1)
  40.         MouseClick("left",$waypoint3[0], $waypoint3[1],1,1)
  41.  
  42. func myExit()
  43.     msgbox(0,"Ending","Bot has exited")
  44.     Exit
  45. EndFunc
  46.  
  47. func StartRest()
  48.     MouseClick("left",895,904,1,1)
  49.     sleep(250)
  50.     EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement