Results 1 to 4 of 4

Thread: How do I repeat until...

  1. #1
    Join Date
    Jun 2011
    Location
    Anywhere that has WIFI
    Posts
    669
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How do I repeat until...

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

    Simba Code:
    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;

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Simba Code:
    Repeat
    //...................
    Until(Not ExistsItem(28));
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jun 2011
    Location
    Anywhere that has WIFI
    Posts
    669
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    Simba Code:
    Repeat
    //...................
    Until(Not ExistsItem(28));
    Finally! I couldn't find anything helpful in the function list. Thanks a lot i'll try it out.

  4. #4
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •