The way fishing works in this game, for the most part, is:
1 - Cast the line (only has to be done once)
2 - Press 'reel in' when you hook a fish. You can spam this button at all times and this part can basically be ignored.
3 - If you hook a larger fish, one of four images comes up on the screen. It will be a box, similar to that of a key on a keyboard, with W,A,S or D in the middle. You then have to spam whatever key that is.
So, what I need the script to do is:
1 - Spam a key at all times.
2 - Check to see if a box comes up, if it does, press the relevant key 10-20 times. The box is essentially always in the same spot, but that can change depending on how I approach the fishing area. It's generally always in the middle of the screen, though.
3 - Loop
Currently the best I can do is a script that psams both the base key and then I spam W, which gives me a 25% chance at catching a rare fish.
I'd love to get this working. I have tried a ton of ImageSearches currently and nothing seems to work. Anyone have any tips I might try to get this working? I don't really have any working code to paste for help, but I am trying to do something like:
Code: Select all
#SingleInstance Force
#NoEnv
SetWorkingDir, C:\Rotations
SendMode Input
CoordMode Pixel
$F8::
Loop
{
ImageSearch FoundX, FoundY, 1148, 585, 1462, 770, fishingicon.bmp
if ErrorLevel = 0
{
Send 0
Sleep 50
}
}