Jump to content

2different PixelSearch colors but 1 action


 Share

Recommended Posts

Hotkeyset("{-}","_Exit")
Opt("PixelCoordMode", 0)
While 1
    $Search1 = PixelSearch(372,53,480,62,0xE7383B)
    $Search2 = PixelSearch(372,53,480,62,0x426920)
    $charHP = PixelSearch(136,592,164,595,0x42352E)
    If IsArray($Search1) or Isarray($Search2) True Then
        ControlSend("AION Client" ,"", "", "1")
        sleep( 100 )
        ControlSend("AION Client" ,"", "", "1")
        sleep( 1000 )
        ControlSend("AION Client" ,"", "", "2")
        sleep( 1000 )
        ControlSend("AION Client" ,"", "", "3")
    EndIf
    If IsArray($Search1) or Isarray($Search2) False Then
        ControlSend("AION Client" ,"", "", "5")
        sleep( 500 )
        ControlSend("AION Client" ,"", "", "5")
        sleep( 1000 )
        ControlClick("AION Client", "","", "middle", 1,"", "")
        sleep( 500 )
        ControlSend("AION Client" ,"", "", "{TAB}")
        sleep( 500 )
        ControlSend("AION Client" ,"", "", "1")
    Endif
    If IsArray($charHP) = True Then
        ControlSend("AION Client" ,"", "", "9")
        sleep( 5500 )
    EndIf
Wend

Func _Exit()
    Exit
EndFunc

Enemy monsters change their HP color from red to green if they are under poison

If IsArray($Search1) or Isarray($Search2) True Then

Search1 and 2 are monster HP

doesnt work can anybody help me

Edited by MaryQueen
Link to comment
Share on other sites

I doubt you'll get much response on the subject other than Jos and his infamous "click".

If you want to learn how to do something explain it in a general, non-game bot related way at which point some people might be more inclined to help. (Changing all "AION Client" to "notepad" does not make it non-game bot related. You'll have to make an effort to break down to the core of the problem and make the question very general.)

For now sleep doesn't sound like such a bad idea.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...