Results 1 to 6 of 6

Thread: Help with Anti-ban

  1. #1
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Help with Anti-ban

    Hey, i'm working on a script that will be repeating certain functions over and over for the majority of the time. To throw in some variety i'd like to have little anti bans go off in between the various repeating steps.
    For ex
    Simba Code:
    MMouse(622, 228,Random(15),Random(20));
    //antiban ( goes off at a rate of 1 in 50 times or so)
    wait(10+Random(5));
        ClickMouse2(mouse_left);
    //antiban
            wait(10+Random(5));
    MMouse(163, 66,Random(19),Random(12));
        ClickMouse2(mouse_right)
    //antiban
            wait(10+Random(5));
        P07_ChooseOptionMulti(['all']);

    So would there be a way to make these go off randomly and not anywhere near every loop time? Id like them to go off at different spots because if it hit at the same time over and over it would be counterproductive, but having it go off at each spot during one random loop would also hurt it.

    Does this even make sense, and would anyone know how to do this?

  2. #2
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    I know what you mean and I'm actually looking for the same answer.

    Like constantly running something on a continuous loop is what would be required?


    Sorry for the useless post, but I need this as well.

  3. #3
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Either something constant or once it hit those spots it would need to sort of "roll" and if it hits the right number the anti ban plays otherwise it just moves to next step.

    Not sure if we mean the same thing or not, kind of hard to explain this.

  4. #4
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    Well, I think you just mean something that's checked then if it's 1/50 then it continues. If this is the case just do this:

    Procedure RandomAntiBan;
    var SmallChance: integer;
    SmallChance := Random(50);
    begin
    if (SmallChance = 1) then
    //the 1/50 chance code here
    end
    //Rest of the code

    That should work, but I haven't tested it.

  5. #5
    Join Date
    Jan 2012
    Posts
    369
    Mentioned
    6 Post(s)
    Quoted
    91 Post(s)

    Default

    An awesome antiban would be creating a function that endlessly loops through the nyancat soundtrack, well not endlessly but as a break

    http://www.nyan.cat/
    Last edited by speedster; 03-09-2013 at 09:00 AM.

  6. #6
    Join Date
    Mar 2013
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Brid Mayhem View Post
    Well, I think you just mean something that's checked then if it's 1/50 then it continues. If this is the case just do this:

    That should work, but I haven't tested it.
    YES! Thank you so much. Works perfectly for what i wanted.

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
  •