KingKong
2010-12-14 00:05:28
{*******************************************************************************
function R_DepositAllID(ID : Integer): Boolean;
By: Zyt3x, updated by: Traveler
Description: Deposits all the items with the specified ID
*******************************************************************************}
function R_DepositAllID(ID : Integer): Boolean;
begin
if(R_CountItemID(ID) = 1) then
Result := R_ClickItemID(ID, False, 'Deposit')
else
Result := R_ClickItemID(ID, False, 'All');
end;
Doesn't work as it is supposed to, only deposits one item even if there are more. But Changing R_ClickItemID(ID, False, 'All') to R_ClickItemID(ID, False, 'll') seems to solve the problem.