Hey notAres', good work on the script.
Been using autoit for a couple of weeks now, I have a few questions/suggestions.
In your first post:
Known Working Resolutions 2560x1440
Is this D3 in game video setting?
I noticed that the images in botzip didn't included this res, just wondering.
If not, did you keep ur desktop res at 2560x1440 when you changed it to 1920 x 1080?
Code:
line 89: $vendorAll = "False" ;True if you want to right click all items when talking to vendor
line 740: $vendorAll = IniRead($ini, "Vendoring", "All", $vendorAll)
line 777: IniWrite($ini, "Vendoring", "All", $vendorAll)
I don't have this variable in my ini, and for some reason it doesn't create it.
Yet some how it's still selling stuff despite this check:
Code:
line 618:
If $vendorAll == True Then
For $c = 1 To $vendorCols
For $r = 1 To $vendorRows
RandClick("right", (((($c - 1) * 50) + 32 + 1400) * $x_ratio), (((($r - 1) * 51) + 32 + 580) * $y_ratio), 2, 2, 1, 2.5)
Next
Next
EndIf
I have higher latency, and I have tried dropping $movementSpeed (tested til 12) even when I have 25%ms and this worked to a certain extent. Some bits of the code doesn't account for higher pings, such as the selling action in the code above. I had to add a sleep in there, otherwise it skips over some items. I don't like the idea of spamming right-click when there's delays.... never know what happens, and I am scared of sending right clicking actions.... which is why I commented out all RandClick("right"... even after setting some stuff to false, e.g. $Identify.
Waypoints,
on default, mine were falling short, I can't even see the cellar, so I had to increase my sleep times.
Code:
line 185: RandClick("middle", Round(3 * $y_ratio), Round(370 * $y_ratio), 2, 2) ;waits ~1 second then [waypoint 2]
is this meant to be Round(3 * $y_ratio) or Round(3 * $x_ratio)?
I had to adjust my values to make sure my cursor is on the cellar, but I am unsure of the exact position.
I think it might help others and myself if you included a screenshot of where the DH should be roughly standing in all 3 waypoints + where the cursor should be (centre, top left, bottom right of cellar?). I was reluctant to go from 1.7 to 1.9 because I had to retweak the sleep times. It was a bit of trial and error and it would be nice if you had another variable to account for latency. having the custom functions Moving/RandClick is a nifty feature, but I still had to tweak the other sleep calls. Actually, this might be too troublesome, I think a screenshot should suffice.
The other major problem I have is the pixel detection for the cellar entrance.
I have tweaked mine to sorta find the cellar. But there are instances where it mouses over the cellar to highlight it, but still detects it as not found.
Code:
$Pixel2 = PixelSearch(0, 0, Round(600 * $x_ratio), Round(600 * $y_ratio), 0x334FB7, 3)
I have increased the bbox and it mostly fixes this. I still get misses though. Do you get any misses, apart from the times when you run into a mob and it displaces you?
Check func for town.
I saw how you have images for the wording for different places, perhaps an image of the icon (aura area above exp bar) when you are in town and a func to check if you are in town would be useful.
Thanks again.
D