Results 1 to 5 of 5

Thread: Most effective way to implement antiban/antirandoms into a script?

  1. #1
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Smile Most effective way to implement antiban/antirandoms into a script?

    Hello! I am trying to learn how to become a more competent scriptwriter and I have come across a problem. I am sure that my current method of approaching antiban/antirandoms is far from efficient yet, I have no clue on how I could improve it and/or its implementation. Any suggestions would be greatly appreciated!

    Simba Code:
    procedure PlayerProtection;
    begin
          case Random(100) of
        10: RandomRClick;
        20: HoverSkill('Runecrafting', False);
        30: PickUpMouse;
        40: RandomMovement;
        50: SmallRandomMouse;
        59: ExamineInv;
        end;

        FindNormalRandoms;

    end;

    I then call this multiple times in my main loop.
    Last edited by Cage; 10-05-2013 at 12:23 AM.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Random(50) generates a number between 0 to 49 (inclusive), therefore your last 2 cases will never occur.

    You should do some calculations (i.e. calculate how many times ur anti-ban method will be called within 1hr on average) so as to make sure it's called as frequently as desired (eg. once per ~20min-1hr?)

  3. #3
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Whoops i forgot about that. I lowered it from 100 and forgot to update the case numbers. Any other suggestions? Such as examples of effective implementation in the main loop for example?

    Thanks!

    Edit: Updated code

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    For me, i try to minimize the disruption to the activity due to antiban, so for example, if i'm cleaning herbs, i will make it such that the anti-ban is much more likely to occur before i'm about to finish cleaning, so that the antiban will finish before i'm ready to bank, hence my script will remain efficient and more human-like as well (an efficient legit player will not check his level when he's about to bank)

  5. #5
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    For me, i try to minimize the disruption to the activity due to antiban, so for example, if i'm cleaning herbs, i will make it such that the anti-ban is much more likely to occur before i'm about to finish cleaning, so that the antiban will finish before i'm ready to bank, hence my script will remain efficient and more human-like as well (an efficient legit player will not check his level when he's about to bank)
    I never thought about that. Thanks for the useful tip!

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
  •