Jump to content

Recommended Posts

Ok I am new to autoit but this is what I've got so far, it trys to target an orange dot on mini map when it finds its supposed to click then go attack the target.

But I am having trouble getting it to find the pix it keeps calling me an idiot :whistle:

; Pixy Bot FlyFF
Dim $Color, $Left, $Top, $Right, $Bottom, $SearchResult

WinActivate ("FLYFF")
WinWaitActive("FLYFF")

; Settings / Constants
$Color = 0x7DA6A1; Shade of Orange
$x1 = 40
$y1 = 80
$x2 = 116
$y2 = 130

While 1
    $SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color)
    If @error Then
        Send("{Enter}No Pixel Found idiot{Enter}"); just to check if im doing something right
        Exit
    Else
        MouseClick($Left, $SearchResult[0], $SearchResult[1], 2, 0)
        Sleep("200")
    EndIf
    Sleep(20000)
WEnd
Edited by Seagul
Link to post
Share on other sites

just study this for a moment... and check help

PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )

for you, should this be

$SearchResult = PixelSearch($x1, $x2, $y1, $y2, $Color , 5, 2)

be sure to get the "$Color" and locations from au3help screen

(note.. i have no idea of your "$Color" correctness)

hope it helps

8)

NEWHeader1.png

Link to post
Share on other sites
  • Moderators

In addition to Valuater:

MouseClick($Left, $SearchResult[0], $SearchResult[1], 2, 0)

You have it in Dim, but not defined:

$Left = "left", even if you found the pixel, it won't do anything unless you define it.

And 1 is the "Fastest Click Speed".

Try adding some Opt's.

Opt("PixleCoordMode", 0)
Opt("MouseCoordMode", 0)

Dim $Top, $Right, $Bottom, $SearchResult

WinActivate ("FLYFF")
WinWaitActive("FLYFF")

; Settings / Constants
$Color = 0x7DA6A1; Shade of Orange
$x1 = 40
$y1 = 80
$x2 = 116
$y2 = 130
$Left = "left"

While 1
    $SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color)
    If @error Then
        Send("{Enter}No Pixel Found idiot{Enter}"); just to check if im doing something right
        Exit
    Else
        MouseClick($Left, $SearchResult[0], $SearchResult[1], 2, 1)
        Sleep("200")
    EndIf
    Sleep(20000)
WEnd
Edited by ronsrules

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites
  • Moderators

just study this for a moment... and check help

PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )

for you, should this be

$SearchResult = PixelSearch($x1, $x2, $y1, $y2, $Color , 5, 2)

<{POST_SNAPBACK}>

left = $x1 (Moving side to side is a x - coord)

top = $y1 (Moving Up or Down is a y - coord)

right = $x2

bottom = $y2

So: $SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color)

Was correct.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites

left = $x1 (Moving side to side is a x - coord)

top = $y1 (Moving Up or Down is a y - coord)

right = $x2

bottom = $y2

So:  $SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color)

Was correct.

<{POST_SNAPBACK}>

the x/y that he used was not the question... i thought maybe he wanted to search

...........top 116

left 40..............right 80

.......bottom 130

this would use less of the computers sources

not the following larger and slower rectangle

............top 80

left 40..........................right 116

..........bottom 130

8)

NEWHeader1.png

Link to post
Share on other sites

that for all your replys everyone, cant believe forgot rename the global dim at top lol. ill try it all out, I was wondering how you did variance on colors thanks :whistle:

thats supposed to be 1024*768, in a small 800*600 window looking for a small area in top left corner :dance: need to switching to top right later on.

Edited by Seagul
Link to post
Share on other sites
  • 9 months later...

Also, when you activate your window, where is it on the screen? Pixel search will search those coords on the screen, not on the active window so if the window isnt in the pixel search area then it will nexer find anything.

Edited by Don N

_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Link to post
Share on other sites
  • 2 weeks later...

Ive been working on a flyff bot too, a skill trainer, but the whole pxp buisness ruin thats unless i could get a bot thats and uses skills,

But that is far beyond my abilitys, coudl anyone point me in the right deirection

And is the bot at the top the complete vertion.,, could u make a .exe so i could tranfer easier

Edited by Urfriendaustin
Link to post
Share on other sites
  • 1 year later...

Opt("PixelCoordMode", 0) <------------------------ This True

Opt("MouseCoordMode", 0)

Dim $Top, $Right, $Bottom, $SearchResult

WinActivate ("FLYFF")

WinWaitActive("FLYFF")

; Settings / Constants

$Color = 0x7DA6A1; Shade of Orange

$x1 = 40

$y1 = 80

$x2 = 116

$y2 = 130

$Left = "left"

While 1

$SearchResult = PixelSearch($x1, $y1, $x2, $y2, $Color)

If @error Then

Send("{Enter}No Pixel Found idiot{Enter}"); just to check if im doing something right

Exit

Else

MouseClick($Left, $SearchResult[0], $SearchResult[1], 2, 1)

Sleep("200")

EndIf

Sleep(20000)

WEnd

Edited by Janez
Link to post
Share on other sites
  • 1 month later...

:whistle: hello. hey i need a bot or a hack that help me with the skills or lvl or items or penya so if u have 1 send it to me plz. rod_diaz4@hotmail.com.

i have the flyff augmentation but i know how to use it so if i need to do something or have something like a bypass send it to me plz i realy need it plz . rod_diaz4@hotmail.com :lmao:

Link to post
Share on other sites
  • 1 month later...

i don't know how to make a bot but i can do hacks(plenty of them) i can post 1 here but i lost my bypasser. does som1 here have a bypasser of flyff?

[CENTER][/CENTER][CENTER][/CENTER][CENTER][/CENTER][CENTER][/CENTER][CENTER]Like The Creator Of The Flyff Resource Manager Says"An Eye For An Eye As Soon The Whole World Will Be Blind"[/CENTER][CENTER][/CENTER][center][/center]

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...