Log in

View Full Version : How do I repeat until...



Jokester
04-01-2012, 05:30 PM
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
04-01-2012, 05:32 PM
Repeat
//...................
Until(Not ExistsItem(28));

Jokester
04-01-2012, 05:34 PM
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
04-01-2012, 08:24 PM
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.