SRL Archive - General Botting Help

What to mod in scripts?


currynoodle

2015-06-18 18:13:00

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!

Clarity

2015-06-18 18:32:02

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.


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.


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.


//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!

currynoodle

2015-06-18 18:44:48

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

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?

Clarity

2015-06-18 18:54:16

From: currynoodle
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

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.

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.

currynoodle

2015-06-18 19:11:10

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.

yourule97

2015-06-18 20:26:09

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


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.

KeepBotting

2015-06-18 20:27:42

From: yourule97
Clarity is confusing me

Bit of an oxymoron there … wouldn't it be Obscurity if you were confused? ;)

yourule97

2015-06-18 20:31:54

From: KeepBotting
Bit of an oxymoron there … wouldn't it be Obscurity if you were confused? ;)




/Thread We're done here boys

currynoodle

2015-06-18 20:46:00

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


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.

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


From: yourule97

/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.

From: KeepBotting
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.