Correction De La 1.7

Il y a quelque petite erreur dans le code de la 1.7

Je vais donc utiliser ce post pour vous apporter les corrections nécessaire au bon fonctionnement de ce dernier.


:-->: Si vous définissez "MonsterPriority=" sur true le bot va vous sortir une erreur "array incorrect range blabla"

Correction (remplacer complètement la fonction TriObjectMonster($item) dans toolkit.au3):

Spoiler
Func TriObjectMonster($item)

	Dim $tab_monster[1][10]
	Dim $tab_other[1][10]
	Dim $tab_mixte[1][10]
	Dim $item_temp[10]
	$compt_monster = 0
	$compt_other = 0
	$compt_mixte = 0

	For $i = 0 To UBound($item) - 1
		
		For $z = 0 to 9
			$item_temp[$z] = $item[$i][$z]
		Next
		
		If Is_Mob($item_temp) Then
		
			If UBound($tab_monster) > 1 Or $compt_monster <> 0 Then
				ReDim $tab_monster[UBound($tab_monster) + 1][10]
			EndIf
			For $y = 0 To 9
				$tab_monster[UBound($tab_monster) - 1][$y] = $item[$i][$y]
			Next
			$compt_monster += 1

		Else

			If UBound($tab_other) > 1 Or $compt_other <> 0 Then
				ReDim $tab_other[UBound($tab_other) + 1][10]
			EndIf
			For $y = 0 To 9
				$tab_other[UBound($tab_other) - 1][$y] = $item[$i][$y]
			Next
			$compt_other += 1
		EndIf

	Next

	For $i = 0 To UBound($tab_monster) - 1

		If UBound($tab_mixte) > 1 Or $compt_mixte <> 0 Then
			ReDim $tab_mixte[UBound($tab_mixte) + 1][10]
		EndIf
		For $y = 0 To 9
			$tab_mixte[UBound($tab_mixte) - 1][$y] = $tab_monster[$i][$y]
		Next
		$compt_mixte += 1
	Next

	For $i = 0 To UBound($tab_other) - 1

		If UBound($tab_mixte) > 1 Or $compt_mixte <> 0 Then
			ReDim $tab_mixte[UBound($tab_mixte) + 1][10]
		EndIf
		For $y = 0 To 9
			$tab_mixte[UBound($tab_mixte) - 1][$y] = $tab_other[$i][$y]
		Next
		$compt_mixte += 1
	Next

	Return $tab_mixte

EndFunc   ;==>TriObjectMonster