Results 1 to 10 of 10

Thread: slot 0 is incorrect slot error

  1. #1
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default slot 0 is incorrect slot error

    i keep getting a slot 0 is incorrect slot error from this.

    any idea why? i can't figure it out.
    it doesn't happen everytime just occasionally

    Simba Code:
    procedure cleanherbs;
    var
      slot: integer;
    begin
      if not isLoggedIn then
        exit;
      if not TabBackpack.isOpen then
        TabBackpack.open;

      mouseB := randomRange(0, 3000);
      antiB := randomRange(0, 500);

      case random(10) of                       //select 1 of 3 inv slots to use
        0..7: slot := 1;
        8..9: slot := 6;
        10: slot := 2;
      end;
      tabbackpack.mouseSlot(slot,Mouse_left);       //clicks inv slot
      wait(gaussRangeInt(0,100));

      repeat
        if productionScreen.isOpen then           //verifies production screen open
          break;
        wait(gaussRangeInt(0, 500));
      until productionScreen.IsOpen;

      wait(gaussRangeInt(0, 400));
      productionScreen.clickStart;                // Starts cleaning herbs
      antiban;
      mouseOffClient(4);
      wait(gaussRangeint(14000,19000));
      tabBackPack.mouseSlot(28,MOUSE_MOVE);
      while not isMouseOverText(['lean toadflax']) do
        begin
          wait(gaussRangeInt(0,1500));
          if ismouseOverText(['lean toadflax']) then
            break;
        end;                                       // while doing antiban
    end;

    Im Back... Previously known as Megaleech
    [Herbalife]

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    try
    Simba Code:
    var
      slot: integer := 1;

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

  4. #4
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    nope, no global variable called slots.

    I can't get it to happen anymore. I didn't change anything. i'm not sure what happened.

    Im Back... Previously known as Megaleech
    [Herbalife]

  5. #5
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Saint//+ View Post
    nope, no global variable called slots.

    I can't get it to happen anymore. I didn't change anything. i'm not sure what happened.
    That is weird AF. You might wanna change it to random(11) though, because slot := 2 will never get called

  6. #6
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    That is weird AF. You might wanna change it to random(11) though, because slot := 2 will never get called
    good catch.
    now that you mention that i did change something. the 0..7 was originally 1..7.
    that had to be it.

    Im Back... Previously known as Megaleech
    [Herbalife]

  7. #7
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Saint//+ View Post
    good catch.
    now that you mention that i did change something. the 0..7 was originally 1..7.
    that had to be it.
    I had a feeling you did something like that but forgot to mention it

  8. #8
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    Quote Originally Posted by Saint//+ View Post
    good catch.
    now that you mention that i did change something. the 0..7 was originally 1..7.
    that had to be it.
    That was most likely the problem! I once did the same thing and changing the case to always lands on one fixed it up. Glad you got it working!
    Scripting with ogLib

  9. #9
    Join Date
    Jan 2013
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    56 Post(s)

    Default

    It's always something that should be obvious that takes forever to find ??

    Im Back... Previously known as Megaleech
    [Herbalife]

  10. #10
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    Quote Originally Posted by Saint//+ View Post
    It's always something that should be obvious that takes forever to find ??
    Sometimes it just takes a new perspective.
    ... or a lucky guess
    Scripting with ogLib

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
  •