Results 1 to 6 of 6

Thread: Withdraw Bug

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Withdraw Bug

    Heres another bug! This time, while using
    Simba Code:
    Withdraw(1, 1, 28);
    It withdraws what is in 2, 2 instead. This is the same when I type 2, 3, it will actually withdraw 3, 4. Do I just have to enter my things +1, or is there a way to fix this?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    remember: numbers start at 0 not 1... array[0] is before array[1]. so on and so forth.
    http://en.wikipedia.org/wiki/Zero-based_numbering

  3. #3
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

  4. #4
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Should work now, thanks!
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  5. #5
    Join Date
    Mar 2012
    Posts
    690
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    You could also do something like this to skip withdrawing from one specific slot
    Simba Code:
    if FindBitmapToleranceIn(VialWater, x, y, 23, 82, msx2, msy2, 35) then
    begin
      Mouse(x, y, 7, 7, false);
      WaitOptionMulti(['ithdraw-14', '-14'], 750);
    end;
    make is start searching on 23, 82 so it wont try to click on any item thats in the tab selector

  6. #6
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Yeah as others have said the rows/cols start at 0.

    I just submitted a Gihub request to add more detail to the function explanation so hopefully people don't have issues with this in the future. I was so frustrated the first time I used this and it wasn't working.

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
  •