Sign in to follow this  
Followers 0
Seagul

Help on my Flyff Bot

20 posts in this topic

#1 ·  Posted (edited)

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

Share this post


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.

Share this post


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)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

wow i just looked at the script and got what it was doing =o

the only thing i dont get is what does Dim do ???????

Edited by thatsgreat2345

Share this post


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

Share this post


Link to post
Share on other sites

u know if u just work on his script and if he pastes his health script then u wont have to work on mine as long as he gives me the bot :whistle:

Share this post


Link to post
Share on other sites

Do

$x1 = 40

$y1 = 80

$x2 = 116

$y2 = 130

make a rectangle in the top right corner???????

Share this post


Link to post
Share on other sites

Do

$x1 = 40

$y1 = 80

$x2 = 116

$y2 = 130

make a rectangle in the top right corner???????

<{POST_SNAPBACK}>

left corner (think of 640x480)

40 would be closer to the left side of the screen thanb the right

8)

bye


NEWHeader1.png

Share this post


Link to post
Share on other sites

left corner (think of 640x480)

40 would be closer to the left side of the screen thanb the right

8)

bye

<{POST_SNAPBACK}>

but if hes searching the mini map then its in the top right corner

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

ok like step1 working but now I have problem I want it to stop while its fighting the monster and make sure targets hp is dead before it goes to another.

Share this post


Link to post
Share on other sites

#13 ·  Posted

where can i DL the Flyff bot program is said that the file about is 80MB?

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Wow guys way to dig up THE OLDEST topic ever with me in it when i was a n00b way to go but in the new Flyff no autoit program will work on it because of GG so deal with it

Share this post


Link to post
Share on other sites

alright. sorry like i said, i am a noob

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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]

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  
Followers 0