You may have heard about me when I first started posting in the OPIE fishing bot script thread here: http://www.autohotke...707.html#431707
My intent wasn't to hijack the thread, so after a long break from WoW I decided to start some fishing / botting again and figured I'd post up my progress.
I've gone through a bunch of changes in my script, most of which were unintended [lol] but for the most part I have something that is pretty stable and works well.... under the right conditions.
So below, you will see a copy of my main script and definitions for most things are [hopefully] well noted.
Please - if you have any questions post below.
NOTES:
The main problems people have when trying to use this are:
1. The pixelsearch color '0xFAE6E6' is incorrect for your computer. I don't know why it makes a difference, but sometimes you have to edit this if it is not moving the mouse to the fishing bobber location.
2. The program keeps exiting about 5-10 seconds after launch. This is because it thinks you are dead. You can verify this by 'blanking' out with semicolons, the Alive subroutine, and the call for the subroutine. If that fixes it, you need to adjust the color '0x00C600' to match your healthbar. Sometimes a simple tweak does the trick.
Anyway, if I can figure out how to upload a video of this in action to a place that conceals my identity, I will try.
Good Luck!
-Mike the Fishmonger. Level 85 Warlock
; Auto fishing script by Mike the Fishmonger
; 01/14/12
; The script works when you first set up your character in a certain way. I'm sure this can be tweaked to better work on a wider variety of computers at some point.
; Make sure the warcraft video option is set to 'windowed' and not full screen
; Make sure your desktop screen resolution is [u]at least 1920X1080[/u]
; Make sure your character is in a place with wide open fishing, like an ocean
; Make sure the camera is zoomed all the way into the first person view
; Make sure the fishing horizon is centered on the X axis, so the bottom half of the screen is water and the top half of the screen is sky
; Make sure your fishing pole is equipped, AND bound to the '1' key.
; If you have a weather beaten fishing hat, put it on! It will auto apply your lure
; the 'Header' of the script
;This defines the key press delay [I wouldn't suggest making it quicker - slow and steady wins the race!]
SetKeyDelay, 60
; Activates the WoW window
WinActivate, World of Warcraft
; Resets the size and position of the window
Winmove,World of Warcraft,,0,0,1820, 1051
; Waits a bit
Sleep, 1500
; Sets up a do not disturb message incase people whisper you. Feel free to change to make it unique to your character
send, /dnd Hello - I am really really concentrating right now, I will get back to you when I'm not so busy... thanks!
; Waits a bit.. again.. I'm not gonna explain the 'sleeps' anymore lol
sleep, 100
send, {enter}
sleep, 500
;this initial loop will use the "weather beaten fishing hat every 10 minutes to reapply the buff. You can change it to use a different type of fishing lure / buff if you want.
loop,75
{
send , /use 1
send {enter}
sleep, 6000
; This loop activates the WoW window, casts your fishing rod [send, 1] and goes to the fishing subroutine
loop, 50
{
WinActivate, World of Warcraft
send, 1
sleep, 2000
gosub fish
sleep, 2000
}
}
exitapp
; The main fishing subroutine. This does a search of pixels in a certain 'hit box' in front of your character and looks for the color of the top of the fishing lure. The color may need to be adjusted to suit your particular fishing location. You can use AutoItWindowSpy to look for the color of your fishing lure if you need to change it. Just cast your lure, take a screen shot, paste it in 'paint' program, zoom in like 8X, then AutoItWindowSpy to get the exact color on the lure you want to search for. I choose a bright bright white spot and it seems to work good.
; After pixel searching, it will move the mouse to the location of the color found in pixelsearch
; It will then wait 8 seconds [the time when the second fish would 'bite' and clicks your right mouse button. I chose 8 seconds since it seems like the middle fish was the one most prominent.
fish:
gosub alive
PixelSearch, Px, Py, 514, 474, 1315, 820, 0xFAE6E6, 60, fast
Mousemove, %Px%,%Py%,50
sleep, 8000
mouseclick, right
return
; This subroutine will check to see if you are alive. LOL. I had trouble with people ganking me while I was fishing all night. This does a search of your healthbar to check the color at location 202,78. It should be green. If you have tidyplates or something like that it will probably interefere. If you are alive [and it sees green] it keeps fishing. If you are dead [no green] it exits the app.
alive:
Pixelgetcolor, color, 202,78
;msgbox, %color%
if color <> 0x00C600
{
exitapp
}
return





