maxzzz
2006-03-19 02:56:18
Error: Variable Expected, can't find out how to solve this.
procedure WaitWhileString;
(global) var
Stringed, StringedReport, Banked, Loops, AverageBows, Made, BsColorInv : Integer;
AverageMultiplier, AverageBowsEx : Extended;
InvString, InvBow, InvStringRe, InvBowRe : Tpoint;
begin
repeat
FindRandoms;
if(FindObjIn('Use Bow', 846, 574, 877, 600, BsColorInv, 5))then //----> Variable Expected.
begin
InvStringRe := ItemCoords(27); // returns coords of string
CMouse(InvStringRe.X, InvStringRe.Y, 4, 6, true); // Moves mouse to string and clicks left
wait(50+random(25)); // wait 10-15 ms
InvBowRe := ItemCoords(28); // returns coords of bow
CMouse(InvBowRe.X, InvBowRe.Y, 4, 6, true); // Moves mouse to pos and clicks left
wait(50+random(25)); // wait 10-15 ms
end;
until(not(ExistsItem(27)))or(not(ExistsItem(28)));
end;