Skip to content

Instantly share code, notes, and snippets.

@immutef
Last active December 15, 2015 16:09
Show Gist options
  • Save immutef/5286663 to your computer and use it in GitHub Desktop.
Save immutef/5286663 to your computer and use it in GitHub Desktop.
Diablo 3 Crafting Helper

Usage

Select the gem/item you want to craft, then point your mouse over the crafting button. Now execute the craft.py script followed by the number of gems/items you want to craft.

$> ./craft.py <number>

Wait while the craft button is pressed every 3.6 seconds until everything is crafted.

#!/usr/bin/env python
import autopy
import sys
import time
from progressbar import ProgressBar
def craft(items):
progress = ProgressBar()
for i in progress(range(int(items))):
autopy.mouse.click(autopy.mouse.LEFT_BUTTON)
time.sleep(3.6)
craft(sys.argv[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment