Jump to content
Sign in to follow this  
aznkaoz

NEED help optimize script?

Recommended Posts

works pretty slow? anyone help with improvements

$X = 0

$Pixel = 0xADBE4A

$start = MsgBox(4, "aZnKaOz Rose Bot", "Click Yes To Start")

If $start = 7 Then

MsgBox(0, "aZnKaOz Rose Bot", "Then Dont Open This Program")

Exit

EndIf

MsgBox(4,"aZnKaOz Bot","Click Yes Then Switch To Rose Window")

WinWaitActive("ROSE online")

$size = WinGetPos("ROSE online")

If @error Then

msgbox(4,"aZnKaOz Rose Bot","Might Wanna Open Rose First Restart Bot")

EndIf

Do

$mon = PixelSearch( $size[0], $size[1], $size[2], $size[3], $Pixel, 3 )

If Not @error Then

$file = FileOpen("log.txt", 1)

If $file = -1 Then

MsgBox(0, "Error", "Unable to open file.")

Exit

EndIf

FileWrite($file, "Clicked mob at X: " & $mon[0] & ", Y: " & $mon[1] & @CRLF)

MouseClick("left", $mon[0], $mon[1], 10)

Sleep(8000)

Send("{F1}")

Send("{F2}")

Else

Send("{LEFT}20")

EndIf

Until $X = 1

Exit

Share this post


Link to post
Share on other sites

works pretty slow? anyone help with improvements

$X = 0

$Pixel = 0xADBE4A

$start = MsgBox(4, "aZnKaOz Rose Bot", "Click Yes To Start")

If $start = 7 Then

MsgBox(0, "aZnKaOz Rose Bot", "Then Dont Open This Program")

Exit

EndIf

MsgBox(4,"aZnKaOz Bot","Click Yes Then Switch To Rose Window")

WinWaitActive("ROSE online")

$size = WinGetPos("ROSE online")

If @error Then

msgbox(4,"aZnKaOz Rose Bot","Might Wanna Open Rose First Restart Bot")

EndIf

Do

$mon = PixelSearch( $size[0], $size[1], $size[2], $size[3], $Pixel, 3 )

If Not @error Then

  $file = FileOpen("log.txt", 1)

  If $file = -1 Then

   MsgBox(0, "Error", "Unable to open file.")

   Exit

  EndIf

  FileWrite($file, "Clicked mob at X: " & $mon[0] & ", Y: " & $mon[1] & @CRLF)

  MouseClick("left", $mon[0], $mon[1], 10)

  Sleep(8000)

  Send("{F1}")

  Send("{F2}")

Else

  Send("{LEFT}20")

EndIf

Until $X = 1

Exit

<{POST_SNAPBACK}>

Hello i understand your Prob i have a very old comp Windows xp Home Service Pack 2 , Pentium3 933 MHz and it wörks very fast !I :idiot:

Wat is Slow for you=?

Edited by DirtyBanditos

Share this post


Link to post
Share on other sites

i ono ppl said it ran slow lol o well thankz anyways well is there anyway to speed up the pixel detection??

Edited by aznkaoz

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...