Jump to content

What have I done wrong?


zvvyt
 Share

Recommended Posts

winactivate("RF Online")
hotkeyset("{ESC}","quit")
global $mobhpbar2 = pixelsearch(560,83,723,89,13186877)
sleep(1000)
while 1
$mob = PixelSearch(3,94,1276,923,855825,2)
if $mob = @error Then
    Do
    mouseclick("middle","",639,552,1)
    sleep(1000)
    $mob = PixelSearch(3,94,1276,923,855825,2)
until $mob = not @error
EndIf
if $mob = not @error Then 
    mousemove($mob[0],$mob[1],0)
EndIf
$mousecolor = pixelsearch($mob[0],$mob[1],$mob[0]+26,$mob[1]+34,16711752,20)
if $mousecolor = @error then 
    mouseclick("middle","",639,552,1)
    ContinueLoop
EndIf
if $mousecolor = not @error Then mouseclick("primary",$mob[0],$mob[1],2,0)
$mobhpbar1 = pixelsearch(560,83,723,89,13186877)
if $mobhpbar1 = @error then 
    mouseclick("primary",639,622,1,0)
    do 
        MouseClick("middle",639,552,1)
        sleep(1000) 
        $mob = pixelsearch(3,94,1276,923,855825,2)
    until $mobhpbar1 = not @error 
EndIf
if $mobhpbar1 = 1 then 
    do 
    send("2")
    sleep(6500)
    send("1")
    sleep(6500)
until $mobhpbar2 = @error
EndIf
WEnd
func quit()
    Exit
EndFunc

when i launch this one it tabs into the game and it places the mouse outside the screen (using window mode) and when I pull the mouse into the screen it begins to spin the whole screen.

any solution?

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