SRL Archive - Bugs

R_DepositAllID


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.

Bad Boy JH

2010-12-14 02:20:50

why if there are one, are we right clicking in the first place?
surely a left click would suffice.

i luffs yeww

2010-12-14 04:40:04


{*******************************************************************************
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
if(Random(4) <> 2)then
Result := R_ClickItemID(ID, True, '')
else
Result := R_ClickItemID(ID, False, 'Deposit')
else
Result := R_ClickItemID(ID, False, 'All');
end;

Something like that seems better to me. I think ClickItemID(ID, True, '') is right, but I dunno for sure if the last param matters in that case..