A simple script I wrote to automate Fractaline donation in Destiny 2.
The Empyrean Restoration Effort was a limited time event (5 weeks) that provided unprecedented amounts of XP and loot as donating 400 Fractaline instantly completed all weapon bounties. Those bounties granted thousands of XP each, as well as random rolls of medium to high quality gear.
Automating this task saved literally dozens of hours as donating 400 Fractaline takes roughly 20 seconds. Adding in the time to acquire, redeem, and delete weapon bounties a single loop would take around 1.5 minutes. With the amount of Fractaline I myself acquired (~60,000), it would have taken me ~4 hours do donate. Not the most interesting thing to do on a Saturday night. Instead, I spent around 20 minutes learning pyautogui
, which I had never used before, and let it run while I watched Twitch.
Although the event is over and this script is now without purpose, I decided to publicly archive it for others edification. Perhaps this script could be used in part for a future event.
Tested with python 3.7.6 and pyautogui 0.9.48
If you want to use this script for yourself, you may have to adjust the constants defined at the beginning of the file to accomadate different aspect ratios and resolutions.
This script assumes standard keybindings, plus an additional keybind of p
for the quest menu.
Bailing from the script is simple, just move your mouse to one of the 4 corners for a second and the script will exit.
pip install pyautogui
python auto-fractaline.py