Results 1 to 5 of 5

Thread: GameTab Error oO

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default GameTab Error oO

    ** Warning in GameTab: Tab 2 is not a valid tab number.**
    ** Warning in GameTab: Tab 1 is not a valid tab number.**
    ** Warning in GameTab: Tab 8 is not a valid tab number.**
    ** Warning in GameTab: Tab 1 is not a valid tab number.**
    ** Warning in GameTab: Tab 7 is not a valid tab number.**
    ** Warning in GameTab: Tab 10 is not a valid tab number.**
    ** Warning in GameTab: Tab 6 is not a valid tab number.**
    ** Warning in GameTab: Tab 7 is not a valid tab number.**
    ** Warning in GameTab: Tab 7 is not a valid tab number.**
    ** Warning in GameTab: Tab 9 is not a valid tab number.**
    Successfully executed.

    Code:
    procedure AntiBan;
    begin
      case Random(120) of
        0: RandomRClick;
        1: GameTab(1 + Random(12));
        2: PickUpMouse;
        3: RandomMovement;
        4: BoredHuman;
      end;
    end;
    any help?

  2. #2
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    SCAR Code:
    tab_Combat = 21;
      tab_Stats = 22;
      tab_Quest = 23;
      tab_Diary = 24;
      tab_Inv = 25;
      tab_Equip = 26;
      tab_Prayer = 27;
      tab_Magic = 28;
      tab_Objectives = 29;
      tab_Friends = 30;
      tab_Ignore = 31;
      tab_Clan = 32;
      tab_Options = 33;
      tab_Emotes = 34;
      tab_Music = 35;
      tab_Notes = 36;
      tab_LogOut = 37;

    they don't use 1-17 anymore. They added 20 to each number that the tab went with, but just use the constants, it makes it easier and you don't have to change the numbers in your scripts if the SRL dev's change the numbers that go with each gametab, so when there are updates you won't have to worry about updating your script to work with the new gametabs.


    EDIT: Just looked at how you were using it, just do:

    GameTab(21 + Random(12));

    or the better way of doing it so it won't break:

    GameTab(Tab_Combat + Random(12));

    You should use the second one I wrote.
    Last edited by Baked0420; 08-02-2010 at 05:30 PM.

  3. #3
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Thanks, and i got another question, how can i let it find any types of uncutted gems with 1 DTM?

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

  5. #5
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    ok, im learning it, thanks.

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
  •