Results 1 to 9 of 9

Thread: What to mod in scripts?

  1. #1
    Join Date
    Jun 2015
    Posts
    41
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default What to mod in scripts?

    Hey all, first off to clarify, I've never done programming or learned about codes and that I'm even quite new to Runescape (1 week old). That said, I'm still interested in the game, and after realising how repetitive some tasks can be (e.g. 3 million exp to lvl 85 mining to start making decent f2p gp), and by good fortune I found myself here.

    Been lurking around the forums reading comments and reading up the scripting tutorial and was wondering what in a public script do you mod to make it.. Not so public scripty? Idk but some comments around said that modding them helps to avoid detection. Thanks beforehand!

  2. #2
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    You would want to edit the general behavior of the bot to differ from the hundreds+ other users' versions. Here are some hypothetical examples.

    Editing wait times in between procedures is a good start.

    Simba Code:
    wait(random(150, 350)); //Original public code, in which the script waits for a random amount of ms between 150 and 350

    wait(random(100, 300)); //New personal code, made the wait a little faster.

    Mouse speed is also something helpful to customize.

    Simba Code:
    mouseSpeed := 20; //Original public code, set mouse speed to 20 throughout the whole script.

    mouseSpeed := random(18, 23); //New personal code, where the mouse speed is randomized every run.

    Often times antiban procedures in scripts will be a generic case statement, where a number between 1 and X (let's say 100) is rolled, and certain actions are performed based on the outcome of that roll.

    Simba Code:
    //Original Public Antiban, rolls random 100
    i := random(100);

    case i of
      0..3: antibanMethod1;
      4..25: antibanMethod2;
      26..27: antibanMethod3;
      28..54: antibanMethod4;
      //Implied that 55..100 does nothing
    end;

    //Modified Personal Antiban, rolls random 200, making outcomes less commonly executed, some edited numbers as well
    i := random(200);

    case i of
      0..8: antibanMethod1;
      9..15: antibanMethod2;
      16..24: antibanMethod3;
      24..54: antibanMethod4;
      55..64: myPersonalAntiban;
      //Implied that 65..200 does nothing
    end;

    Scripts will also commonly take breaks. These are often characterized by logging out to the lobby and waiting a period of time. This would be another simple wait procedure edit.

    Hope this helps you Welcome to SRL!

  3. #3
    Join Date
    Jun 2015
    Posts
    41
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    Thanks for replying! I'll get to changing those numbers a little to suit my needs wants.

    Question, if nobody minds. There's this section in the script I'm using, Renzanity's VW miner

    Simba Code:
    procedure antiBan();
    begin
      if (random(500) <= antiBanP) then
      case random(100) of
        0..50: begin
                 writeLn('Initiating Minibreak..');
                 mouseOffClient(OFF_CLIENT_RANDOM);
                 ScriptTimer.pause;
                 BreakTimer.pause;
                 ReloadTimer.pause;
                 wait(randomRange(10000, 30000));
                 ScriptTimer.start;
                 BreakTimer.start;
                 ReloadTimer.start;
               end;
        51..100: begin
                   writeLn('Hovering over Mining Skill..');
                   hoverSkill(SKILL_MINING);
                   wait(randomRange(700, 1500));
                 end;
      end;
    end;

    that deals with Antiban. When starting the script, the Playerform prompts you to key in the Antiban percentage (1-100). How does the number you key in affect the above lines of code?
    Last edited by currynoodle; 06-18-2015 at 10:47 PM.

  4. #4
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by currynoodle View Post
    Thanks for replying! I'll get to changing those numbers a little to suit my needs wants.

    Question, if nobody minds. There's this section in the script I'm using, Renzanity's VW miner

    Simba Code:
    procedure antiBan();
    begin
      if (random(500) <= antiBanP) then
      case random(100) of
        0..50: begin
                 writeLn('Initiating Minibreak..');
                 mouseOffClient(OFF_CLIENT_RANDOM);
                 ScriptTimer.pause;
                 BreakTimer.pause;
                 ReloadTimer.pause;
                 wait(randomRange(10000, 30000));
                 ScriptTimer.start;
                 BreakTimer.start;
                 ReloadTimer.start;
               end;
        51..100: begin
                   writeLn('Hovering over Mining Skill..');
                   hoverSkill(SKILL_MINING);
                   wait(randomRange(700, 1500));
                 end;
      end;
    end;

    that deals with Antiban. When starting the script, the Playerform prompts you to key in the Antiban percentage (1-100). How does the number you key in affect the above lines of code?
    By his code, the number you enter becomes the variable antiBanP. Let's say you entered 50.

    Simba Code:
    if (random(500) <= antiBanP) then
    if (random(500) <= 50) then

    Every time antiban() runs in the script, it will roll a random number up to 500. If it rolls a number less than or equal to your input percentage (50), the rest of the procedure will execute. If not, the procedure ends and the script continues with no antiban performed.

    From then, it rolls a number up to 100, deciding whether to do the "mini break" or "hover skill" antiban methods.

    So, if you entered 100 as your percentage, every time his procedure is called, there would be a 1/5 chance of anything happening, 1/10 of mini break, and 1/10 of hovering the mining skill. If you entered 50, it would be 1/10 of anything, and 1/20 of the individual methods.

    I'd suggest adding more than just 2 50% chance methods to the antiban.
    Last edited by Clarity; 06-18-2015 at 10:58 PM.

  5. #5
    Join Date
    Jun 2015
    Posts
    41
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    Woah. The default antibanP is 10. Going by that explanation, that's 1/50 of an Antiban procedure happening. Is that safe? Or, what would a safe value be?

    Also, what do you mean by adding more than just two 50% chance methods to antiban?

    Sorry for the barrage of questions but I have another.. Currently the script runs for 60 minutes then breaks for 6 minutes. Will it be a trigger if this pattern continues? Looking through other scripts, looks like you can add a random variance to this. I'll try to go ahead and do that if the answer to that question was a yes.

    Edit: After taking a look at other scripts, it seems that it's more of a norm to have more than 2 antibans.
    Last edited by currynoodle; 06-18-2015 at 11:48 PM.

  6. #6
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Clarity is confusing me, but maybe you can just add:

    Simba Code:
    case random(200) of
        0..50: begin
                 writeLn('Initiating Minibreak..');
                 mouseOffClient(OFF_CLIENT_RANDOM);
                 ScriptTimer.pause;
                 BreakTimer.pause;
                 ReloadTimer.pause;
                 wait(randomRange(10000, 30000));
                 ScriptTimer.start;
                 BreakTimer.start;
                 ReloadTimer.start;
               end;
        51..100: begin
                   writeLn('Hovering over Mining Skill..');
                   hoverSkill(SKILL_MINING);
                   wait(randomRange(700, 1500));
                 end;
        101..150: begin
                     writeLn('Moving mouse a bit');
                     smallRandomMouse();
                  end;
        151..200: begin
                    writeLn('Sleeping and moving mouse');
                    sleepAndMoveMouse(random(2000) + 500);
                  end;

    Also, to answer your break question, most scripts have some variance added in already to their break methods, usually when to break and how long to break. After briefly going of Renzanity's code, I'm pretty sure there is already included randomness.

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

    Default

    Quote Originally Posted by yourule97 View Post
    Clarity is confusing me
    Bit of an oxymoron there ... wouldn't it be Obscurity if you were confused?
    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

  8. #8
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Bit of an oxymoron there ... wouldn't it be Obscurity if you were confused?



    /Thread We're done here boys

  9. #9
    Join Date
    Jun 2015
    Posts
    41
    Mentioned
    1 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by yourule97 View Post
    Clarity is confusing me, but maybe you can just add:

    Simba Code:
    case random(200) of
        0..50: begin
                 writeLn('Initiating Minibreak..');
                 mouseOffClient(OFF_CLIENT_RANDOM);
                 ScriptTimer.pause;
                 BreakTimer.pause;
                 ReloadTimer.pause;
                 wait(randomRange(10000, 30000));
                 ScriptTimer.start;
                 BreakTimer.start;
                 ReloadTimer.start;
               end;
        51..100: begin
                   writeLn('Hovering over Mining Skill..');
                   hoverSkill(SKILL_MINING);
                   wait(randomRange(700, 1500));
                 end;
        101..150: begin
                     writeLn('Moving mouse a bit');
                     smallRandomMouse();
                  end;
        151..200: begin
                    writeLn('Sleeping and moving mouse');
                    sleepAndMoveMouse(random(2000) + 500);
                  end;

    Also, to answer your break question, most scripts have some variance added in already to their break methods, usually when to break and how long to break. After briefly going of Renzanity's code, I'm pretty sure there is already included randomness.
    Yeah after some digging which I should've done earlier I found that there is included randomness.

    Simba Code:
    wait(((breakL  + randomRange(-3, 4)) + randomRange(5, 7)) * 60000);


    Quote Originally Posted by yourule97 View Post


    /Thread We're done here boys
    And yeap I think we are. I guess anything I want to know can be learned through reading up all the tutorials and practical applications. Thanks for the help all.

    Quote Originally Posted by KeepBotting View Post
    Bit of an oxymoron there ... wouldn't it be Obscurity if you were confused?
    Ey it's thanks to your link on one of your vids that I found this place. Cheers mate.
    Last edited by currynoodle; 06-19-2015 at 12:52 AM.

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
  •