Bonjour,
En regardant d'un peu plus près la fonction Grabit, on peut voir ceci (version 6.13 du bot):
Dim $CoordVerif[3]
; Local $IgnorePoint = 7500; Remplaced by var g_time <-- If something is not grabbed/killed in this time we give it up
ConsoleWrite("Grabbing :" & ($name) & @CRLF) ;FOR DEBUGGING
If (StringInStr($name, "gold")) Then
$CoordVerif[0] = _MemoryRead($offset + 0xB0, $d3, 'float')
$CoordVerif[1] = _MemoryRead($offset + 0xB4, $d3, 'float')
$CoordVerif[2] = _MemoryRead($offset + 0xB8, $d3, 'float')
$Coords = FromD3toScreenCoords($CoordVerif[0],$CoordVerif[1],$CoordVerif[2])
MouseClick("middle", $Coords[0], $Coords[1], 1, 5)
Else
Interact($CoordVerif[0],$CoordVerif[1],$CoordVerif[2])
EndIfDans le cas où l'item à ramasser n'est pas de l'or, le tableau $CoordVerif n'est pas renseigné et donc le bot ne peut pas cliquer au bon endroit.
Ne faudrait-il pas déplacer les lignes 1991 à 1995 juste au dessus du if comme ceci :
Dim $CoordVerif[3]
; Local $IgnorePoint = 7500; Remplaced by var g_time <-- If something is not grabbed/killed in this time we give it up
ConsoleWrite("Grabbing :" & ($name) & @CRLF) ;FOR DEBUGGING
$CoordVerif[0] = _MemoryRead($offset + 0xB0, $d3, 'float')
$CoordVerif[1] = _MemoryRead($offset + 0xB4, $d3, 'float')
$CoordVerif[2] = _MemoryRead($offset + 0xB8, $d3, 'float')
$Coords = FromD3toScreenCoords($CoordVerif[0],$CoordVerif[1],$CoordVerif[2])
If (StringInStr($name, "gold")) Then
MouseClick("middle", $Coords[0], $Coords[1], 1, 5)
Else
Interact($CoordVerif[0],$CoordVerif[1],$CoordVerif[2])
EndIfPeut-être que cela pourrait expliquer certains objets non ramassés.
En espérant que ma remarque sera constructive