Quote:
Originally Posted by jacques52
|
It literally tells you where the problem is. That function wants 3 parameters and you are sending 4.
Heres your function
Code:
Func IdentifyBag($aBag, $aWhites = False, $aGolds = True)
Local $lItem
If Not IsDllStruct($aBag) Then $aBag = GetBag($aBag)
For $i = 1 To DllStructGetData($aBag, 'Slots')
$lItem = GetItemBySlot($aBag, $i)
If DllStructGetData($lItem, 'ID') == 0 Then ContinueLoop
If GetRarity($lItem) == 2621 And $aWhites == False Then ContinueLoop
If GetRarity($lItem) == 2624 And $aGolds == False Then ContinueLoop
IdentifyItem($lItem)
Sleep(GetPing())
Next
EndFunc ;==>IdentifyBag
which means you can send the following parameters
Code:
IdentifyBag($aBag)
IdentifyBag($aBag, False)
IdentifyBag($aBag, False, False)
Since you call your Method like this
Code:
IdentifyBag($lBag, False, True, $store_golds)
the Bot has no idea what to do with the last parameter and it crashes.