Results 1 to 6 of 6

Thread: InvFull?

  1. #1
    Join Date
    Apr 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default InvFull?

    Hi, I'm making a script to pickup Wine of Zamorak.

    I've mastered everything except, how do I tell the bot when the inventory is full?

    When I write:

    Repeat
    Blah;
    Until(InvFull)

    And click run, this happens?

    Compiled successfully in 343 ms.
    Error: Exception: The bitmap[0] does not exist at line 664

    Thanks.

  2. #2
    Join Date
    Sep 2012
    Posts
    270
    Mentioned
    4 Post(s)
    Quoted
    97 Post(s)

    Default

    Or you make it count the amount of wines grabbed and let it stop after 27 times

  3. #3
    Join Date
    Nov 2011
    Location
    United States
    Posts
    815
    Mentioned
    6 Post(s)
    Quoted
    284 Post(s)

    Default

    That Error shouldn't have anything to do with calling InvFull. Idk what the error is for without you posting the rest of the code.

    As long as you do something like

    Repeat
    (grab wines or whatever);
    Until (InvFull);


    or While Not (invFull) do

    Then you should be fine, its an error cause of something else.

  4. #4
    Join Date
    Apr 2013
    Location
    Las Vegas
    Posts
    111
    Mentioned
    1 Post(s)
    Quoted
    35 Post(s)

    Default

    or

    repeat
    // grabwine function
    until (ItemExists(28));

  5. #5
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    InvFull isn't causing that problem, so changing it to something won't help. Could you show us the whole script?
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  6. #6
    Join Date
    Mar 2008
    Posts
    426
    Mentioned
    1 Post(s)
    Quoted
    116 Post(s)

    Default

    I like to use something like...

    Code:
    begin
      repeat
      if invfull then
        DoBankProcedure;
      repeat
        findzammywine;
      until(invFull)
    
    until(Collected1000wines)
    end.



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
  •