Results 1 to 6 of 6

Thread: adding breaks and antiban

  1. #1
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default adding breaks and antiban

    I found an antiban here: https://villavu.com/forum/showthread.php?t=108190 but I don't know how to add it to my script and give it a 10% chance to run when doing something. I took a look at the all in one scripting tutorial , but I couldn't find anything about antiban. the lookatweb is also nice and easy, but can I let it have a 10% chance to run? And is is possible to let a player take a 3-5 min brake every 20-25 min?

    and another question: when clicking something or walking using SPS , can I let it click a different location , cus now it always clicks the same spot.

    Edit: I got the lookatweb working but it does it always, I want to only look at web xx% chance.

    Simba Code:
    Procedure lookingAtWeb();
    begin
    mouseOffClient(OFF_CLIENT_RANDOM);
    wait(randomRange(18000, 27000));
    walkbank();
    end

    If I could give it xx% chance to open another procedure before doing the mouseoffclient and the wait.
    I also added some random antibans in the script on places where I as human also do things like that. I got them from The Mayor's list: http://puu.sh/6xppb.pdf
    Last edited by lanadekat; 08-05-2014 at 10:57 AM.

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Simba Code:
    case random(100) of
    begin
    0..10: begin
             mouseOffClient(OFF_CLIENT_RANDOM);
             wait(randomRange(18000, 27000));
             walkbank();
           end;
    end;


    Code:
    case random(100)
    declares a case statement with 100 cases

    Code:
    0..10:
    says the the following routines are to be done in cases 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 out of 100 (10% chance)

    (you could also do single numbers, like 1: 2: or 3: )

    and then we just stick your antiban inside that case, and boom it only runs 10% of the time

    the other 90% (which would be 11..100: ) is never specificed, so if the case random(100) happens to land on something outside of 0..10, it'll just skip the entire thing
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Simba Code:
    case random(100) of
    begin
    0..10: begin
             mouseOffClient(OFF_CLIENT_RANDOM);
             wait(randomRange(18000, 27000));
             walkbank();
           end;
    end;


    Code:
    case random(100)
    declares a case statement with 100 cases

    Code:
    0..10:
    says the the following routines are to be done in cases 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 out of 100 (10% chance)

    (you could also do single numbers, like 1: 2: or 3: )

    and then we just stick your antiban inside that case, and boom it only runs 10% of the time

    the other 90% (which would be 11..100: ) is never specificed, so if the case random(100) happens to land on something outside of 0..10, it'll just skip the entire thing
    Thanks a lot that's all I need to know

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Code:
    0..10:
    says the the following routines are to be done in cases 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 out of 100 (10% chance)
    You should count that again.

    Code
    Simba Code:
    begin
    writeln(length([0..10]));
    end.

  5. #5
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    You should count that again.

    Code
    Simba Code:
    begin
    writeln(length([0..10]));
    end.
    What do you mean lol? Is it s 1,2,3,4,5,6,7,8,9 instead of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10

    running your thingy says 11 so there are 11 numbers.
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 has 11 numbers.

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    You should count that again.

    Code
    Simba Code:
    begin
    writeln(length([0..10]));
    end.
    it was really early, mmkay? he gets the general idea
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

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
  •