SRL Archive - Help

How do I repeat until...


Jokester

2012-04-01 13:30:38

How would i make the repeat until it no longer finds an item in inventory slot 28?

if FindDTM(hAlch,x,y,MIX1,MIY1,MIX2,MIY2) then
begin
Mouse(x, y, 1, 1, True);
if InvMouse(28, 1) then
Wait(RandomRange(25, 100));
end;

Brandon

2012-04-01 13:32:53


Repeat
//...................
Until(Not ExistsItem(28));

Jokester

2012-04-01 13:34:49

From: ggzz

Repeat
//...................
Until(Not ExistsItem(28));


Finally! I couldn't find anything helpful in the function list. Thanks a lot i'll try it out.

Joe

2012-04-01 16:24:52

I usually use a DTM on a bank noted item- lets say steel chainbody…
I just put in the DTM and run the procedure until its not found- meaning I either ran out of nats (which I also DTM) or chains… its tedious but a hell of a lot faster than invslot.