-
Active Member
BK's Lazy Craftsman
Enter "The Lazy Craftsman"
This is my autoit "The Lazy Craftsman" tool for automating the following:
1. Myriam Enchanment
2. Salvage
3. Kanai Cube Rare Upgrader
4. Kanai Cube Material Converter
5. Hide Inventory/SkillBar, Portrait... for vidcapturing your bot sessions and hiding your identity. (version 20180225 and up)
New Version (20180226) works on any resolution, any language!
You will need:
i) AutoIt installed anywhere you like
ii) Capture2Text (Capture2Text). Install under C:\Capture2Text folder.
For compatibility, please use Capture2Text version 4.5.1
If you are using a different OCR, simply modify/edit my codes pertaining to OCR
iii) Lazy Craftsman source code.
In order to support any language, any resolution,
you will need to INITIALIZE first by clicking
"CTRL-ALT-I" and follow the instructions.
INSTRUCTION: MYRIAM ENCHANTMENT (CTRL-ALT-M together)
1. Enter the desired property (case insensitive)
2. Enter the desired values. For weapon damage, enter the average. ie if you desire the damage be better than 1500~1900, enter 1700.
3. Enter the desired maximum attempts (default 100)
4. hit CTRL-ALT-M
5. goto Diablo3, open Myrian's UI and place your item for enchantment
(you can do step5 before step4 no problem)
If the item is virgin, you need to roll first before it will proceed.
CAVEAT 1: This tool uses Capture2Text for OCR recognition. Some letters are not recognized properly such as the letter "I" could be recognized as "1"; letter "O" for numerical 0 and the like. OCR is also inaccurate with "%" and is sometimes recognized as "0 / 0"; 9% could be OCRed as "53 /0" even.
CAVEAT 2: Do not use "Mages" for property as it will match with Damage. Use "Skeletal" instead. Likewise do not use "IMPALE" because the letter "I" could be OCRed as "1".
CAVEAT 3: In my computer, Capture2Text takes several seconds to "warm up" in it's initial scan; but once its running, it takes about 300ms to OCR. Subsequent OCR does not take much time once warmed up.
INSTRUCTION: SIZE SELECTION
CTRL-ALT-1 Small Item (belt, jewelries)
CTRL-ALT-2 Large Item (everything else)
You can change item size even on the fly.
INSTRUCTION: SALVAGE (CTRL-ALT-S together)
1. Open Blacksmith and go to Salvage Tab
2. Press CTRL-ALT-S
INSTRUCTION: KANAI RARE ITEM UPGRADE (CTRL-ALT-K together)
1. Open Kanai
2. Goto Recipe Page 3
3. Press CTRL-ALT-K
(Step3 must be performed LAST)
NOTES:
* Only Rare Items will be upgraded. Your inventory can have other items.
* To improve speed/performance: slow error checking codes were removed,
and you cannot combine small items and large items together as a result.
* You must ensure there are no other items in your inventory other than Rares of the same size.
INSTRUCTION: KANAI MAT CONVERSION (CTRL-ALT-K together)
1. Open Kanai
2. Goto Recipe Page 7 or 8 ot 9
3. Hit CTRL-ALT-K
NOTE:
* To improve speed/performance, slow error checking was removed in this part.
* There is no error checking for using inappropriate item (such as using Legs).
* You can use small and large items together
* You must ensure there are no Legendary items in your inventory or it will fail.
CTRL-ALT-K does two things: Upgrade and Convert.
The routine is fairly simple and can be used to do two things, so I made it do two things!
OTHER COMMANDS
CTRL-ALT-1 small size item
CTRL-ALT-2 large size item
CTRL-ALT-A abort current task
CTRL-ALT-X exit program
CTRL-ALT-I Initialization (You need to Initialize on your very first use otherwise it will not work)
Initialization is the part that you set the coordinates in order to support any language, any resolution.
CTRL-ALT-H Hide
NOTE: Lower Left corner is reserved for Potion. It will not touch that spot.
If there are errors with other resolution, please post.
Last edited by burgaud; 02-26-2018 at 09:53 AM.
-
Post Thanks / Like - 2 Thanks
-
Member
Installed as directed in script. Resolution is the same. After hitting CTRL+ALT+any option it says Waiting on "Cube/etc..". Have I missed something?
-
Active Member
Capture2txt takes a long time to initialize on it's first run.
it is a capture2txt issue.
-
Member
5 minutes in and it's still waiting for cube for me, and it seems to be lagging the game, it looks like it's constantly taking screenshots to process the image but can't seem to find Kanai's cube, even though it's open to page 3 and all the items are in inventory ready to go. Running Kanai upgrade. Running AutoIT Run Script x64.
-
Member
well theres certainly nothing lazy about your approach to achieving laziness, respect
-
Member
not working here either, wait for salvage. capture is installed properly and is working.
anyway, if anyone want only the salvage part like me do this :
go to func salvage, and put a ";" before wait diablo. be sure that you are in salvage ui at blacksmith.
func SalvageLegendary()
;WaitDiablo3("SALVAGE")
no ideea which func actually require capturetext to work, salvage seems not. (only enchanting ? ).
thanks burgaud for script !.
Last edited by fr0ggy; 07-09-2017 at 10:44 AM.
-
Member
screen goes black , does not work, only trie for salvage
-
Active Member
Requirements:
1. AutoIt (can be installed anywhere)
2. Capture2Text (must be installed under folder C:\Capture2Text)
Did you install Capture2Txt?
-
Member
trying to get this to work and only getting black screen (rare upgrades). installed C2T on c/capture2text and running the script in autoit, when i tried in windowed mode it only said "waiting on kube". running it in 1920-1080p
-
Member
I was able to get this to working with enchanting, but I had to modify the script to use the capture2text_cli.exe with the appropriate parameters and I had to move my default cmd prompt window location to get it out of the way. I'm guessing that an older version of capture2text had the command line interface built in the main exe file. Thanks for all the hard work!!
-
Member
Version 3.9 of Capture2Text has the "old style" in there, which works. FYI
Also, use Windowed Full Screen, not "Full Screen". Makes a huge difference.
Last edited by speshulk926; 08-14-2017 at 10:17 PM.
-
Member
Waiting for ENCHANT /
left it for about 30 minutes and nothing happens
-
Member
Inventory coordinates dont seem to be right. Starts to look for yellow items (rareupgrade) or items to salvage at the right end of the inventory and continues to go through it totally out of the window
-
Member
Originally Posted by
Roycinger
Inventory coordinates dont seem to be right. Starts to look for yellow items (rareupgrade) or items to salvage at the right end of the inventory and continues to go through it totally out of the window
we solved it , but thx xD
-
Member
Originally Posted by
Comshark87
I was able to get this to working with enchanting, but I had to modify the script to use the capture2text_cli.exe with the appropriate parameters and I had to move my default cmd prompt window location to get it out of the way. I'm guessing that an older version of capture2text had the command line interface built in the main exe file. Thanks for all the hard work!!
Since you didn't post how you did it.. I worked through the problem and found that I only needed to change the OpticalRead function. The following code works with version 4.5.1 assuming you followed all the instructions clearly:
func OpticalRead ($x1,$y1,$x2,$y2)
; Print( stringformat("%02d:%02d:%02d OCR",@HOUR,@MIN,@SEC) )
ClipPut("")
$cli_cmd = stringformat("%s %d %d %d %d %s ", 'C:\Capture2Text\Capture2Text_CLI.exe -s "' , $x1, $y1, $x2, $y2, '" --clipboard')
RunWait(@ComSpec & " /c" & $cli_cmd, 'C:\Capture2Text\', @SW_HIDE)
sleep(100)
return( ClipGet() )
endfunc