Hi guys so I've just spent 2 hours looking through the Jaya Bluffs feather farming bot (updated by RiflemanX) and cannot seem to get past this odd "Bot Stopped, low inventory space error" when first launching the bot as it moves to merchant (with a completely empty inventory)
Any ideas?
Could the culprit that inventorycheck() runs the if statement on countslots, the whole function rather than $FreeSlots, the variable that actually measures free slots?
Image attached for reference:
Code that appears to be the culprit:
Func InventoryCheck()
If CountSlots() < 3 Then
Return True
Else
Return False
EndIf
EndFunc ;==>InventoryCheck
Func CountSlots()
Local $FreeSlots = 0, $lBag, $aBag
If GetChecked($usebag1) Then
$lBag = GetBag(1)
$FreeSlots += DllStructGetData($lBag, 'slots') - DllStructGetData($lBag, 'ItemsCount')
EndIf
If GetChecked($usebag2) Then
$lBag = GetBag(2)
$FreeSlots += DllStructGetData($lBag, 'slots') - DllStructGetData($lBag, 'ItemsCount')
EndIf
If GetChecked($usebag3) Then
$lBag = GetBag(3)
$FreeSlots += DllStructGetData($lBag, 'slots') - DllStructGetData($lBag, 'ItemsCount')
EndIf
If GetChecked($usebag4) Then
$lBag = GetBag(4)
$FreeSlots += DllStructGetData($lBag, 'slots') - DllStructGetData($lBag, 'ItemsCount')
EndIf
Return $FreeSlots
EndFunc ;==>CountSlots