Results 1 to 9 of 9

Thread: Why does my anti-ban go everytime I click?

  1. #1
    Join Date
    Oct 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Why does my anti-ban go everytime I click?

    Hey,

    I've been modifying a script and have asked a lot of questions to get it right.
    I can't figure out though why the anti-ban happens every time I click, I put a random number and everything.

    the script:

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Skill/Mining.scar}
    Var
      x, y: integer;

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := 'Username';
      Players[0].Pass := 'Password';
      Players[0].Nick := 'Nick';
      Players[0].Active := True;
    end;

    procedure AntiBan;
    begin
      case random(3) of //do a random number so it won't always perform the antiban
        0: RandomRClick;
        1: BoredHuman;
        2: HoverSkill('Mining', False);
          end;
    end;

    procedure DropMine;
    begin
      SetupSRL;
      DeclarePlayers;
      Repeat
        Mousespeed := 15
        DropAll;
        Repeat
          LoadRockRecords;
          FindObjRock(x, y, Rimmington_Iron);
          ClickMouse(x, y, True);
          AntiBan;
          FindNormalRandoms;
          Wait(3000+random(2000));
        Until (InvFull= True);
       until false
    end.

    Can someone please point out anything I've done wrong, and how to make the anti-ban only go every so often instead of every time.

    Thanks.

  2. #2
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this is because your random 3 will random either 0, 1, 2 and you have a case for each of these numbers, meaning its always going to do one of the three, you must increase your random to make it fall on numbers not in the case, for example random(20)
    Current Project: Catching up on what I missed, re-writing some old includes I done in the past.
    Upcoming Project: Open For Suggestions

  3. #3
    Join Date
    Jul 2008
    Posts
    907
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah increase the randomness
    maybe 30 not 20


  4. #4
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    begin
      case random(HowOftenToUseAntiBan) of
        1: begin
             case random(3) of
               1: RandomRClick;
               2: BoredHuman;
               3: HoverSkill('Mining', False);
             end;
           end;
      end;
    end;

    That's what you're wanting.

    I think it starts at 1, but I could be wrong, could start at 0 like you had it.. :/ I'll check up on that in a sec..

  5. #5
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by orange View Post
    SCAR Code:
    begin
      case random(HowOftenToUseAntiBan) of
        1: begin
             case random(3) of
               1: RandomRClick;
               2: BoredHuman;
               3: HoverSkill('Mining', False);
             end;
           end;
      end;
    end;

    That's what you're wanting.
    no this is what he wants
    SCAR Code:
    procedure AntiBan;
    begin
      case random(30) of
        0: RandomRClick;
        1: BoredHuman;
        2: HoverSkill('Mining', False);
          end;
    end;


    ~shut

  6. #6
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    shut, that would do approximately one antiban every 10 chances, if he puts a random inside a random, he can set it to an exact figure instead of having to divide the randomness by the number of cases, so he can more easily and accurately set a good randomness. :/

  7. #7
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't want accurate randomness -.-

    Just use what shut has. It'll work.

  8. #8
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    You don't want accurate randomness -.-

    Just use what shut has. It'll work.
    I didn't mean it like that.. It's still the same as using shut's one, except it's easier for the script maker to change it. If you use shut's one and have a randomness of 30, that's the same as using mine and having a randomness of 10. If you want your script to do the antiban approx once every inventory or something, you can set it between 25-35, and with shut's you'd have to multiply the number you wanted by 3, which just makes everything difficult.

  9. #9
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Or you could just set it up with a random number and use it like a hooman would.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I get this everytime.
    By Crusadercharlie in forum OSR Help
    Replies: 4
    Last Post: 12-20-2008, 09:42 PM
  2. Why is this happening everytime?
    By Claymore in forum OSR Help
    Replies: 4
    Last Post: 08-01-2008, 12:41 AM
  3. Anti-X question! (anti-ban, anti-randoms)
    By jvwarrior in forum OSR Help
    Replies: 9
    Last Post: 10-31-2007, 03:09 AM
  4. Find a Chest & Left Click,Right Click
    By yanix in forum OSR Help
    Replies: 3
    Last Post: 10-03-2007, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •