Quote:
Originally Posted by Olddadz
getting error when he goes to sell can anyone help?
says line 532.
|
your IdentifyBag function contains 4 arguments:
$lbag, false, true and store_golds
The error message indicates that the number of arguments is incorrect.
when you look in your gwa2 file, you will find the function IdentifyBag.
You can see that it suggests using 3 arguments
$aBag, $aWhites and $aGolds
And you put 4, so you have one too many.
To go further in understanding the function, I repost it:
Code:
;~ Description: Identifies all items in a bag.
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
this function therefore allows you to choose the bag where you want to identify your items and if you want to identify the whites and/or the golds items
the first argument concerns the bags ($aBag).
the second is used if you want to identify the whites items (Put false or true).
the third is used to identify gold items(Put false or true).
So if you want to identify only the gold items in your bag 1 you use it like this:
Code:
IdentifyBag(1, False, True)
if you also want to identify the blanks you replace the 2nd arguments with true