Results 1 to 5 of 5

Thread: Gametab.Scar

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

    Default Gametab.Scar

    I made this procedure so you won't get the annoying message saying GameTab(9); doesn't exist anymore. This is so you can randomly have a gametab be picked for antiban. Pretty basic and easy, but useful. (Doesn't include the logout button, can easily be added if you want it to be)

    Code:
    procedure RandomGameTab;
    var
     Z: Integer;
     Q: TIntegerArray;
    begin
     Q:=[Tab_Combat, Tab_Stats, Tab_Quest, Tab_Diary, Tab_Inv,
         Tab_Equip, Tab_Prayer, Tab_Magic, Tab_Friends, Tab_Ignore,
         Tab_Clan, Tab_Options, Tab_Emotes, Tab_Music, Tab_Notes];
         
     Z:= Random(15);
     GameTab(Q[Z]);
    end;

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

    Default

    GameTab(RandomRange(Tab_Combat, Tab_Notes));


  3. #3
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    GameTab(RandomRange(Tab_Combat, Tab_Notes));

    Nice try, but that can cause the warning that he made this function to avoid.

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

    Default

    I wasn't thinking about that Nauman, but yea, I made this to avoid any warnings. Thanks for the cover senrath haha

    Would this be committed? I don't care if it's not, I'll still use it in my scripts, but I see Gametab(1+random(15)) in lots of scripts, so I think this would make them better. (and for some reason, they tabs get +20, not sure why lol, but this won't break)

  5. #5
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

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
  •