These are scripts I wrote for myself to automate some grinding aspects of GBFR.
Some of the scripts (see below) utilize PixelGetColor to check certain pixels for certain colors, allowing to for example recognize that the "Continue playing this quest?" prompt is on screen and subsequently handling it.
As a result, the scripts that utilize this (Slimepede_Repeat and Repeat_Quest) only work on a 3440x1440 resolution. For other resolutions you will have to change the pixels and colors the script looks for. I'm not sure whether the resolution fix by Lyall is required but I haven't run my scripts without it and I highly recommend using that mod anyway if you're on ultrawide.
You'll have to install AHK. Be sure to get a version that supports AHKv2 scripts.
Load the script you want to run by double-clicking it. You should have an icon for it in the system tray.
All scripts use Shift+Escape as an emergency abort. They're all started with F1 and stopped with Shift+F1. Some of them have a fairly long routine (namely Slimepede) so just use abort. I mainly bound each to the same key so you don't accidentally start two scripts. Just close them in the system tray or use the abort key binding to close them all before loading another script.
First off, I highly recommend installing the unlocking item limit mod.
Script only works correctly on 60+ fps.
Then follow the following steps:
- Lock all stones you intend to keep.
- Set the filter to only show unlocked stones.
- Go to the end of the list, i.e. the stone furthest down.
- Press
F1to start the script. - Press
Shift+F1to stop it. The script will finish its current cycle (i.e. finish one more full sale).
This script should work on all FPS settings, but I recommend setting your game to 30 fps if you're gonna afk grind to save electricity.
- Go into the quest you want to grind.
- Activate the script with
F1. - Press
Shift+F1to stop it.
The script will spam click through the clear screen and recognize when the "Continue playing this quest?" prompt is up and select yes.
This script is intended to be used with Eugen, as on a proper setup he should oneshot most slimes. I regularly get 170 - 190 slime kills with him using this script.
The script will spam click through the clear screen and recognize when the "Continue playing this quest?" prompt is up and select yes. It also walks forward with Eugen to a spot where he can reach the slimes in the back where the prismatic slimes' spawnpoint is. It pause buffers at the start of each quest to sync with random load times.
- Go into the slime quest.
- Activate the script with
F1asap. - Press
Shift+F1to stop it. Note that this will have the script run until the start of the next slime quest. If you want to quit right away, useShift+Escapeto abort the script.