Jump to content

a Little problem with my scrip


Nemo666
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

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...