Jump to content

Recommended Posts

Posted

$mobhp = 0xFF3F7C

WinWaitActive("Florensia")

Sleep(2000)

While 1

Send("{1}")

Sleep(1111)

If $mobhp = PixelGetColor(447,37) Then

Send("{2}")

Sleep(1111)

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Send("{2}")

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Send("{2}")

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Send("{2}")

Sleep(1111)

Send("{3}")

Sleep(1111)

Send("{4}")

Sleep(1111)

Sleep(1111)

Else

Sleep(1111)

EndIf

WEnd

i think i might of got this a little wrong.

im trying this to when it goes to that cord on the screen that it checks for the right color and then to excute the comands under and

if it cant find the right color at the code is will loop over and over.

can any one help ?

Posted

PixelGetColor returns decimal value of pixel's color and you tried to compare to a hex value.

Change this

If $mobhp = PixelGetColor(447,37) Then

with this

If $mobhp = "0x" & Hex(PixelGetColor(447,37),6) Then

Hope that helps.

Posted

aaa yes that did work nicely =]

many thanks for your help

i did have a problem but i just had

to take the cords again and the color (cos its a window program)

;)

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
×
×
  • Create New...