Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Commit

Permalink
Removed WaitCondition.
Browse files Browse the repository at this point in the history
  • Loading branch information
cohenadair committed Apr 2, 2011
1 parent fa51005 commit ea1aa13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MSI/Core/Banking.simba
Expand Up @@ -375,7 +375,7 @@ begin
SetLength(itemsWithdrew, Length(Items));

for i := 0 to High(Items) do
if (WaitCondition(FindDTM(MSI_Items[Items[i]].DTM, x, y, MBX1, MBY1, MBX2, MBY2), 250, 5000)) then
if (FindDTM(MSI_Items[Items[i]].DTM, x, y, MBX1, MBY1, MBX2, MBY2)) then
begin
MSI_Debug('Found item in bank: '+Capitalize(MSI_Items[Items[i]].Name));

Expand All @@ -396,7 +396,7 @@ begin
if (WaitColor(254, 401, ClBlack, 0, 1200)) then
TypeSend(IntToStr(Amounts[i]));

itemsWithdrew[i] := WaitCondition(FindDTM(MSI_Items[Items[i]].DTM, x, y, MIX1, MIY1, MIX2, MIY2), 250, 5000);
itemsWithdrew[i] := FindDTM(MSI_Items[Items[i]].DTM, x, y, MIX1, MIY1, MIX2, MIY2);
end;

for i := 0 to High(itemsWithdrew) do
Expand Down

0 comments on commit ea1aa13

Please sign in to comment.