Jump to content
Sign in to follow this  
Nemo666

a Little problem with my scrip

Recommended Posts

Nemo666

$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 ?

Share this post


Link to post
Share on other sites
Andreik

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.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
Nemo666

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)

;)

Share this post


Link to post
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
Sign in to follow this  

×