Advertisement
djvj

Untitled

Apr 10th, 2011
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 4.16 KB | None | 0 0
  1.             $ScanMob1= PixelSearch($xBattle_Mob_Left_1, $yBattle_Mob, $xBattle_Mob_Left_1 + 30, $yBattle_Mob + 30, 0xFFFFFF, 255) ; scanning a box to find a not black color
  2.             If Not @error Then
  3.                 MouseMove($ScanMob1[0], $ScanMob1[1]) ; if we find a not black color, move there
  4. ToolTip( "1" , 0, 25 )
  5. ;   MsgBox(0, "X and Y are:", $ScanMob1 & "," & $ScanMob1)
  6.                 MouseDown("left")
  7.                 MouseUp("left")
  8.                 Sleep (100)
  9.                 return
  10.             EndIf
  11.             $ScanMob2= PixelSearch($xBattle_Mob_Left_2, $yBattle_Mob, $xBattle_Mob_Left_2 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  12.             If Not @error Then
  13. ToolTip( "2" , 0, 25 )
  14. ;   MsgBox(0, "X and Y are:", $ScanMob2[0] & "," & $ScanMob2[1])
  15.                 MouseMove($ScanMob2[0], $ScanMob2[1]) ; if we find a not black color, move there
  16.                 MouseDown("left")
  17.                 MouseUp("left")
  18.                 Sleep (100)
  19.                 return
  20.             EndIf
  21.             $ScanMob3= PixelSearch($xBattle_Mob_Left_3, $yBattle_Mob, $xBattle_Mob_Left_3 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  22.             If Not @error Then
  23. ToolTip( "3" , 0, 25 )
  24.                 MouseMove($ScanMob3[0], $ScanMob3[1]) ; if we find a not black color, move there
  25.                 MouseDown("left")
  26.                 MouseUp("left")
  27.                 Sleep (100)
  28.                 return
  29.             EndIf
  30.             $ScanMob4= PixelSearch($xBattle_Mob_Left_4, $yBattle_Mob, $xBattle_Mob_Left_4 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  31.             If Not @error Then
  32. ToolTip( "4" , 0, 25 )
  33.                 MouseMove($ScanMob4[0], $ScanMob4[1]) ; if we find a not black color, move there
  34.                 MouseDown("left")
  35.                 MouseUp("left")
  36.                 Sleep (100)
  37.                 return
  38.             EndIf
  39.             $ScanMob5= PixelSearch($xBattle_Mob_Left_5, $yBattle_Mob, $xBattle_Mob_Left_5 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  40.             If Not @error Then
  41. ToolTip( "5" , 0, 25 )
  42.                 MouseMove($ScanMob5[0], $ScanMob5[1]) ; if we find a not black color, move there
  43.                 MouseDown("left")
  44.                 MouseUp("left")
  45.                 Sleep (100)
  46.                 return
  47.             EndIf
  48.             $ScanMob6= PixelSearch($xBattle_Mob_Mid, $yBattle_Mob, $xBattle_Mob_Mid + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  49.             If Not @error Then
  50. ToolTip( "6" , 0, 25 )
  51.                 MouseMove($ScanMob6[0], $ScanMob6[1]) ; if we find a not black color, move there
  52.                 MouseDown("left")
  53.                 MouseUp("left")
  54.                 Sleep (100)
  55.                 return
  56.             EndIf
  57.             $ScanMob7= PixelSearch($xBattle_Mob_Right_1, $yBattle_Mob, $xBattle_Mob_Right_1 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  58.             If Not @error Then
  59. ToolTip( "7" , 0, 25 )
  60.                 MouseMove($ScanMob7[0], $ScanMob7[1]) ; if we find a not black color, move there
  61.                 MouseDown("left")
  62.                 MouseUp("left")
  63.                 Sleep (100)
  64.                 return
  65.             EndIf
  66.             $ScanMob8= PixelSearch($xBattle_Mob_Right_2, $yBattle_Mob, $xBattle_Mob_Right_2 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  67.             If Not @error Then
  68. ToolTip( "8" , 0, 25 )
  69.                 MouseMove($ScanMob8[0], $ScanMob8[1]) ; if we find a not black color, move there
  70.                 MouseDown("left")
  71.                 MouseUp("left")
  72.                 Sleep (100)
  73.             EndIf
  74.             $ScanMob9= PixelSearch($xBattle_Mob_Right_3, $yBattle_Mob, $xBattle_Mob_Right_3 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  75.             If Not @error Then
  76. ToolTip( "9" , 0, 25 )
  77.                 MouseMove($ScanMob9[0], $ScanMob9[1]) ; if we find a not black color, move there
  78.                 MouseDown("left")
  79.                 MouseUp("left")
  80.                 Sleep (100)
  81.             EndIf
  82.             $ScanMob10= PixelSearch($xBattle_Mob_Right_4, $yBattle_Mob, $xBattle_Mob_Right_4 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  83.             If Not @error Then
  84. ToolTip( "10" , 0, 25 )
  85.                 MouseMove($ScanMob10[0], $ScanMob10[1]) ; if we find a not black color, move there
  86.                 MouseDown("left")
  87.                 MouseUp("left")
  88.                 Sleep (100)
  89.             EndIf
  90.             $ScanMob11= PixelSearch($xBattle_Mob_Right_5, $yBattle_Mob, $xBattle_Mob_Right_5 + 30, $yBattle_Mob + 30, 0xFFFFFF, 254) ; scanning a box to find a not black color
  91.             If Not @error Then
  92. ToolTip( "11" , 0, 25 )
  93.                 MouseMove($ScanMob11[0], $ScanMob11[1]) ; if we find a not black color, move there
  94.                 MouseDown("left")
  95.                 MouseUp("left")
  96.             EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement