Don't know if anybody wants, but I made a salvaging function.
Add this somewhere:
Code:
Func SalvageLoot() GUICtrlSetData($lblStatus, "Status: Salvaging items")
; Check if at stash or portal
If($StashLoot) Then
Sleep(Random(1000, 1500))
MouseClick("left", 1771*$x_ratio, 717*$y_ratio)
Sleep(Random(1500, 2000))
MouseClick("left", 1482*$x_ratio, 377*$y_ratio)
Else
Sleep(Random(1000, 1500))
MouseClick("left", 1833*$x_ratio, 570*$y_ratio)
Sleep(Random(1500, 2000))
MouseClick("left", 1426*$x_ratio, 378*$y_ratio)
EndIf
; Click on salvage button
Sleep(Random(1500, 2000))
MouseClick("left", 267*$x_ratio, 298*$y_ratio)
Sleep(Random(1500, 2000))
;Magic
While $SalvageMagic
Sleep(Random(100, 300))
$MagicPixel = PixelSearch(1398*$x_ratio, 572*$y_ratio, 1914*$x_ratio, 888*$y_ratio, 0x182037, 2)
If Not @error Then
GUICtrlSetData($lblStatus, "Status: Salvaging..")
MouseClick("left", $MagicPixel[0], $MagicPixel[1])
Else
ExitLoop
EndIf
WEnd
Sleep(Random(1000, 3000))
GUICtrlSetData($lblStatus, "Status: Done with salvaging.")
Send("{ESCAPE}")
EndFunc
Also add this under vendoring in settings:
Code:
;Salvaging$SalvageLoot = True
$SalvageMagic = True
And add this in between the other 2 calls under the comment ";After successful run"
Code:
If $SalvageMagic Then Call("SalvageLoot")
EndIf
This works with or without stashing enabled, obviously doesnt work with vendoring enabled, so disable that one before enabling this. Maybe a nice function to add in the pastebin script?