Page 1 of 2 12 LastLast
Results 1 to 25 of 37

Thread: AntiBan Tut

  1. #1
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default AntiBan Tut

    Welcome to my first tutorial on SCAR. This tutorial will cover the always needed AntiBan procedure. What an AntiBan procedure does is that it it adds in some random stuff for the script to do, in order to keep your character from doing only certain things, like chopping a tree, over and over again, without doing anything else, making your account very conspicuous.

    example-

    SCAR Code:
    program AntiBanageExample;
    {.include SRL\SRL.scar}


    Procedure ExampleOfAntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      case Random(11) of

        0: begin
             HoverSkill('Random', false);
             wait(2453+Random(432));
           end;

        1: RandomRClickEvery(3 + Random(2));

        2: begin
             HoverSkill('Woodcutting',false);
             wait(2364+Random(413));
             GameTab(4);
           end;

        3: PickUpMouse;

        4: AlmostLogOut;

        5: SayCurrentLevels('Woodcutting');

        6: begin
             case random(4) of
               0: TypeSend('Whats up?');

               1: TypeSend('wc lvls?');

               2: TypeSend('Woodcutting levels?');

               3: TypeSend('sup?');
             end;
           end;

        7: begin
             MakeCompass('N');
             wait(10+random(5));
             MakeCompass('S');
             wait(10+random(5));
             MakeCompass('N');
           end;

        8: BoredEvery(10+random(5));

        9: begin
             LowestAngle;
             wait(10+random(10));
             HighestAngle;
           end;

        10: SleepAndMoveMouse(600000+random(400000));

      end;
    end.

    Here's what each of the steps of the AntiBan Procedure's Case mean and do.

    0- What HoverSKill does is that when you specify what skill you want the script to look, SCAR will move your mouse to the Experience GameTab, then hover over the skill that you specified. If you have it set as false, like i do, in the example, it will only hover the mouse over the skill. If set to true, it will click on the skill, then close the popup box.

    1- RandomRClick makes a random right-click on the RS client. Instead of the varible of time being in milliseconds, it is in minutes.

    2- Already explained in 1, but instead of specifying a certain skill, it chooses a random skill to hover.

    3- For PickUpMouse SCAR simulates you picking up your mouse and setting it back down. If you try it, you notice when you pick up your mouse, the arrow moves up a bit, and when set down, moves down a bit.

    4- AlmostLogOut, does what it sounds like, goes to the logout tab, hover the mouse over the logout option, then returns to the inventory tab, as if you thoght about whether or not you wanted to log out, then decided not to.

    5- SayCurrentLevels retrieves your current level in the skill that you specified, then types into RS what your current level is for that skill.

    6- Just chooses one of the sentences to type, and types in it RS.

    7- Makes your compass point north, then south, then north again, as if you are spinning the camera

    8- Moves the mouse like a bored person, again, the time is in minutes.

    9- Moves the camera up, then down, as if you are just fiddling with it.

    10- Moves the mouse, like a bored human, except instead of moving the mouse directly to that point, moves it randomly to the point.

    These are just some of the examples of what you can have SCAR do to add some random stuff to do in your scipt, making it less suspicious that your are botting. Without an AntiBan procedure, you are most likely to get banned quite quickly, making it necessary to have one. You would use this in the main "function" of your script, like for a woodcutter script, you would put your antiban a once or twice in the the woodcutting procedure.

    Along with this, there is an easy way for the person who is using the script to set the chance of the antiban procedure doing a step in the case, so that when the antiban procedure is called, it doesnt always do it 100% of the time.

    example-

    SCAR Code:
    program AntiBanageExample;
    {.include SRL\SRL.scar}

    const
    AntiBanageAmount= 11//Set this for the chance of Antiban to do something.
    //11 is default and 100% antiban. Set to Zero for no Antiban, 21 for 50%, higher for less %

    Procedure ExampleOfAntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      case Random(AntiBanageAmount) of

        0: begin
             HoverSkill('Random', false);
             wait(2453+Random(432));
           end;

        1: RandomRClickEvery(3 + Random(2));

        2: begin
             HoverSkill('Woodcutting',false);
             wait(2364+Random(413));
             GameTab(4);
           end;

        3: PickUpMouse;

        4: AlmostLogOut;

        5: SayCurrentLevels('Woodcutting');

        6: begin
             case random(4) of
               0: TypeSend('Whats up?');

               1: TypeSend('wc lvls?');

               2: TypeSend('Woodcutting levels?');

               3: TypeSend('sup?');
             end;
           end;

        7: begin
             MakeCompass('N');
             wait(10+random(5));
             MakeCompass('S');
             wait(10+random(5));
             MakeCompass('N');
           end;

        8: BoredEvery(10+random(5));

        9: begin
             LowestAngle;
             wait(10+random(10));
             HighestAngle;
           end;

        10: SleepAndMoveMouse(600000+random(400000));

      end;
    end.

    Notice this part of the example-
    SCAR Code:
    const
    AntiBanageAmount= 11//Set this for the chance of Antiban to do something.
    //11 is default and 100% antiban. Set to Zero for no Antiban, 20 for 50%, higher for less %

    What this does is that when the const AntiBanageAmount is set, it relays this number to the amounts of steps the AntiBan case has. When it is set to 11, that mean there are 11 possible steps for the case to perform out of 11, because 11 steps have been declared in the antiban case, and you set it to 11 possible steps. if you were to set it to 21, that would mean that there is a possible 11 steps of a 20 for the case, meaning that there are 10 undefined steps in the case, and if it the procedure chooses one of those undefined steps, it doesn't do anything. it can also be set to 0, so that no antiban is performed. You can set it higher tan 21 so that it is a smaller % chance to antiban.

    I do give people permission to use this as their antiban procedure, but if you do, please credit me when you use it in your script. But seriously, everyone should experiment with different different things that you can make SCAR do so that someday you could compose a great antiban procedure.

    Post what u think of my first tut, anything i could add to it, anything done wrong, etc...


    Esteban
    I like my coffee black just like my metal.

  2. #2
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Never use talking in antiban. Because it might repeat the same thing after each other and will look very boty.

  3. #3
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    lol good tut.

    just one thing:
    SCAR Code:
    10: SleepAndMoveMouse(500000+random(1500000));

    isn't waiting 8 mins 20 secs plus a random 25 mins a bit long lol.

    and also, since you put random(11); the script will do antiban every time the procedure is called. if you make it say random(21); its will only go antiban 50% of the time.

    other than that good tut , it will help all the new scripters with their antiban procedures.

  4. #4
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well if the case was increased to 21, but only 11 steps of the case were called for, making it a 50% chance for antiban, and the chat step of the case being a random of 4 cases, i doubt it would repeat the same sentence twice.

    Added a part explaining how to use consts to set the antiban %. Changed the SleepAndMoveMouse to max of 10 mins.
    I like my coffee black just like my metal.

  5. #5
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    you haven't made the script do anything with the antibanageamount const yet. i think you wanted to make it Random(AntiBanageAmount); or something.

  6. #6
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh geez. whoops. That'll get a fixing.
    I like my coffee black just like my metal.

  7. #7
    Join Date
    Jun 2006
    Location
    N Wales
    Posts
    558
    Mentioned
    2 Post(s)
    Quoted
    56 Post(s)

    Default

    program AntiBanageExample;
    {.include SRL\SRL.scar}

    const
    AntiBanageAmount= 11//Set this for the chance of Antiban to do something.
    //11 is default and 100% antiban. Set to Zero for no Antiban, 21 for 50%, higher for less %

    Procedure ExampleOfAntiBan;
    begin
    if(not(LoggedIn))then
    Exit;
    case Random(AntiBanageAmount) of
    this will make it exit the procedure eve if you are logged in... you need

    Procedure ExampleOfAntiBan;
    begin
    if(not(LoggedIn))then
    begin
    Exit;
    end;
    case Random(AntiBanageAmount) of

  8. #8
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm pretty sure that it is the correct setup, i have seen it set up that way in many scripts, and i have seen it displayed that way in tutorials containing antiban.
    I like my coffee black just like my metal.

  9. #9
    Join Date
    Oct 2006
    Location
    Texas,united states
    Posts
    100
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is a wonderfull tutorial i havent seen one yet on antiban. Thank you very much for making it. I use this all the time.

  10. #10
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    heh, thanks man, and yea, i haven't seen much of AntiBan tutorials, except for one in beginner, but it goes along with an AntiRandoms Tut, so that's why i'm guessing it's in beginner.
    I like my coffee black just like my metal.

  11. #11
    Join Date
    Jul 2007
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    cool, this will help on my autofighter coming soon! i'll give you full credit for antiban , thanks.

  12. #12
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea, like I said, anyone may feel free to use this as their antiban, as long as they credit me as the one who put it together. If you need some ideas for you own antiban, look in SRL\SRL\core\antiban.scar

    idk why, but for some reason, for all the procedures i use in procedure antiban; that are in the extended file of antiban in SRL, i get a unknown identifier error. I tried using {.include SRL\SRL\extended\xantiban.scar} but that doesn't work either.
    I like my coffee black just like my metal.

  13. #13
    Join Date
    Mar 2007
    Posts
    562
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmmmm seems cool. a thing you could add is a auto responder.

    haxor

  14. #14
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That is usually a procedure in itself, but i could add an auto responder procedure . I'll add the one i'll be using in EZChopper i'll be releasing soon.
    I like my coffee black just like my metal.

  15. #15
    Join Date
    Jul 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i completly copy and paste ur script in my scar and it says Line 9: [Error] (14458:1): Semicolon (';') expected in script

  16. #16
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it would be something like this-

    SCAR Code:
    Program Whatever;

    Procedure Antiban;
    begin
    //Antiban stuff in here
    end;

    Procedure RestOfScript;
    begin
    //Rest of the script here
    end;

    begin
      Antiban;
      RestOfScript;
    end.
    I like my coffee black just like my metal.

  17. #17
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Esteban View Post
    idk why, but for some reason, for all the procedures i use in procedure antiban; that are in the extended file of antiban in SRL, i get a unknown identifier error. I tried using {.include SRL\SRL\extended\xantiban.scar} but that doesn't work either.
    The reason xAntiBan doesn't work is because it needs PolyGlotTalk or something. That appears in xAutoTalk.scar so you need to add that BEFORE you add xAntiBan.scar in your includes.

    Ie.
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/extended/xAutoTalk.scar}
    {.include SRL/SRL/extended/xAntiBan.scar}

  18. #18
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Really? but shouldn't {.include SRL/SRL.scar} include Antiban.scar anyways?
    I like my coffee black just like my metal.

  19. #19
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    {.include SRL/SRL.scar} doesn't include any extra's such as xAntiBan.scar or xAutoTalk.scar. I believe you were talking of an unknown identifier while using xAntiBan.scar in the posts above.

  20. #20
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well the thing is, i had SRL included along with Xantiban.scar, and what i was saying was that i shouldn't need to include antiban.scar because I believe that is included by including SRL, but correct me if I am mistaken.
    I like my coffee black just like my metal.

  21. #21
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Yea your right. I'm just telling you that the reason for your unknown identifier is probably because you need to add xAutoTalk.scar as well as xAntiBan.scar.

  22. #22
    Join Date
    Apr 2007
    Location
    The Buckeye State
    Posts
    482
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahh i see, thanks for the input, as i did not include XAutoTalk.scar .
    I like my coffee black just like my metal.

  23. #23
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Np, I had that same problem with my script I'm making.

  24. #24
    Join Date
    Aug 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yesh! now i has armur for teh ban hamur

  25. #25
    Join Date
    Jul 2007
    Location
    New Zealand FTW!
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks man

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Antiban help...
    By doom0791 in forum OSR Help
    Replies: 2
    Last Post: 08-05-2008, 01:14 AM
  2. srl antiban
    By Dark_Sniper in forum News and General
    Replies: 15
    Last Post: 06-07-2007, 10:27 PM
  3. Pin, less antiban or not?
    By PwNZoRNooB in forum Bot Information and Spottings
    Replies: 6
    Last Post: 04-28-2007, 05:17 PM
  4. antiban Q.
    By del_signo in forum OSR Help
    Replies: 6
    Last Post: 03-06-2007, 01:46 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
  •