Hey everyone I need the answer to this urgently.
WTF is wrong with this code? After the second FindNormalRandoms is triggered by the old man giving away cash, it keeps returning true.
In turn, it will click the pie, click the range, wait, click the pie, click the range, wait, etc. Why does FindNormalRandoms keep returning true, even though the onld man has left?
It works fine with the other old man, sandwhich lady, etc, but on this one it stuffs up
SCAR Code:
procedure Cook;
var
c,b: Integer;
begin
FindNormalRandoms;
if ClickInvBmp(UncookedBmp,70,'') then
begin
if FindObj(x, y, 'ange', RangeColor, 30) then
begin
Mouse(x,y,2,2,True);
Flag;
Wait(1500+random(500));
if FindNormalRandoms then //This is the one that keeps answering true
begin
Cook;
Exit;
end;
ClickText('oked appl',NPCchars,MCX1,MCY1,MCX2,MCY2,false);
Wait(1500+random(100));
if ClickOption('5',3) then
begin
wait(2500+random(500));
repeat
Talk;
AntiBan;
if FindNormalRandoms then
begin
Cook;
Exit;
end;
wait(500);
until (AllCooked);
end;
end;
c:=InvCheck('cooked');
b:=InvCheck('burnt');
Cooked:=Cooked+c;
ReportVars[0] := ReportVars[0] + c;
Burnt:= Burnt+b;
ReportVars[1] := ReportVars[1] + b;
ProgressReport;
repeat
ClickInvBmp(BurntBmp,70,'mpty');
wait(300+random(200));
until InvCheck('burnt')=0;
repeat
ClickInvBmp(CookedBmp,70,'');
Wait(300+random(200));
until InvCheck('cooked')=0;
repeat
ClickInvBmp(HalfPieBmp,70,'');
Wait(300+random(200));
until InvCheck('halfpie')=0;
end;
end;
Please can someone tell me? Thanks in advance.