Advertisement
djvj

Untitled

Apr 9th, 2011
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.42 KB | None | 0 0
  1.  
  2. Case $MaxNumofMobs = 6
  3. If Hex(PixelGetColor($xBattle_Left1_mob,$yBattle_Left1_mob),6) <> "000000" Then
  4.     MouseMove($xBattle_Left1_mob,$yBattle_Left1_mob) ;click to attack far left monster
  5.     MouseDown("left")
  6.     MouseUp("left")
  7.     Sleep (100)
  8. EndIf
  9. If Hex(PixelGetColor($xBattle_Left2_mob,$yBattle_Left2_mob),6) <> "000000" Then
  10.     MouseMove($xBattle_Left2_mob,$yBattle_Left2_mob) ;click to attack left monster
  11.     MouseDown("left")
  12.     MouseUp("left")
  13.     Sleep (100)
  14. EndIf
  15. If Hex(PixelGetColor($xBattle_Left3_mob,$yBattle_Left3_mob),6) <> "000000" Then
  16.     MouseMove($xBattle_Left3_mob,$yBattle_Left3_mob) ;click to attack left monster
  17.     MouseDown("left")
  18.     MouseUp("left")
  19.     Sleep (100)
  20. EndIf
  21. If Hex(PixelGetColor($xBattle_Left4_mob,$yBattle_Left4_mob),6) <> "000000" Then
  22.     MouseMove($xBattle_Left4_mob,$yBattle_Left4_mob) ;click to attack left monster
  23.     MouseDown("left")
  24.     MouseUp("left")
  25.     Sleep (100)
  26. EndIf
  27. If Hex(PixelGetColor($xBattle_Left5_mob,$yBattle_Left5_mob),6) <> "000000" Then
  28.     MouseMove($xBattle_Left5_mob,$yBattle_Left5_mob) ;click to attack left monster
  29.     MouseDown("left")
  30.     MouseUp("left")
  31.     Sleep (100)
  32. EndIf
  33. If Hex(PixelGetColor($xBattle_Mid_mob,$yBattle_Mid_mob),6) <> "000000" Then
  34.     MouseMove($xBattle_Mid_mob,$yBattle_Mid_mob) ;click to attack middle monster
  35.     MouseDown("left")
  36.     MouseUp("left")
  37.     Sleep (100)
  38. EndIf
  39. If Hex(PixelGetColor($xBattle_Right1_mob,$yBattle_Right1_mob),6) <> "000000" Then
  40.     MouseMove($xBattle_Right1_mob,$yBattle_Right1_mob) ;click to attack right monster
  41.     MouseDown("left")
  42.     MouseUp("left")
  43.     Sleep (100)
  44. EndIf
  45. If Hex(PixelGetColor($xBattle_Right2_mob,$yBattle_Right2_mob),6) <> "000000" Then
  46.     MouseMove($xBattle_Right2_mob,$yBattle_Right2_mob) ;click to attack far right monster
  47.     MouseDown("left")
  48.     MouseUp("left")
  49.     Sleep (100)
  50. EndIf
  51. If Hex(PixelGetColor($xBattle_Right3_mob,$yBattle_Right3_mob),6) <> "000000" Then
  52.     MouseMove($xBattle_Right3_mob,$yBattle_Right3_mob) ;click to attack far right monster
  53.     MouseDown("left")
  54.     MouseUp("left")
  55.     Sleep (100)
  56. EndIf
  57. If Hex(PixelGetColor($xBattle_Right4_mob,$yBattle_Right4_mob),6) <> "000000" Then
  58.     MouseMove($xBattle_Right4_mob,$yBattle_Right4_mob) ;click to attack far right monster
  59.     MouseDown("left")
  60.     MouseUp("left")
  61.     Sleep (100)
  62. EndIf
  63. If Hex(PixelGetColor($xBattle_Right5_mob,$yBattle_Right5_mob),6) <> "000000" Then
  64.     MouseMove($xBattle_Right5_mob,$yBattle_Right5_mob) ;click to attack far right monster
  65.     MouseDown("left")
  66.     MouseUp("left")
  67. EndIf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement