Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help me with FishBot

Discussion on Help me with FishBot within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 5
Received Thanks: 0
Post Help me with FishBot

I made a simple fishbot. But I need help with the syntax

WinWaitActive ("METIN2")
$raby = Send("{SPACE}")
while 1
$coord = PixelSearch( 393, 126, 412, 133, 0xFCF8FC, 30)
If Not @error Then
$ryba = Send("{SPACE}")
EndIF
IF $ryba Then
Send("{F4}")
EndIF
WENd

When you find the fish so he pulls himself and NAND bait but then stops.
I do not know how I create the loop itself to hunt fish. Everything is OK except for the loop.
I imagine it like this:
Fishbot on ...
Cast rod. (Send space)
Wait for the fish.
Pull rod.
Apply bait. (Send F4)
-> And still the circle (loop)
Excuse my bad English, I used Google Translate.

Thank you very for your help!
Eflyax is offline  
Old 04/17/2010, 21:10   #2
 
kajaman's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 133
Received Thanks: 12
Hey do you want the bot to restart after he got a fish ?
is your problem that the bot stops after getting a fish ?
kajaman is offline  
Old 04/17/2010, 21:14   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 5
Received Thanks: 0
Quote:
Originally Posted by kajaman View Post
Hey do you want the bot to restart after he got a fish ?
is your problem that the bot stops after getting a fish ?

Yes, he used bait fish catch and stop working.
The problem is in that condition:
$coord = PixelSearch( 393, 126, 412, 133, 0xFCF8FC, 30)
If Not @error Then
$ryba = Send("{SPACE}") << here
EndIF
IF $ryba Then
Send("{F4}")
EndIF
WENd

There is the problem, those commands work only as long as the fish will appear. then it's over.

Game: Metin2
Eflyax is offline  
Old 04/17/2010, 21:22   #4
 
kajaman's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 133
Received Thanks: 12
Smile

I think it must be right now you made $ fish but it must be $fish anit must be ("{Space}")
Code:
WinWaitActive (Metin2)
$Fish = Send ("(SPACE)")
While 1
$Coord = PixelSearch (393, 126, 412, 133, 0xFCF8FC, 30)
If Not @error Then
$Fish = Send ("(SPACE)")
Endif
IF $fish = 0 Then
Send ("(F4)")
Endif
Wend
tell me if it isnt working
kajaman is offline  
Old 04/17/2010, 21:28   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 5
Received Thanks: 0
WinWaitActive (Metin2)
$ Fish = Send ("(SPACE)")
WHILE 1
$ Coord = PixelSearch (393, 126, 412, 133, 0xFCF8FC, 30) <<That's okay, It Works
If Not @ error Then <<condition: if it turns out to fish ...
$ Fish = Send ("(SPACE)") <<press the space bar (pull out a fish)
And here I need to add additional commands. These commands do not work but because the fish disappears and it stops working.
(Pulls out the fish and continue doing nothing)
Endif
Wend
Eflyax is offline  
Old 04/17/2010, 21:31   #6
 
elite*gold: 0
Join Date: Apr 2010
Posts: 5
Received Thanks: 0
I need that there was a functional loop:

1 search for fish.
2 Pull the fish
3, use bait rod
4 cast a rod into the water

A repeat from the beginning (loop)
Eflyax is offline  
Old 04/17/2010, 21:39   #7
 
kajaman's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 133
Received Thanks: 12
Dont know sry i Look for an answere
kajaman is offline  
Old 04/17/2010, 21:48   #8
 
elite*gold: 0
Join Date: Apr 2010
Posts: 5
Received Thanks: 0
Eflyax is offline  
Reply

Tags
autoit fishbot


Similar Threads Similar Threads
PiroX FishBot - a first class fishbot
02/03/2010 - WoW Bots - 484 Replies
:: Ultimate PiroX FishBot for World of Warcraft :: coded with AutoIt PiroxBots.com ] This is a first class fishbot for World of Warcraft. It's a pixel bot without reading memory and without injection. You find the download link at the bottom. http://www.piroxbots.com/gfx/fishbot/piroxfishbot .gif
fishbot
06/19/2007 - Final Fantasy XI - 1 Replies
I cant seem to find a good fishbot on this site...might anyone have a fishbot they are willing to share? thank you



All times are GMT +2. The time now is 15:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.