make sure that says false or it will vendor anything in the bag regardless of other settings. In the new version it needs to be set to 0 not false I am using an older version.
I use an older version and it only works for me because the way mine is setup. I am sure chancity will eventually add it in the bot.
You need to set your ini file so It walks from the repair vendor so if your guy is not going to vendor during the town portion this will not work for you.
Code:
Func SalvageMagic()
GUICtrlSetData($lblStatus, "Status: Salvaging Magic Items")
RandClick("left", Round(873 * $x_ratio), Round(958 * $y_ratio), 1, 1)
Sleep(Random(1500, 2000))
RandClick("left", Round(873 * $x_ratio), Round(958 * $y_ratio), 1, 1)
Sleep(Random(1500, 2000))
RandClick("left", Round(1609 * $x_ratio), Round(585 * $y_ratio), 1, 1)
Sleep(Random(1500, 2000))
RandClick("left", Round(261 * $x_ratio), Round(308 * $y_ratio), 1, 1)
If $SalvageMagic == "True" Then
$c = 0
While $c <= 25
Sleep(Random(100, 300))
$MagicPixel = PixelSearch(1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, 0x182037, 1)
If Not @error Then
MouseClick("left", $MagicPixel[0], $MagicPixel[1], 1, 4)
Sleep(Random(1400, 1600))
$c += 1
Else
ExitLoop
EndIf
WEnd
EndIf
GUICtrlSetData($lblStatus, "Status: Done With Salvage")
Send("{ESCAPE}")
EndFunc ;==>Salvage Magic
Next you need to find this area of code which is under the function restartrun and add the part that is in red
Now you need to add the variables in red so find the one above it and add it below it.
Now you have to edit the stashloot function so it will put your materials in the stash just add the part in red
Code:
Func StashLoot()
GUICtrlSetData($lblStatus, "Status: Putting Items in Stash")
MouseClick("left", 1064 * $x_ratio, 256 * $y_ratio)
Moving(1600)
If $StashLegendary == 1 Then
StashItems(0xFF7F00, 0)
StashItems(0x8F5C25, 1)
EndIf
If $StashRare == 1 Then
StashItems(0x4A3C0B, 1)
EndIf
If $StashMagic == 1 Then
StashItems(0x182037, 1)
EndIf
While $StashTomes == 1
Sleep(Random(100, 300))
If _ImageSearchArea($pngLoc & "TomeIcon.png", 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, $gX, $gY, 140) Then
GUICtrlSetData($lblStatus, "Status: Stashing Tomes")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
MouseClick("right", $gX, $gY, 1, 4)
Sleep(80)
MouseClick("left", 500 * $x_ratio, 200 * $y_ratio, 1, 4)
Else
ExitLoop
EndIf
WEnd
While $StashTear == True
Sleep(Random(1000, 1050))
If _ImageSearchArea($pngLoc & "Tear.png", 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, $gX, $gY, 140) Then
GUICtrlSetData($lblStatus, "Status: Stashing Tears")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
MouseClick("right", $gX, $gY, 1, 4)
Sleep(80)
MouseClick("left", 500 * $x_ratio, 200 * $y_ratio, 1, 4)
Else
ExitLoop
EndIf
WEnd
While $StashWishful == True
Sleep(Random(1000, 1050))
If _ImageSearchArea($pngLoc & "Wishful.png", 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, $gX, $gY, 140) Then
GUICtrlSetData($lblStatus, "Status: Stashing wishful essence")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
MouseClick("right", $gX, $gY, 1, 4)
Sleep(80)
MouseClick("left", 500 * $x_ratio, 200 * $y_ratio, 1, 4)
Else
ExitLoop
EndIf
WEnd
While $StashExquisite == True
Sleep(Random(1000, 1050))
If _ImageSearchArea($pngLoc & "Exquisite.png", 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, $gX, $gY, 140) Then
GUICtrlSetData($lblStatus, "Status: Stashing Exquisite essence")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
MouseClick("right", $gX, $gY, 1, 4)
Sleep(80)
MouseClick("left", 500 * $x_ratio, 200 * $y_ratio, 1, 4)
Else
ExitLoop
EndIf
WEnd
While $StashHoof == True
Sleep(Random(1000, 1050))
If _ImageSearchArea($pngLoc & "Hoof.png", 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 888 * $y_ratio, $gX, $gY, 140) Then
GUICtrlSetData($lblStatus, "Status: Stashing Hoof")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
MouseClick("right", $gX, $gY, 1, 4)
Sleep(80)
MouseClick("left", 500 * $x_ratio, 200 * $y_ratio, 1, 4)
Else
ExitLoop
EndIf
WEnd
;Gems (DOESN'T STASH BOTTOM ROW!)
If $StashGems == 1 Then
GUICtrlSetData($lblStatus, "Status: Stashing Gems")
MouseClick("left", 500 * $x_ratio, 360 * $y_ratio, 1, 4)
Sleep(Random(20, 100))
For $i = 0 To 7
If _ImageSearchArea($pngLoc & $gems[$i], 1, 1400 * $x_ratio, 580 * $y_ratio, 1914 * $x_ratio, 820 * $y_ratio, $gX, $gY, 140) Then
MouseClick("right", $gX, $gY, 1, 3)
EndIf
Next
EndIf
Sleep(Random(1000, 1500))
Send("{SPACE}")
EndFunc ;==>StashLoot
You also need images for for the crafting materials so it will stash them. Names need to be Exquiste.png, Tear.png, Wishful,png and i had to redo uniditified.png because it was trying to identify the crafting material tear. I attached my images which are for 1920x1080 otherwise you will have to make your own. It stashes the crafting materials in tab 2 on the next time it runs the town portion.