CephaXz
2012-04-24 10:21:58
Solved, I used if Invfull instead of counting inventory.
2012-04-24 10:21:58
2012-04-24 10:25:14
2012-04-24 10:25:16
function WaitInvCountInc(Time:Integer):Boolean;
var
Inv1,Inv2,t:Integer;
begin
MarkTime(t);
Inv1 := InvCount;
repeat
wait(10);
Inv2 := InvCount;
if TimeFromMark(t) > Time then
begin
Result := False;
Exit;
end;
until(Inv2 > Inv1);
Result := True;
end;
2012-04-24 10:54:34
2012-04-24 10:54:56
From: footballjds
if you want help post the whole script along with the error message
From: Sin
function WaitInvCountInc(Time:Integer):Boolean;
var
Inv1,Inv2,t:Integer;
begin
MarkTime(t);
Inv1 := InvCount;
repeat
wait(10);
Inv2 := InvCount;
if TimeFromMark(t) > Time then
begin
Result := False;
Exit;
end;
until(Inv2 > Inv1);
Result := True;
end;
DAMN got ninja'd by Football -.-
You can learn how to do it from my script ^^
if (IsChatBoxTextAnyLine('decayed', clBlack)) or (FindDTM(decay, x, y, MIX1, MIY1, MIX2, MIY2)) then
begin
if Inventory is more than 25 then
begin
Find pure essence DTM
Right click and deposit 5 pure essence
end else
begin
Withdraw runes to repair my pouch along until pouch is repaired
end;
end;
From: abu_jwka
At the last line of your script or the last line of this little snippet you gave us?
2012-04-24 10:55:58
From: abu_jwka
At the last line of your script or the last line of this little snippet you gave us?